Commit a68b7a83 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added initPaths in build ssh keys

parent 483fa864
...@@ -138,7 +138,6 @@ public class CloudStormServiceTest { ...@@ -138,7 +138,6 @@ public class CloudStormServiceTest {
// instance.execute(); // instance.execute();
// } // }
// } // }
/** /**
* Test of writeCloudStormTopologyFiles method, of class CloudStormService. * Test of writeCloudStormTopologyFiles method, of class CloudStormService.
*/ */
...@@ -157,6 +156,7 @@ public class CloudStormServiceTest { ...@@ -157,6 +156,7 @@ public class CloudStormServiceTest {
public void testBuildSSHKeyPair() throws Exception { public void testBuildSSHKeyPair() throws Exception {
System.out.println("buildSSHKeyPair"); System.out.println("buildSSHKeyPair");
CloudStormService instance = getService(messageExampleProvisioneRequestFilePath); CloudStormService instance = getService(messageExampleProvisioneRequestFilePath);
initPaths();
String result = instance.buildSSHKeyPair(tempInputDirPath, null); String result = instance.buildSSHKeyPair(tempInputDirPath, null);
assertNotNull(result); assertNotNull(result);
String userPublicKeyName = "id_rsa.pub"; String userPublicKeyName = "id_rsa.pub";
...@@ -165,6 +165,7 @@ public class CloudStormServiceTest { ...@@ -165,6 +165,7 @@ public class CloudStormServiceTest {
assertTrue(new File(tempInputDirPath + File.separator + userPublicKeyName).exists()); assertTrue(new File(tempInputDirPath + File.separator + userPublicKeyName).exists());
instance = getService(messageExampleDeleteRequestFilePath); instance = getService(messageExampleDeleteRequestFilePath);
initPaths();
result = instance.buildSSHKeyPair(tempInputDirPath, null); result = instance.buildSSHKeyPair(tempInputDirPath, null);
assertNotNull(result); assertNotNull(result);
userPublicKeyName = "id_rsa.pub"; userPublicKeyName = "id_rsa.pub";
...@@ -208,8 +209,6 @@ public class CloudStormServiceTest { ...@@ -208,8 +209,6 @@ public class CloudStormServiceTest {
} }
private void testWriteCloudStormInfrasFiles(String path, CloudsStormSubTopology.StatusEnum status, OpCode.OperationEnum opCode) throws IOException, JsonProcessingException, ApiException, Exception { private void testWriteCloudStormInfrasFiles(String path, CloudsStormSubTopology.StatusEnum status, OpCode.OperationEnum opCode) throws IOException, JsonProcessingException, ApiException, Exception {
CloudStormService instance = getService(path); CloudStormService instance = getService(path);
initPaths(); initPaths();
......
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