Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

moved to nexus-yum-testsuite

  • Loading branch information...
commit 739b6e45b9226ad1e5d1691a5beeed54d1fa4f4a 1 parent 5e96462
Sebastian Herold heroldus authored
30 ...yum-plugin/src/test/java/org/sonatype/nexus/plugins/yum/plugin/integration/RepositoryVersionAliasIT.java
... ... @@ -1,30 +0,0 @@
1   -package org.sonatype.nexus.plugins.yum.plugin.integration;
2   -
3   -import static org.junit.Assert.assertEquals;
4   -
5   -import org.apache.http.HttpResponse;
6   -import org.apache.http.entity.StringEntity;
7   -import org.apache.http.util.EntityUtils;
8   -import org.junit.Test;
9   -
10   -
11   -public class RepositoryVersionAliasIT extends AbstractNexusTestBase {
12   - private static final String VERSION_1 = "1.0.0-SNAPSHOT";
13   - private static final String VERSION_2 = "1.0.1-SNAPSHOT";
14   -
15   - @Test
16   - public void shouldRetrieveAlias() throws Exception {
17   - assertEquals("5.1.15-1", executeGet("/yum/alias/releases/production"));
18   - }
19   -
20   - @Test
21   - public void shouldSetAlias() throws Exception {
22   - HttpResponse response = executePost("/yum/alias/snapshots/testAlias", new StringEntity(VERSION_1));
23   - assertEquals(VERSION_1, EntityUtils.toString(response.getEntity()));
24   - assertEquals(VERSION_1, executeGet("/yum/alias/snapshots/testAlias"));
25   - response = executePost("/yum/alias/snapshots/testAlias", new StringEntity(VERSION_2));
26   - assertEquals(VERSION_2, EntityUtils.toString(response.getEntity()));
27   - assertEquals(VERSION_2, executeGet("/yum/alias/snapshots/testAlias"));
28   - }
29   -
30   -}

0 comments on commit 739b6e4

Please sign in to comment.
Something went wrong with that request. Please try again.