Create SVG in UI
[clamp.git] / src / test / java / org / onap / clamp / loop / LoopControllerTestItCase.java
index 4d51bb2..f170bc6 100644 (file)
@@ -86,7 +86,7 @@ public class LoopControllerTestItCase {
     }
 
     private Loop createTestLoop(String loopName, String loopBlueprint, String loopSvg) {
-        return new Loop(loopName, loopSvg);
+        return new Loop(loopName);
     }
 
     @Test
@@ -94,7 +94,7 @@ public class LoopControllerTestItCase {
     public void testUpdateOperationalPolicies() {
         saveTestLoopToDb();
         String policy = "[{\"name\":\"OPERATIONAL_CLholmes31_v1_0_vFW_PG_T10_k8s-holmes-rules\","
-                + "\"configurationsJson\":{\"guard_policies\":{},"
+                + "\"configurationsJson\":{"
                 + "\"operational_policy\":{\"controlLoop\":{\"trigger_policy\":\"unique-policy-id-1-modifyConfig\","
                 + "\"timeout\":\"3600\",\"abatement\":\"false\","
                 + "\"controlLoopName\":\"LOOP_CLholmes31_v1_0_vFW_PG_T10_k8s-holmes-rules\"},"
@@ -148,14 +148,6 @@ public class LoopControllerTestItCase {
         assertThat(microServicePolicyService.isExisting("policyName")).isTrue();
     }
 
-    @Test
-    @Transactional
-    public void testGetSvgRepresentation() {
-        saveTestLoopToDb();
-        String svgRepresentation = loopController.getSvgRepresentation(EXAMPLE_LOOP_NAME);
-        assertThat(svgRepresentation).isEqualTo("representation");
-    }
-
     @Test
     @Transactional
     public void testAddAndRemoveOperationalPolicies() throws IOException {