Commit dff944f8 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added isServiceUp

parent b5b5f7bb
...@@ -150,12 +150,15 @@ public class CloudStormServiceTest { ...@@ -150,12 +150,15 @@ public class CloudStormServiceTest {
*/ */
@Test @Test
public void testWriteCloudStormTopologyFiles() throws Exception { public void testWriteCloudStormTopologyFiles() throws Exception {
if (ToscaHelper.isServiceUp(sureToscaBasePath)) {
System.out.println("writeCloudStormTopologyFiles"); System.out.println("writeCloudStormTopologyFiles");
CloudStormService instance = getService(messageExampleProvisioneRequestFilePath); CloudStormService instance = getService(messageExampleProvisioneRequestFilePath);
Map<String, Object> result = instance.writeCloudStormTopologyFiles(tempInputDirPath); Map<String, Object> result = instance.writeCloudStormTopologyFiles(tempInputDirPath);
assertNotNull(result); assertNotNull(result);
} }
}
/** /**
* Test of buildSSHKeyPair method, of class CloudStormService. * Test of buildSSHKeyPair method, of class CloudStormService.
* *
...@@ -163,6 +166,7 @@ public class CloudStormServiceTest { ...@@ -163,6 +166,7 @@ public class CloudStormServiceTest {
*/ */
@Test @Test
public void testBuildSSHKeyPair() throws Exception { public void testBuildSSHKeyPair() throws Exception {
if (ToscaHelper.isServiceUp(sureToscaBasePath)) {
System.out.println("buildSSHKeyPair"); System.out.println("buildSSHKeyPair");
CloudStormService instance = getService(messageExampleProvisioneRequestFilePath); CloudStormService instance = getService(messageExampleProvisioneRequestFilePath);
initPaths(); initPaths();
...@@ -181,7 +185,7 @@ public class CloudStormServiceTest { ...@@ -181,7 +185,7 @@ public class CloudStormServiceTest {
userPrivateName = FilenameUtils.removeExtension(userPublicKeyName); userPrivateName = FilenameUtils.removeExtension(userPublicKeyName);
assertTrue(new File(tempInputDirPath + File.separator + userPrivateName).exists()); assertTrue(new File(tempInputDirPath + File.separator + userPrivateName).exists());
assertTrue(new File(tempInputDirPath + File.separator + userPublicKeyName).exists()); assertTrue(new File(tempInputDirPath + File.separator + userPublicKeyName).exists());
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment