Commit dff944f8 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added isServiceUp

parent b5b5f7bb
......@@ -150,12 +150,15 @@ public class CloudStormServiceTest {
*/
@Test
public void testWriteCloudStormTopologyFiles() throws Exception {
if (ToscaHelper.isServiceUp(sureToscaBasePath)) {
System.out.println("writeCloudStormTopologyFiles");
CloudStormService instance = getService(messageExampleProvisioneRequestFilePath);
Map<String, Object> result = instance.writeCloudStormTopologyFiles(tempInputDirPath);
assertNotNull(result);
}
}
/**
* Test of buildSSHKeyPair method, of class CloudStormService.
*
......@@ -163,6 +166,7 @@ public class CloudStormServiceTest {
*/
@Test
public void testBuildSSHKeyPair() throws Exception {
if (ToscaHelper.isServiceUp(sureToscaBasePath)) {
System.out.println("buildSSHKeyPair");
CloudStormService instance = getService(messageExampleProvisioneRequestFilePath);
initPaths();
......@@ -181,7 +185,7 @@ public class CloudStormServiceTest {
userPrivateName = FilenameUtils.removeExtension(userPublicKeyName);
assertTrue(new File(tempInputDirPath + File.separator + userPrivateName).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