From 8110f18571f6792ddd9ab21a63d0b13089f55f76 Mon Sep 17 00:00:00 2001 From: Shailendra Borale Date: Fri, 3 Nov 2017 18:36:06 -0400 Subject: Added sleep before GET call Added 30 second sleep to take care of AAI replication issue Changed calls to toJsonString to toJsonStringNoRootName. toJsonString adds additional braces causing parsing error Added code to skip wait in case of unit testing. added debug prints to test cases Change-Id: I25461da8051f96ea2c8f6c5fde386a0ba0b66e43 IssueId: SO-303 Signed-off-by: Shailendra Borale --- .../org/openecomp/mso/bpmn/vcpe/CreateVcpeResCustServiceTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp') diff --git a/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/vcpe/CreateVcpeResCustServiceTest.java b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/vcpe/CreateVcpeResCustServiceTest.java index 8f94187f48..38461de5a0 100644 --- a/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/vcpe/CreateVcpeResCustServiceTest.java +++ b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/vcpe/CreateVcpeResCustServiceTest.java @@ -84,6 +84,7 @@ public class CreateVcpeResCustServiceTest extends AbstractTestBase { public void testCreateVcpeResCustService_Success() throws Exception { + System.out.println("starting: testCreateVcpeResCustService_Success\n"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "2", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetCustomer(CUST, "VCPE/CreateVcpeResCustService/getCustomer.xml"); @@ -159,6 +160,7 @@ public class CreateVcpeResCustServiceTest extends AbstractTestBase { public void testCreateVcpeResCustService_NoParts() throws Exception { + System.out.println("starting: testCreateVcpeResCustService_NoParts\n" ); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "2", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesNoData.json"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesNoData.json"); MockGetCustomer(CUST, "VCPE/CreateVcpeResCustService/getCustomer.xml"); @@ -226,6 +228,7 @@ public class CreateVcpeResCustServiceTest extends AbstractTestBase { public void testCreateVcpeResCustService_Fault_NoRollback() throws Exception { + System.out.println("starting: testCreateVcpeResCustService_Fault_NoRollback\n"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "2", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetCustomer(CUST, "VCPE/CreateVcpeResCustService/getCustomer.xml"); @@ -296,6 +299,7 @@ public class CreateVcpeResCustServiceTest extends AbstractTestBase { public void testCreateVcpeResCustService_Fault_Rollback() throws Exception { + System.out.println("starting: testCreateVcpeResCustService_Fault_Rollback\n"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "2", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetServiceResourcesCatalogData("uuid-miu-svc-011-abcdef", "VCPE/CreateVcpeResCustService/getCatalogServiceResourcesData.json"); MockGetCustomer(CUST, "VCPE/CreateVcpeResCustService/getCustomer.xml"); -- cgit 1.2.3-korg