summaryrefslogtreecommitdiffstats
path: root/so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@est.tech>2023-04-06 17:51:04 +0100
committerwaqas.ikram <waqas.ikram@est.tech>2023-04-06 17:53:26 +0100
commit0d6f08c1d3a62144f4894af22ada1c49d3947609 (patch)
tree63feda9b9c2dd9f481d464abec26bda81e9f77ca /so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org
parentd57532cace7ca1201b9042e6c4f6d907bbaf7ba3 (diff)
Adding dynamic namespace support1.12.1
Change-Id: I62ea7d94043bc2f3617e8f19b4f84a9d58c20b6b Issue-ID: SO-4097 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
Diffstat (limited to 'so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org')
-rw-r--r--so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org/onap/so/cnfm/lcm/database/service/DatabaseServiceProviderTest.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org/onap/so/cnfm/lcm/database/service/DatabaseServiceProviderTest.java b/so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org/onap/so/cnfm/lcm/database/service/DatabaseServiceProviderTest.java
index 4397fb5..062f501 100644
--- a/so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org/onap/so/cnfm/lcm/database/service/DatabaseServiceProviderTest.java
+++ b/so-cnfm/so-cnfm-lcm/so-cnfm-lcm-database-service/src/test/java/org/onap/so/cnfm/lcm/database/service/DatabaseServiceProviderTest.java
@@ -102,7 +102,7 @@ public class DatabaseServiceProviderTest {
.asdInvariantId(RANDOM_ID).statusUpdatedTime(CURRENT_DATE_TIME).asApplicationName("asApplicationName")
.asApplicationVersion("asApplicationVersion").asProvider("asProvider").serviceInstanceId(RANDOM_ID)
.serviceInstanceName("serviceInstanceName").cloudOwner("cloudOwner").cloudRegion("cloudRegion")
- .tenantId("tenantId");
+ .tenantId("tenantId").namespace("namespace");
databaseServiceProvider.saveAsInst(asInst);
@@ -135,7 +135,7 @@ public class DatabaseServiceProviderTest {
.asdInvariantId(RANDOM_ID).statusUpdatedTime(CURRENT_DATE_TIME).asApplicationName("asApplicationName")
.asApplicationVersion("asApplicationVersion").asProvider("asProvider").serviceInstanceId(RANDOM_ID)
.serviceInstanceName("serviceInstanceName").cloudOwner("cloudOwner").cloudRegion("cloudRegion")
- .tenantId("tenantId");
+ .tenantId("tenantId").namespace("namespace");
databaseServiceProvider.saveAsInst(asInst);
@@ -177,13 +177,15 @@ public class DatabaseServiceProviderTest {
databaseServiceProvider.getAsLifecycleParam(aslifecycleparam.getAsLifecycleParamId());
final AsLifecycleParam actualLifecycleParam = actualLP.get();
assertEquals(aslifecycleparam.getLifecycleParam(), actualLifecycleParam.getLifecycleParam());
- assertEquals(asdeploymentItem.getAsDeploymentItemInstId(), actualLifecycleParam.getAsDeploymentItemInst().getAsDeploymentItemInstId());
+ assertEquals(asdeploymentItem.getAsDeploymentItemInstId(),
+ actualLifecycleParam.getAsDeploymentItemInst().getAsDeploymentItemInstId());
assertEquals(aslifecycleparam.getAsLifecycleParamId(), actualLifecycleParam.getAsLifecycleParamId());
- List<AsLifecycleParam> aslifecycleParamsList =
- databaseServiceProvider.getAsLifecycleParamByAsDeploymentItemId(asdeploymentItem.getAsDeploymentItemInstId());
+ List<AsLifecycleParam> aslifecycleParamsList = databaseServiceProvider
+ .getAsLifecycleParamByAsDeploymentItemId(asdeploymentItem.getAsDeploymentItemInstId());
assertFalse(aslifecycleParamsList.isEmpty());
- assertEquals(asdeploymentItem.getAsDeploymentItemInstId(), aslifecycleParamsList.get(0).getAsDeploymentItemInst().getAsDeploymentItemInstId());
+ assertEquals(asdeploymentItem.getAsDeploymentItemInstId(),
+ aslifecycleParamsList.get(0).getAsDeploymentItemInst().getAsDeploymentItemInstId());
}
@Test
@@ -193,7 +195,7 @@ public class DatabaseServiceProviderTest {
.asdInvariantId(RANDOM_ID).statusUpdatedTime(CURRENT_DATE_TIME).asApplicationName("asApplicationName")
.asApplicationVersion("asApplicationVersion").asProvider("asProvider").serviceInstanceId(RANDOM_ID)
.serviceInstanceName("serviceInstanceName").cloudOwner("cloudOwner").cloudRegion("cloudRegion")
- .tenantId("tenantId");
+ .tenantId("tenantId").namespace("namespace");
databaseServiceProvider.saveAsInst(asInst);