diff options
Diffstat (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java')
-rw-r--r-- | vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java new file mode 100644 index 00000000..b407b167 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSODeleteService.java @@ -0,0 +1,30 @@ +package org.onap.simulator.presetGenerator.presets.mso; + +import vid.automation.test.infra.Features; + +public class PresetMSODeleteService extends PresetMSOBaseDelete { + private final String serviceInstanceId; + public static final String DEFAULT_SERVICE_INSTANCE_ID = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d"; + + public PresetMSODeleteService() { + this(null, null); + } + + public PresetMSODeleteService(String requestId, String serviceInstanceId) { + super(requestId); + this.serviceInstanceId = serviceInstanceId != null ? serviceInstanceId : DEFAULT_SERVICE_INSTANCE_ID; + } + + @Override + public String getReqPath() { + return getRootPath() + serviceInstanceId; + } + + @Override + protected String getRootPath() { + return Features.FLAG_UNASSIGN_SERVICE.isActive() ? + "/mso/serviceInstantiation/v./serviceInstances/" : + "/mso/serviceInstances/v./"; + + } +} |