diff --git a/apis/elasticstack/pom.xml b/apis/elasticstack/pom.xml
index eabb89ac43..884444949a 100644
--- a/apis/elasticstack/pom.xml
+++ b/apis/elasticstack/pom.xml
@@ -33,27 +33,13 @@
jclouds components to access elasticstack
bundle
-
-
-
- sonatype-nexus-snapshots
- https://oss.sonatype.org/content/repositories/snapshots
-
- false
-
-
- true
-
-
-
-
https://api-lon-p.elastichosts.com
- 1.0
+ 2.0
FIXME
FIXME
- imageId=38df0986-4d85-4b76-b502-3878ffc80161
+ imageId=38df0986-4d85-4b76-b502-3878ffc80161,loginUser=toor
org.jclouds.elasticstack*;version="${project.version}"
org.jclouds.compute.internal;version="${project.version}",
diff --git a/apis/elasticstack/src/test/java/org/jclouds/elasticstack/ElasticStackClientLiveTest.java b/apis/elasticstack/src/test/java/org/jclouds/elasticstack/ElasticStackClientLiveTest.java
index badcb39087..5dcca7e56f 100644
--- a/apis/elasticstack/src/test/java/org/jclouds/elasticstack/ElasticStackClientLiveTest.java
+++ b/apis/elasticstack/src/test/java/org/jclouds/elasticstack/ElasticStackClientLiveTest.java
@@ -50,7 +50,7 @@ import org.jclouds.ssh.SshClient;
import org.jclouds.sshj.config.SshjSshClientModule;
import org.jclouds.util.Strings2;
import org.testng.annotations.AfterGroups;
-import org.testng.annotations.BeforeGroups;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.google.common.base.Predicate;
@@ -67,10 +67,8 @@ import com.google.inject.Guice;
* @author Adrian Cole
*/
@Test(groups = "live", singleThreaded = true, testName = "ElasticStackClientLiveTest")
-public class ElasticStackClientLiveTest
- extends
- BaseComputeServiceContextLiveTest {
-
+public class ElasticStackClientLiveTest extends BaseComputeServiceContextLiveTest {
+
public ElasticStackClientLiveTest() {
provider = "elasticstack";
}
@@ -84,23 +82,19 @@ public class ElasticStackClientLiveTest
protected Predicate driveNotClaimed;
protected String imageId;
- @BeforeGroups(groups = { "integration", "live" })
@Override
+ @BeforeClass(groups = { "integration", "live" })
public void setupContext() {
super.setupContext();
- cloudStackContext = view.unwrap();
+ imageId = view.getComputeService().templateBuilder().build().getImage().getId();
- client = cloudStackContext.getApi();
+ client = view.unwrap(ElasticStackApiMetadata.CONTEXT_TOKEN).getApi();
driveNotClaimed = new RetryablePredicate(Predicates.not(new DriveClaimed(client)), maxDriveImageTime,
1, TimeUnit.SECONDS);
socketTester = new RetryablePredicate(new InetSocketAddressConnect(), maxDriveImageTime, 1,
TimeUnit.SECONDS);
-
- if (template == null || template.getImageId() == null) {
- imageId = view.getComputeService().templateBuilder().build().getImage().getId();
- }
}
-
+
@Test
public void testListServers() throws Exception {
Set servers = client.listServers();