From a9d903b6eb024b76bacf09dec811b4124d79d616 Mon Sep 17 00:00:00 2001 From: aleemraja Date: Sun, 28 Feb 2021 10:40:17 +0530 Subject: Core-nssmf - activate/deactivate flow To fix the issues noticed during testing - in activate and deactivate flow - in allocate non-shared: update requestdb correctly when flow is successful. Issue-ID: SO-3527 Signed-off-by: aleemraja Change-Id: I37ce7d61eaba8ea60a95a9517509696b2cf3a357 --- .../so/bpmn/infrastructure/scripts/DoActivateCoreNSSITest.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-common/src/test') diff --git a/bpmn/so-bpmn-infrastructure-common/src/test/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateCoreNSSITest.groovy b/bpmn/so-bpmn-infrastructure-common/src/test/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateCoreNSSITest.groovy index 69780939ef..e4c6fe5f60 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/test/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateCoreNSSITest.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/test/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateCoreNSSITest.groovy @@ -184,10 +184,9 @@ class DoActivateCoreNSSITest extends MsoGroovyTest { when(mockExecution.getVariable("snssaiAndOrchStatusList")).thenReturn(snssaiList) String returnedJsonAsString= doActivate.prepareVnfInstanceParamsJson(mockExecution) - - String expectedJsonAsString = """{supportedNssai={"sNssai":[{"snssai":"01-5C83F071","status":"activated"},{"snssai":"01-5B179BD4","status":"activated"}]}}""" + String expectedJsonAsString = """{"sNssai":[{"snssai":"01-5C83F071","status":"activated"},{"snssai":"01-5B179BD4","status":"activated"}]}""" assertEquals(expectedJsonAsString, returnedJsonAsString) - } + } String mockQueryNS() { -- cgit 1.2.3-korg