brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geom...@apache.org
Subject [2/3] brooklyn-client git commit: Remove test that was using removed deprecated code
Date Wed, 19 Apr 2017 08:39:06 GMT
Remove test that was using removed deprecated code


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/469217cd
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/469217cd
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/469217cd

Branch: refs/heads/master
Commit: 469217cd6d6cdca7bd221d8ae896607609980298
Parents: b2df373
Author: Thomas Bouron <thomas.bouron@cloudsoftcorp.com>
Authored: Wed Apr 19 09:25:54 2017 +0100
Committer: Thomas Bouron <thomas.bouron@cloudsoftcorp.com>
Committed: Wed Apr 19 09:25:54 2017 +0100

----------------------------------------------------------------------
 .../ApplicationResourceIntegrationTest.java      | 19 -------------------
 1 file changed, 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/469217cd/java/src/test/java/org/apache/brooklyn/rest/client/ApplicationResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/java/src/test/java/org/apache/brooklyn/rest/client/ApplicationResourceIntegrationTest.java
b/java/src/test/java/org/apache/brooklyn/rest/client/ApplicationResourceIntegrationTest.java
index df91ba8..ea26a10 100644
--- a/java/src/test/java/org/apache/brooklyn/rest/client/ApplicationResourceIntegrationTest.java
+++ b/java/src/test/java/org/apache/brooklyn/rest/client/ApplicationResourceIntegrationTest.java
@@ -63,11 +63,6 @@ public class ApplicationResourceIntegrationTest {
     private static final Duration LONG_WAIT = Duration.minutes(10);
     
     private final String redisSpec = "{\"name\": \"redis-app\", \"type\": \"org.apache.brooklyn.entity.nosql.redis.RedisStore\",
\"locations\": [ \"localhost\"]}";
-    
-    private final ApplicationSpec legacyRedisSpec = ApplicationSpec.builder().name("redis-legacy-app")
-            .entities(ImmutableSet.of(new EntitySpec("redis-ent", "org.apache.brooklyn.entity.nosql.redis.RedisStore")))
-            .locations(ImmutableSet.of("localhost"))
-            .build();
 
     private ManagementContext manager;
 
@@ -111,20 +106,6 @@ public class ApplicationResourceIntegrationTest {
         final String entityId = getManagementContext().getApplications().iterator().next().getChildren().iterator().next().getId();
         assertServiceStateEventually("redis-app", entityId, Lifecycle.RUNNING, LONG_WAIT);
     }
-    
-    @Test(groups = "Integration", dependsOnMethods = "testDeployRedisApplication")
-    public void testDeployLegacyRedisApplication() throws Exception {
-        @SuppressWarnings("deprecation")
-        Response response = api.getApplicationApi().create(legacyRedisSpec);
-        assertEquals(response.getStatus(), 201);
-        assertEquals(getManagementContext().getApplications().size(), 2);
-        assertServiceStateEventually("redis-legacy-app", "redis-ent", Lifecycle.RUNNING,
LONG_WAIT);
-        
-        // Tear the app down so it doesn't interfere with other tests 
-        Response deleteResponse = api.getApplicationApi().delete("redis-legacy-app");
-        assertEquals(deleteResponse.getStatus(), 202);
-        assertEquals(getManagementContext().getApplications().size(), 1);
-    }
 
     @Test(groups = "Integration", dependsOnMethods = "testDeployRedisApplication")
     public void testListEntities() {


Mime
View raw message