Changed code to not construct the path from user-controlled data.
[vnfsdk/refrepo.git] / vnfmarket-be / vnf-sdk-marketplace / src / test / java / org / onap / vtp / VTPScenarioResourceTest.java
index 5545779..b743615 100644 (file)
@@ -108,9 +108,11 @@ public class VTPScenarioResourceTest {
     @Test
     public void testDeleteScenario() throws Exception
     {
+        String yamlStore = vtpScenarioResource.VTP_YAML_STORE;
+        vtpScenarioResource.VTP_YAML_STORE = "/tmp";
         vtpScenarioResource.deleteScenario("demo-registry.yaml");
+        vtpScenarioResource.VTP_YAML_STORE = yamlStore;
     }
-
     @Test(expected = NullPointerException.class)
     public void testStorageTestcases() throws Exception
     {