summaryrefslogtreecommitdiffstats
path: root/lcm/provider/src/test
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-01 11:52:01 -0800
committerJessica Wagantall <jwagantall@linuxfoundation.org>2020-12-01 11:52:01 -0800
commitff3eecb980bfdc8d43d2ed3a4c786d634fa6f4e2 (patch)
tree680db1c4f69f5c181b8f1fb7d7d8f46942783b3e /lcm/provider/src/test
parent02b6c140f031c19cfcb791fd0142f03167db69b1 (diff)
Migrate sli-northbound repo
Migrate sli-northbound repo files into new directory "northbound". Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'lcm/provider/src/test')
-rw-r--r--lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmProvider.java1601
-rw-r--r--lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmRpcInvocationException.java20
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Audit.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Configure.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Evacuate.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Lock.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Migrate.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Query.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Reboot.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Rebuild.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Restart.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Rollback.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Snapshot.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Start.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Stop.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Sync.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Terminate.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Test.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_Unlock.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_action-status.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_activate-n-e-sw.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_attach-volume.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_check-lock.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup-delete.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-export.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-modify.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-restore.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_config-scale-out.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_detach-volume.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_distribute-traffic.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_download-n-e-sw.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_health-check.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_live-upgrade.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_quiesce-traffic.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_resume-traffic.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_software-upload.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_start-application.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_stop-application.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_update-software.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backout.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backup.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-post-check.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-pre-check.xml30
-rw-r--r--lcm/provider/src/test/resources/graphs/lcm/graph.versions42
-rw-r--r--lcm/provider/src/test/resources/simplelogger.properties22
-rw-r--r--lcm/provider/src/test/resources/svclogic.properties27
47 files changed, 0 insertions, 2972 deletions
diff --git a/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmProvider.java b/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmProvider.java
deleted file mode 100644
index b73151e8d..000000000
--- a/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmProvider.java
+++ /dev/null
@@ -1,1601 +0,0 @@
-package org.onap.ccsdk.sli.northbound;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
-import static org.mockito.Matchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import java.io.InputStream;
-import java.net.URL;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.Properties;
-import java.util.concurrent.ExecutionException;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.onap.ccsdk.sli.core.sli.SvcLogicLoader;
-import org.onap.ccsdk.sli.core.sli.SvcLogicStore;
-import org.onap.ccsdk.sli.core.sli.SvcLogicStoreFactory;
-import org.onap.ccsdk.sli.core.sli.provider.SvcLogicClassResolver;
-import org.onap.ccsdk.sli.core.sli.provider.SvcLogicPropertiesProviderImpl;
-import org.onap.ccsdk.sli.core.sli.provider.SvcLogicServiceImpl;
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.Action;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ActionStatusInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ActionStatusOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.AttachVolumeInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.AttachVolumeOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.AuditInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.AuditOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.CheckLockInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.CheckLockOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigBackupDeleteInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigBackupDeleteOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigBackupInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigBackupOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigExportInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigExportOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigModifyInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigModifyOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigRestoreInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigRestoreOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigScaleOutInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigScaleOutOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigureInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ConfigureOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DetachVolumeInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DetachVolumeOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DistributeTrafficInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DistributeTrafficOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.EvacuateInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.EvacuateOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.HealthCheckInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.HealthCheckOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.LCMService;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.LiveUpgradeInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.LiveUpgradeOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.LockInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.LockOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.MigrateInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.MigrateOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.Payload;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.QueryInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.QueryOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.QuiesceTrafficInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.QuiesceTrafficOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RebootInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RebootOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RestartInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RestartOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ResumeTrafficInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ResumeTrafficOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RollbackInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.RollbackOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SnapshotInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SnapshotOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SoftwareUploadInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SoftwareUploadOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StartApplicationInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StartApplicationOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StartInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StartOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StopApplicationInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StopApplicationOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StopInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.StopOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SyncInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.SyncOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.TerminateInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.TerminateOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.TestInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.TestOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UnlockInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UnlockOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeBackoutInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeBackoutOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeBackupInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeBackupOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradePostCheckInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradePostCheckOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradePreCheckInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradePreCheckOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeSoftwareInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.UpgradeSoftwareOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DownloadNESwInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.DownloadNESwOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ActivateNESwInputBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ActivateNESwOutput;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.ZULU;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.action.identifiers.ActionIdentifiersBuilder;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.common.header.CommonHeaderBuilder;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class TestLcmProvider {
-
- Logger LOG = LoggerFactory.getLogger(LcmProvider.class);
- private LcmProvider provider;
-
- /**
- * @throws java.lang.Exception
- */
- @Before
- public void setUp() throws Exception {
- DataBroker dataBroker = mock(DataBroker.class);
- NotificationPublishService notifyService = mock(NotificationPublishService.class);
- RpcProviderRegistry rpcRegistry = mock(RpcProviderRegistry.class);
- BindingAwareBroker.RpcRegistration<LCMService> rpcRegistration = (BindingAwareBroker.RpcRegistration<LCMService>) mock(BindingAwareBroker.RpcRegistration.class);
- when(rpcRegistry.addRpcImplementation(any(Class.class), any(LCMService.class))).thenReturn(rpcRegistration);
-
-
- // Load svclogic.properties and get a SvcLogicStore
- InputStream propStr = TestLcmProvider.class.getResourceAsStream("/svclogic.properties");
- Properties svcprops = new Properties();
- svcprops.load(propStr);
-
- SvcLogicStore store = SvcLogicStoreFactory.getSvcLogicStore(svcprops);
-
- assertNotNull(store);
-
- URL graphUrl = TestLcmProvider.class.getClassLoader().getResource("graphs");
-
- if (graphUrl == null) {
- fail("Cannot find graphs directory");
- }
-
- SvcLogicLoader loader = new SvcLogicLoader(graphUrl.getPath(), store);
- loader.loadAndActivate();
-
- // Create a ServiceLogicService
- SvcLogicServiceImpl svc = new SvcLogicServiceImpl(new SvcLogicPropertiesProviderImpl(),
- new SvcLogicClassResolver());
-
- // Finally ready to create sliapiProvider
- LcmSliClient client = new LcmSliClient(svc);
- provider = new LcmProvider(dataBroker, notifyService, rpcRegistry, client);
- }
-
- /**
- * @throws java.lang.Exception
- */
- @After
- public void tearDown() throws Exception {
- provider.close();
- }
-
-
- @Test
- public void testCheckLock() {
- CheckLockInputBuilder builder = new CheckLockInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.CheckLock);
-
- try {
- CheckLockOutput results = provider.checkLock(builder.build()).get().getResult();
- LOG.info("CheckLock returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("CheckLock threw exception");
- }
-
- }
-
- @Test
- public void testReboot() {
- RebootInputBuilder builder = new RebootInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Reboot);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- RebootOutput results = provider.reboot(builder.build()).get().getResult();
- LOG.info("Reboot returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Reboot threw exception");
- }
- }
-
- @Test
- public void testUpgradeBackup() {
- UpgradeBackupInputBuilder builder = new UpgradeBackupInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.UpgradeBackup);
- builder.setPayload(mock(Payload.class));
-
-
-
- try {
- UpgradeBackupOutput results = provider.upgradeBackup(builder.build()).get().getResult();
- LOG.info("UpgradeBackout returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("CheckLock threw exception");
- }
- }
-
- @Test
- public void testRollback() {
- RollbackInputBuilder builder = new RollbackInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Rollback);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- RollbackOutput results = provider.rollback(builder.build()).get().getResult();
- LOG.info("Rollback returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Rollback threw exception");
- }
- }
-
- @Test
- public void testSync() {
- SyncInputBuilder builder = new SyncInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Sync);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- SyncOutput results = provider.sync(builder.build()).get().getResult();
- LOG.info("Sync returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Sync threw exception");
- }
- }
-
- @Test
- public void testQuery() {
- QueryInputBuilder builder = new QueryInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Query);
-
-
- try {
- QueryOutput results = provider.query(builder.build()).get().getResult();
- LOG.info("Query returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Query threw exception");
- }
-
- }
-
- @Test
- public void testConfigExport() {
- ConfigExportInputBuilder builder = new ConfigExportInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigExport);
-
-
- try {
- ConfigExportOutput results = provider.configExport(builder.build()).get().getResult();
- LOG.info("ConfigExport returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigExport threw exception");
- }
- }
-
- @Test
- public void testStopApplication() {
-
- StopApplicationInputBuilder builder = new StopApplicationInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.StopApplication);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- StopApplicationOutput results = provider.stopApplication(builder.build()).get().getResult();
- LOG.info("StopApplication returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("StopApplication threw exception");
- }
- }
-
- @Test
- public void testSoftwareUpload() {
- SoftwareUploadInputBuilder builder = new SoftwareUploadInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.SoftwareUpload);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- SoftwareUploadOutput results = provider.softwareUpload(builder.build()).get().getResult();
- LOG.info("SoftwareUpload returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("SoftwareUpload threw exception");
- }
- }
-
- @Test
- public void testResumeTraffic() {
- ResumeTrafficInputBuilder builder = new ResumeTrafficInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ResumeTraffic);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ResumeTrafficOutput results = provider.resumeTraffic(builder.build()).get().getResult();
- LOG.info("ResumeTraffic returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ResumeTraffic threw exception");
- }
- }
-
- @Test
- public void testDistributeTraffic() {
- DistributeTrafficInputBuilder builder = new DistributeTrafficInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.DistributeTraffic);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- DistributeTrafficOutput results = provider.distributeTraffic(builder.build()).get().getResult();
- LOG.info("DistributeTraffic returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("DistributeTraffic threw exception");
- }
- }
-
- @Test
- public void testConfigure() {
- ConfigureInputBuilder builder = new ConfigureInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Configure);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigureOutput results = provider.configure(builder.build()).get().getResult();
- LOG.info("Configure returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Configure threw exception");
- }
- }
-
- @Test
- public void testActionStatus() {
- ActionStatusInputBuilder builder = new ActionStatusInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ActionStatus);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ActionStatusOutput results = provider.actionStatus(builder.build()).get().getResult();
- LOG.info("ActionStatus returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ActionStatus threw exception");
- }
- }
-
- @Test
- public void testUpgradePreCheck() {
- UpgradePreCheckInputBuilder builder = new UpgradePreCheckInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.UpgradePreCheck);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- UpgradePreCheckOutput results = provider.upgradePreCheck(builder.build()).get().getResult();
- LOG.info("UpgradePreCheck returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("UpgradePreCheck threw exception");
- }
- }
-
- @Test
- public void testLiveUpgrade() {
- LiveUpgradeInputBuilder builder = new LiveUpgradeInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.LiveUpgrade);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- LiveUpgradeOutput results = provider.liveUpgrade(builder.build()).get().getResult();
- LOG.info("LiveUpgrade returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("LiveUpgrade threw exception");
- }
- }
-
- @Test
- public void testConfigModify() {
- ConfigModifyInputBuilder builder = new ConfigModifyInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigModify);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigModifyOutput results = provider.configModify(builder.build()).get().getResult();
- LOG.info("ConfigModify returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigModify threw exception");
- }
- }
-
- @Test
- public void testRestart() {
- RestartInputBuilder builder = new RestartInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Restart);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- RestartOutput results = provider.restart(builder.build()).get().getResult();
- LOG.info("Restart returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Restart threw exception");
- }
- }
-
- @Test
- public void testHealthCheck() {
- HealthCheckInputBuilder builder = new HealthCheckInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.HealthCheck);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- HealthCheckOutput results = provider.healthCheck(builder.build()).get().getResult();
- LOG.info("HealthCheck returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("HealthCheck threw exception");
- }
- }
-
- @Test
- public void testLock() {
- LockInputBuilder builder = new LockInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Lock);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- LockOutput results = provider.lock(builder.build()).get().getResult();
- LOG.info("Lock returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Lock threw exception");
- }
- }
-
- @Test
- public void testTerminate() {
- TerminateInputBuilder builder = new TerminateInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Terminate);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- TerminateOutput results = provider.terminate(builder.build()).get().getResult();
- LOG.info("Terminate returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Terminate threw exception");
- }
- }
-
- @Test
- public void testAttachVolume() {
- AttachVolumeInputBuilder builder = new AttachVolumeInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.AttachVolume);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- AttachVolumeOutput results = provider.attachVolume(builder.build()).get().getResult();
- LOG.info("AttachVolume returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("AttachVolume threw exception");
- }
- }
-
- @Test
- public void testMigrate() {
- MigrateInputBuilder builder = new MigrateInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Migrate);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- MigrateOutput results = provider.migrate(builder.build()).get().getResult();
- LOG.info("Migrate returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Migrate threw exception");
- }
- }
-
- @Test
- public void testQuiesceTraffic() {
- QuiesceTrafficInputBuilder builder = new QuiesceTrafficInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.QuiesceTraffic);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- QuiesceTrafficOutput results = provider.quiesceTraffic(builder.build()).get().getResult();
- LOG.info("QuiesceTraffic returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("QuiesceTraffic threw exception");
- }
- }
-
- @Test
- public void testConfigRestore() {
- ConfigRestoreInputBuilder builder = new ConfigRestoreInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigRestore);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigRestoreOutput results = provider.configRestore(builder.build()).get().getResult();
- LOG.info("ConfigRestore returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigRestore threw exception");
- }
- }
-
- @Test
- public void testUpgradeBackout() {
- UpgradeBackoutInputBuilder builder = new UpgradeBackoutInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.UpgradeBackout);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- UpgradeBackoutOutput results = provider.upgradeBackout(builder.build()).get().getResult();
- LOG.info("UpgradeBackout returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("UpgradeBackout threw exception");
- }
- }
-
- @Test
- public void testEvacuate() {
- EvacuateInputBuilder builder = new EvacuateInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Evacuate);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- EvacuateOutput results = provider.evacuate(builder.build()).get().getResult();
- LOG.info("Evacuate returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Evacuate threw exception");
- }
- }
-
- @Test
- public void testUnlock() {
- UnlockInputBuilder builder = new UnlockInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Unlock);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- UnlockOutput results = provider.unlock(builder.build()).get().getResult();
- LOG.info("Unlock returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Unlock threw exception");
- }
- }
-
- @Test
- public void testConfigBackupDelete() {
- ConfigBackupDeleteInputBuilder builder = new ConfigBackupDeleteInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigBackupDelete);
-
-
- try {
- ConfigBackupDeleteOutput results = provider.configBackupDelete(builder.build()).get().getResult();
- LOG.info("ConfigBackupDelete returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigBackupDelete threw exception");
- }
- }
-
- @Test
- public void testUpgradeSoftware() {
- UpgradeSoftwareInputBuilder builder = new UpgradeSoftwareInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.UpgradeSoftware);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- UpgradeSoftwareOutput results = provider.upgradeSoftware(builder.build()).get().getResult();
- LOG.info("UpgradeSoftware returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("UpgradeSoftware threw exception");
- }
- }
-
- @Test
- public void testDownloadNESw() {
- DownloadNESwInputBuilder builder = new DownloadNESwInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setPnfName("my-pnf");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.DownloadNESw);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- DownloadNESwOutput results = provider.downloadNESw(builder.build()).get().getResult();
- LOG.info("DownloadNESw returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("DownloadNESw threw exception");
- }
- }
-
- @Test
- public void testActivateNESw() {
- ActivateNESwInputBuilder builder = new ActivateNESwInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setPnfName("my-pnf");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ActivateNESw);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ActivateNESwOutput results = provider.activateNESw(builder.build()).get().getResult();
- LOG.info("ActivateNESw returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ActivateNESw threw exception");
- }
- }
-
- @Test
- public void testStop() {
- StopInputBuilder builder = new StopInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Stop);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- StopOutput results = provider.stop(builder.build()).get().getResult();
- LOG.info("Stop returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Stop threw exception");
- }
- }
-
- @Test
- public void testDetachVolume() {
- DetachVolumeInputBuilder builder = new DetachVolumeInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.DetachVolume);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- DetachVolumeOutput results = provider.detachVolume(builder.build()).get().getResult();
- LOG.info("DetachVolume returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("DetachVolume threw exception");
- }
- }
-
- @Test
- public void testConfigScaleOut() {
- ConfigScaleOutInputBuilder builder = new ConfigScaleOutInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigScaleOut);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigScaleOutOutput results = provider.configScaleOut(builder.build()).get().getResult();
- LOG.info("ConfigScaleOut returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigScaleOut threw exception");
- }
- }
-
- @Test
- public void testUpgradePostCheck() {
- UpgradePostCheckInputBuilder builder = new UpgradePostCheckInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.UpgradePostCheck);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- UpgradePostCheckOutput results = provider.upgradePostCheck(builder.build()).get().getResult();
- LOG.info("UpgradePostCheck returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("UpgradePostCheck threw exception");
- }
- }
-
- @Test
- public void testTest() {
- TestInputBuilder builder = new TestInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Test);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- TestOutput results = provider.test(builder.build()).get().getResult();
- LOG.info("Test returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Test threw exception");
- }
- }
-
- @Test
- public void testStartApplication() {
- StartApplicationInputBuilder builder = new StartApplicationInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.StartApplication);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- StartApplicationOutput results = provider.startApplication(builder.build()).get().getResult();
- LOG.info("StartApplication returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("StartApplication threw exception");
- }
- }
-
- @Test
- public void testConfigBackup() {
- ConfigBackupInputBuilder builder = new ConfigBackupInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigBackup);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigBackupOutput results = provider.configBackup(builder.build()).get().getResult();
- LOG.info("ConfigBackup returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigBackup threw exception");
- }
- }
-
- @Test
- public void testRebuild() {
- ConfigBackupInputBuilder builder = new ConfigBackupInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.ConfigBackup);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- ConfigBackupOutput results = provider.configBackup(builder.build()).get().getResult();
- LOG.info("ConfigBackup returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("ConfigBackup threw exception");
- }
- }
-
- @Test
- public void testAudit() {
- AuditInputBuilder builder = new AuditInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Audit);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- AuditOutput results = provider.audit(builder.build()).get().getResult();
- LOG.info("Audit returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Audit threw exception");
- }
- }
-
- @Test
- public void testStart() {
- StartInputBuilder builder = new StartInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Start);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- StartOutput results = provider.start(builder.build()).get().getResult();
- LOG.info("Start returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Start threw exception");
- }
- }
-
- @Test
- public void testSnapshot() {
- SnapshotInputBuilder builder = new SnapshotInputBuilder();
-
- CommonHeaderBuilder hdrBuilder = new CommonHeaderBuilder();
- hdrBuilder.setApiVer("1");
- hdrBuilder.setFlags(null);
- hdrBuilder.setOriginatorId("jUnit");
- hdrBuilder.setRequestId("123");
- hdrBuilder.setTimestamp(new ZULU(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(new Date())));
- builder.setCommonHeader(hdrBuilder.build());
-
- ActionIdentifiersBuilder aBuilder = new ActionIdentifiersBuilder();
- aBuilder.setServiceInstanceId("SVCID-123");
- aBuilder.setVfModuleId("vf-module-1");
- aBuilder.setVnfcName("my-vnfc");
- aBuilder.setVnfId("123");
- aBuilder.setVserverId("123");
- builder.setActionIdentifiers(aBuilder.build());
-
- builder.setAction(Action.Snapshot);
- builder.setPayload(mock(Payload.class));
-
-
- try {
- SnapshotOutput results = provider.snapshot(builder.build()).get().getResult();
- LOG.info("Snapshot returned status {} : {}", results.getStatus().getCode(), results.getStatus().getMessage());
- assert(results.getStatus().getCode() == 400);
- } catch (InterruptedException | ExecutionException e) {
- LOG.error("Caught exception", e);
- fail("Snapshot threw exception");
- }
- }
-
-}
diff --git a/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmRpcInvocationException.java b/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmRpcInvocationException.java
deleted file mode 100644
index f95e83250..000000000
--- a/lcm/provider/src/test/java/org/onap/ccsdk/sli/northbound/TestLcmRpcInvocationException.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.onap.ccsdk.sli.northbound;
-
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
-import org.onap.ccsdk.sli.core.sli.SvcLogicException;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.common.header.CommonHeader;
-import org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.northbound.lcm.rev180329.status.Status;
-
-public class TestLcmRpcInvocationException {
-
- @Test(expected = SvcLogicException.class)
- public void testLcmRpcInvocationException() throws SvcLogicException{
- Status status = null;
- CommonHeader commonHeader = null;
- LcmRpcInvocationException exception = new LcmRpcInvocationException(status, commonHeader);
- assert(exception.getStatus() == status);
- assert(exception.getCommonHeader() == commonHeader);
- throw exception;
- }
-}
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Audit.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Audit.xml
deleted file mode 100644
index 34c84ed9a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Audit.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='audit' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Configure.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Configure.xml
deleted file mode 100644
index a37f0675a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Configure.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='configure' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Evacuate.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Evacuate.xml
deleted file mode 100644
index 216bd418b..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Evacuate.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='evacuate' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Lock.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Lock.xml
deleted file mode 100644
index 6479d3ec5..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Lock.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='lock' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Migrate.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Migrate.xml
deleted file mode 100644
index 9c8959681..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Migrate.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='migrate' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Query.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Query.xml
deleted file mode 100644
index 5d0312292..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Query.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='query' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Reboot.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Reboot.xml
deleted file mode 100644
index f117f9606..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Reboot.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='reboot' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Rebuild.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Rebuild.xml
deleted file mode 100644
index e721bc5a7..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Rebuild.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='rebuild' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Restart.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Restart.xml
deleted file mode 100644
index b47091af2..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Restart.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='restart' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Rollback.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Rollback.xml
deleted file mode 100644
index 6844d0482..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Rollback.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='rollback' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Snapshot.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Snapshot.xml
deleted file mode 100644
index 6d0f8b039..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Snapshot.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='snapshot' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Start.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Start.xml
deleted file mode 100644
index 5998614ab..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Start.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='start' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Stop.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Stop.xml
deleted file mode 100644
index f752725de..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Stop.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='stop' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Sync.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Sync.xml
deleted file mode 100644
index 5741175cf..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Sync.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='sync' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Terminate.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Terminate.xml
deleted file mode 100644
index 0f2758a89..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Terminate.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='terminate' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Test.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Test.xml
deleted file mode 100644
index 5ce002d0c..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Test.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='test' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_Unlock.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_Unlock.xml
deleted file mode 100644
index d506c2fd5..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_Unlock.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='unlock' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_action-status.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_action-status.xml
deleted file mode 100644
index 435a62d95..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_action-status.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='action-status' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_activate-n-e-sw.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_activate-n-e-sw.xml
deleted file mode 100644
index 44343dd5f..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_activate-n-e-sw.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='activate-n-e-sw' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_attach-volume.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_attach-volume.xml
deleted file mode 100644
index b073f9b7e..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_attach-volume.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='attach-volume' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_check-lock.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_check-lock.xml
deleted file mode 100644
index e07bf133d..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_check-lock.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='check-lock' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup-delete.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup-delete.xml
deleted file mode 100644
index 5366c30a0..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup-delete.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-backup-delete' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup.xml
deleted file mode 100644
index e32e5fe5b..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-backup.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-backup' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-export.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-export.xml
deleted file mode 100644
index fd6596bac..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-export.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-export' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-modify.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-modify.xml
deleted file mode 100644
index 76782f432..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-modify.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-modify' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-restore.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-restore.xml
deleted file mode 100644
index e0ed71b8a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-restore.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-restore' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-scale-out.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_config-scale-out.xml
deleted file mode 100644
index 5200feb8a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_config-scale-out.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='config-scale-out' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_detach-volume.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_detach-volume.xml
deleted file mode 100644
index 117a3e31a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_detach-volume.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='detach-volume' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_distribute-traffic.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_distribute-traffic.xml
deleted file mode 100644
index 14ff1134c..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_distribute-traffic.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='distribute-traffic' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_download-n-e-sw.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_download-n-e-sw.xml
deleted file mode 100644
index 6bb0e765c..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_download-n-e-sw.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='download-n-e-sw' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_health-check.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_health-check.xml
deleted file mode 100644
index cf0f773e6..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_health-check.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='health-check' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_live-upgrade.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_live-upgrade.xml
deleted file mode 100644
index 02fb050f8..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_live-upgrade.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='live-upgrade' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_quiesce-traffic.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_quiesce-traffic.xml
deleted file mode 100644
index 0770b3dfc..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_quiesce-traffic.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='quiesce-traffic' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_resume-traffic.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_resume-traffic.xml
deleted file mode 100644
index 7e0f1d6b3..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_resume-traffic.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='resume-traffic' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_software-upload.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_software-upload.xml
deleted file mode 100644
index a9eb58ac4..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_software-upload.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='software-upload' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_start-application.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_start-application.xml
deleted file mode 100644
index 9b422a83c..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_start-application.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='start-application' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_stop-application.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_stop-application.xml
deleted file mode 100644
index 91dc4fca6..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_stop-application.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='stop-application' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_update-software.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_update-software.xml
deleted file mode 100644
index 75440c2a0..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_update-software.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='upgrade-software' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backout.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backout.xml
deleted file mode 100644
index d48d6817a..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backout.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='upgrade-backout' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backup.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backup.xml
deleted file mode 100644
index d81651a83..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-backup.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='upgrade-backup' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-post-check.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-post-check.xml
deleted file mode 100644
index ba2798a41..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-post-check.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='upgrade-post-check' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-pre-check.xml b/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-pre-check.xml
deleted file mode 100644
index 1aaf18fff..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/LCM_upgrade-pre-check.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ============LICENSE_START=======================================================
- openECOMP : SDN-C
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights
- reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd"
- module='LCM' version='1.0.0'>
- <method rpc='upgrade-pre-check' mode='sync'>
- <set>
- <parameter name='status.code' value='400' />
- <parameter name='status.message' value='SUCCESS' />
- </set>
- </method>
-</service-logic>
diff --git a/lcm/provider/src/test/resources/graphs/lcm/graph.versions b/lcm/provider/src/test/resources/graphs/lcm/graph.versions
deleted file mode 100644
index 420bcf619..000000000
--- a/lcm/provider/src/test/resources/graphs/lcm/graph.versions
+++ /dev/null
@@ -1,42 +0,0 @@
-LCM restart 1.0.0 sync
-LCM rebuild 1.0.0 sync
-LCM migrate 1.0.0 sync
-LCM evacuate 1.0.0 sync
-LCM snapshot 1.0.0 sync
-LCM rollback 1.0.0 sync
-LCM sync 1.0.0 sync
-LCM audit 1.0.0 sync
-LCM stop 1.0.0 sync
-LCM start 1.0.0 sync
-LCM terminate 1.0.0 sync
-LCM software-upload 1.0.0 sync
-LCM health-check 1.0.0 sync
-LCM live-upgrade 1.0.0 sync
-LCM lock 1.0.0 sync
-LCM unlock 1.0.0 sync
-LCM test 1.0.0 sync
-LCM check-lock 1.0.0 sync
-LCM configure 1.0.0 sync
-LCM config-modify 1.0.0 sync
-LCM config-scale-out 1.0.0 sync
-LCM config-restore 1.0.0 sync
-LCM config-backup 1.0.0 sync
-LCM config-backup-delete 1.0.0 sync
-LCM config-export 1.0.0 sync
-LCM stop-application 1.0.0 sync
-LCM start-application 1.0.0 sync
-LCM quiesce-traffic 1.0.0 sync
-LCM resume-traffic 1.0.0 sync
-LCM distribute-traffic 1.0.0 sync
-LCM upgrade-pre-check 1.0.0 sync
-LCM upgrade-software 1.0.0 sync
-LCM download-n-e-sw 1.0.0 sync
-LCM activate-n-e-sw 1.0.0 sync
-LCM upgrade-post-check 1.0.0 sync
-LCM upgrade-backup 1.0.0 sync
-LCM upgrade-backout 1.0.0 sync
-LCM action-status 1.0.0 sync
-LCM query 1.0.0 sync
-LCM reboot 1.0.0 sync
-LCM attach-volume 1.0.0 sync
-LCM detach-volume 1.0.0 sync
diff --git a/lcm/provider/src/test/resources/simplelogger.properties b/lcm/provider/src/test/resources/simplelogger.properties
deleted file mode 100644
index 001dfd427..000000000
--- a/lcm/provider/src/test/resources/simplelogger.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-###
-# ============LICENSE_START=======================================================
-# ONAP : CCSDK
-# ================================================================================
-# Copyright (C) 2017 AT&T Intellectual Property. All rights
-# reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-###
-
-org.slf4j.simpleLogger.defaultLogLevel=debug
diff --git a/lcm/provider/src/test/resources/svclogic.properties b/lcm/provider/src/test/resources/svclogic.properties
deleted file mode 100644
index 426960f76..000000000
--- a/lcm/provider/src/test/resources/svclogic.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-###
-# ============LICENSE_START=======================================================
-# ONAP : CCSDK
-# ================================================================================
-# Copyright (C) 2017 AT&T Intellectual Property. All rights
-# reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-###
-
-org.onap.ccsdk.sli.dbtype = jdbc
-org.onap.ccsdk.sli.jdbc.url=jdbc:derby:memory:sdnctl;create=true
-org.onap.ccsdk.sli.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
-org.onap.ccsdk.sli.jdbc.database = sdnctl
-org.onap.ccsdk.sli.jdbc.user = test
-org.onap.ccsdk.sli.jdbc.password = test