From 42c578ff3926933833b6390f880d5954b5d931df Mon Sep 17 00:00:00 2001 From: eh552t Date: Thu, 9 Feb 2017 16:38:55 +0100 Subject: SoapUI tests for APIH Infra Added some soapUI tests for testing APIH Infra in Arquilian. Some bug fixes in the Tenant Adapter and VNF adapter SoapUIs. BugFix in case of bad ModelType in a request we gor null pointer Exception. Change-Id: Icf9b8fc344d15860ac8dd11984894b07ecf5b085 Signed-off-by: eh552t --- .../mso/global_tests/soapui/SoapUiITCase.java | 32 +- .../SoapUI/Local-API-Handler-soapui-project.xml | 1727 +++++++++++++++++++- .../SoapUI/MSOTenantAdapter-soapui-project.xml | 8 +- .../SoapUI/MSOVnfAdapter-soapui-project.xml | 10 +- .../automated-tests/create_mso_db-tests.sql | 3 + .../default/create_mso_db-default.sql | 6 +- 6 files changed, 1763 insertions(+), 23 deletions(-) mode change 100644 => 100755 packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml (limited to 'packages') diff --git a/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java b/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java index ac730c5787..5783b237ed 100644 --- a/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java +++ b/packages/arquillian-unit-tests/src/test/java/org/openecomp/mso/global_tests/soapui/SoapUiITCase.java @@ -91,7 +91,7 @@ public class SoapUiITCase { System.out.println("Deploying Gamma BPMN WAR on default server"); return ArquillianPackagerForITCases.createPackageFromExistingOne("../../bpmn/MSOGammaBPMN/target/", "MSOGammaBPMN*.war", "MSOGammaBPMN.war"); } -/* +/* @Deployment(name = "SoapUIMocks", testable = false) public static Archive createSoapUIMocksWarDeployment () { @@ -144,6 +144,36 @@ public class SoapUiITCase { } } + @Test + @RunAsClient + public void test02ApiHandlerInfra () { + SoapUITestCaseRunner runner = new SoapUITestCaseRunner (); + runner.setSettingsFile("./src/test/resources/SoapUI/soapui-settings.xml"); + runner.setJUnitReport(true); + runner.setProjectFile ("./src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml"); + runner.setOutputFolder ("./target/surefire-reports"); + String[] properties = new String[3]; + properties[0] = "host="+jbossHost+":"+jbossPort; + properties[1] = "user-infraportal=InfraPortalClient"; + properties[2] = "password-infraportal=password1$"; + + runner.setProjectProperties (properties); + + try { + runner.setTestSuite ("simple_tests_endpoints"); + runner.run (); + Map mapResult= runner.getAssertionResults(); + for(Map.Entry entry : mapResult.entrySet()) { + assertTrue(entry.getValue().getStatus().equals(TestStepStatus.OK)); + } + assertTrue (runner.getFailedTests ().size () == 0); + + } catch (Exception e) { + e.printStackTrace (); + fail("Failure in SOAPUI ApiHandler Infra"); + } + } + @Test @RunAsClient public void test03StartNetworkAdapter () { diff --git a/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml b/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml old mode 100644 new mode 100755 index ca36eec6d9..b32f5dec63 --- a/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml +++ b/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml @@ -1,5 +1,349 @@ -http://localhost:8080application/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404 502 409v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}http://localhost:8080application/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404 502 409v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host} + +155415ab-b4a7-4382-b4c6-d17d950565 +Layer3ServiceActivateRequest +OMX +https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws +5051560 +1 + + +SDN-ETHERNET-INTERNET +HI/VLXM/003717//SW_INTERNET +ST E2E Test50565_13000050565 + + + +AS/VLXM/003717//SW +MultiPoint +MTSNJA4LCP1 + + + +8 +Mbps +ds + + +none + +primary +10.172.125.0 +28 +2001:112a:86c6:0045:1007:8a5d:0412:9179 +64 + + +1 +18.181.120.12 +28 + + + + +1 +2022:0cf7:87a6:0048:1008:8a4c:0373:1048 +64 + + + + +Y +Y +N +N + + +Y +N + + +Y +Y + + + + + +]]>http://localhost/ecomp/mso/v1/services${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host} + + ChgActsm519-501 + ChangeLayer3ServiceActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNot +ification.jws + 051815-1005 + 2 + + + SDN-ETHERNET-INTERNET + TL/VLXM/003717//SW_INTERNET + Gamma Gamma E2E Test_051815_50 + + + + + 20 + Mbps + ds + + + none + + primary + 10.192.70.254 + 24 + 2620:0:10d0:0:ffff:ffff:ffff:fffe + 64 + 12.189.96.168 + 2001:1890:12e3:2cb:: + + + 1 + 10.192.70.252 + 223.233.247.1 + 32 + + + + + 1 + 2620:0:10d0:0:ffff:ffff:ffff:fffc + 2057:0eb4:85a5:0047:1002:8a8e:0371:7331 + 48 + + + + + Y + Y + Y + 10.192.70.254 + 24 + + 10.192.70.252 + + + Y + 2620:0:10d0:0:ffff:ffff:ffff:fffe + 64 + + 2620:0:10d0:0:ffff:ffff:ffff:fffd + + + + + Y + N + + + Y + Y + + + + 223.233.247.1 + 32 + 10.192.70.252 + + + 223.234.242.1 + 32 + 10.192.70.253 + + + 2057:0eb4:85a5:0047:1002:8a8e:0371:7331 + 48 + 2620:0:10d0:0:ffff:ffff:ffff:fffc + + + 2057:0eb4:85a5:0047:1002:8a8e:0371:7332 + 48 + 2620:0:10d0:0:ffff:ffff:ffff:fffd + + + + + + + + ]]>http://localhost/ecomp/mso/v1/services/${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404 502v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host} + + 155415ab-b4a7-4382-b4c6-d17d950565 + FeatureChangeActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + 5051560 + 1 + + + SDN-ETHERNET-INTERNET + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + + FIREWALL-LITE + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-gui}${#Project#password-gui}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host} + + requestid12392 + ChangeFeatureActivateRequest + OMX + http://localhost:9096/CSINotify + 123123 + 1 + + + SDN-ETHERNET-INTERNET + AS/VLXM/000212//SB_INTERNET + StevesPizzaPlace15 + + + FIREWALL-LITE + i chi + http://com/att/svc/mis/firewall-lite-gui + 2015-05-15 + + + + test + Y + + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-gui}${#Project#password-gui}BasicBasicGlobal HTTP Settingsrequest-idTEMPLATEapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data*/*200v1:query-response<xml-fragment/>http://${#Project#host} + + 155415ab-b4a7-4382-b4c6-d17d950565 + FeatureChangeActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + 5051560 + 1 + + + SDN-ETHERNET-INTERNET + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + + FIREWALL-LITE + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsrequest-idfeature-instance-idTEMPLATEapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data*/*200v1:query-responses<xml-fragment/>http://${#Project#host} + + 155415ab-b4a7-4382-b4c6-d17d950565 + FeatureChangeActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + 5051560 + 1 + + + SDN-ETHERNET-INTERNET + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + + FIREWALL-LITE + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-gui}${#Project#password-gui}BasicBasicGlobal HTTP Settingsfeature-instance-idservice-instance-idTEMPLATEapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data400data*/*200v1:query-responses<xml-fragment/>http://${#Project#host} + + 155415ab-b4a7-4382-b4c6-d17d950565 + FeatureChangeActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + 5051560 + 1 + + + SDN-ETHERNET-INTERNET + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + + FIREWALL-LITE + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsservice-instance-idservice-instance-idQUERYfeature-instance-idQUERYapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data*/*200v1:query-responses<xml-fragment/>http://${#Project#host} + + 155415ab-b4a7-4382-b4c6-d17d950565 + FeatureChangeActivateRequest + OMX + https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + 5051560 + 1 + + + SDN-ETHERNET-INTERNET + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + + FIREWALL-LITE + HI/VLXM/003717//SW_INTERNET + ST E2E Test50565_13000050565 + + +]]>http://localhost/ecomp/mso/v1/services/feature${#Project#user-gui}${#Project#password-gui}BasicBasicGlobal HTTP Settingsservice-instance-idfeature-instance-idapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404 502v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host} + + + tns:request-id + GetAicNodesRequest + tns:source + 0 + + + SDN-ETHERNET-INTERNET + tns:global-customer-id + + 0 + 0.0 + 0.0 + + + + 0 + Mbps + +]]>http://localhost/ecomp/mso/v1/services${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsapplication/xmlv1:service-requesttext/html500htmlapplication/xml500 400 503 404 502 409v1:service-responseapplication/xml202v1:service-responsetext/html;charset=utf-8401 404 403 405 500html0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host} @@ -16,7 +360,7 @@ -]]>http://localhost/ecomp/mso/v1/services${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsvnf-typeQUERYservice-typeQUERYaic-node-clliQUERYtenant-idQUERYvolume-group-idQUERYvolume-group-nameQUERY*/*200v1:vnf-requeststext/html;charset=utf-8405htmlhttp://localhost:8080No Authorizationvnf-typeservice-typeaic-node-cllitenant-idvolume-group-idvolume-group-namevnf-roleQUERYtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsvnf-rolenetwork-typeQUERYtenant-idQUERYservice-typeQUERYaic-node-clliQUERYtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsnetwork-typetenant-idservice-typeaic-node-clliapplication/xml400 500 409v1:network-requestapplication/json0data0dataapplication/xmlv1:network-requestapplication/xml202v1:network-request<xml-fragment/>http://localhost:8080 +]]>http://localhost/ecomp/mso/v1/services${#Project#user-csi}${#Project#password-csi}BasicBasicGlobal HTTP Settingsvnf-typeQUERYservice-typeQUERYaic-node-clliQUERYtenant-idQUERYvolume-group-idQUERYvolume-group-nameQUERY*/*200v1:vnf-requeststext/html;charset=utf-8405htmlhttp://localhost:8080No Authorizationvnf-typeservice-typeaic-node-cllitenant-idvolume-group-idvolume-group-namevnf-roleQUERYtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsvnf-rolenetwork-typeQUERYtenant-idQUERYservice-typeQUERYaic-node-clliQUERYtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsnetwork-typetenant-idservice-typeaic-node-clliapplication/xml400 500 409v1:network-requestapplication/json0data0dataapplication/xmlv1:network-requestapplication/xml202v1:network-request<xml-fragment/>http://localhost:8080 CREATE init-status-string 1 @@ -41,7 +385,7 @@ 0 -]]>No Authorizationtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsrequest-idTEMPLATE*/*200v1:network-request<xml-fragment/>http://localhost:8080No Authorizationrequest-idTEMPLATE*/*200v1:vnf-requesttext/html;charset=utf-8404 400htmlhttp://localhost:8080No AuthorizationtenantIdQUERYvnf-typeQUERY*/*200v1:network-requestapplication/jsonv1:volume-requesttext/html;charset=utf-8401 403htmlapplication/xmlv1:volume-requestapplication/xml400 501v1:volume-requestapplication/xml202v1:volume-request<xml-fragment/>http://localhost:8080 +]]>No Authorizationtext/html;charset=utf-8401 403 404 500html*/*200v1:vnf-types<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-types${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsrequest-idTEMPLATE*/*200v1:network-request<xml-fragment/>http://localhost:8080No Authorizationrequest-idTEMPLATE*/*200v1:vnf-requesttext/html;charset=utf-8404 400htmlapplication/octet-stream200v1:vnf-requesthttp://localhost:8080No AuthorizationtenantIdQUERYvnf-typeQUERY*/*200v1:network-requestapplication/jsonv1:volume-requesttext/html;charset=utf-8401 403htmlapplication/xmlv1:volume-requestapplication/xml400 501v1:volume-requestapplication/xml202v1:volume-request<xml-fragment/>http://localhost:8080 cfbca420-14d5-4e68-ad84-b56715c946f4 @@ -58,7 +402,711 @@ da9e0bdf-7d88-4111-bcad-8b72e3a5e601 -]]>${#Project#user-csi}${#Project#user-csi}BasicBasicGlobal HTTP Settingstext/html;charset=utf-8404 405html*/*200v1:volume-requestshttp://localhost:8080No AuthorizationtenantIdvnf-typeSEQUENTIAL<xml-fragment/>http://${#Project#host} +]]>${#Project#user-csi}${#Project#user-csi}BasicBasicGlobal HTTP Settingstext/html;charset=utf-8404 405html*/*200v1:volume-requestshttp://localhost:8080No AuthorizationtenantIdvnf-typeapplication/jsonapplication/json400 409v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-service", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "ff5256d1-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "vSAMP12", + "modelVersion": "1.0", + "modelCustomizationName": "vSAMP12 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "MSOTEST103a", + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "${serviceInstanceId}", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "{parent service model name}", + "modelVersion": "1.0" + } + } + } + ], + "requestParameters": { + } + } +} +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEapplication/jsonapplication/json400 404v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-service", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdvnfInstanceIdTEMPLATEapplication/json502 400 409vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "ff5256d1-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "vSAMP12", + "modelVersion": "1.0", + "modelCustomizationName": "vSAMP12 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "MSOTEST103a", + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "${serviceInstanceId}", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "{parent service model name}", + "modelVersion": "1.0" + } + } + } + ], + "requestParameters": { + } + } +} +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409 501vfm:Faultapplication/json202vfm:Response0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data405data405data405data405data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_RI1_DNS::module-1", + "modelVersion": "1.0" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "MT", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "VF_RI1_DNS-base-module-1", + "source": "VID", + "suppressRollback": true + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "9f3e7072-4cf2-4536-addb-7eed2fef8f39", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111", + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-service", + "modelVersion": "1.0" + } + } + } + + ], + + + "requestParameters": { + "userParams": [] + } + } +} +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Responsetext/html;charset=UTF-8401html415dataapplication/xmlv1:network-request<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "ff5256d1-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "vSAMP12", + "modelVersion": "1.0", + "modelCustomizationName": "vSAMP12 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "MSOTEST103a", + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "${serviceInstanceId}", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "{parent service model name}", + "modelVersion": "1.0" + } + } + } + ], + "requestParameters": { + } + } +} +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data0data0data<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "ff5256d1-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "vSAMP12", + "modelVersion": "1.0", + "modelCustomizationName": "vSAMP12 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "MSOTEST103a", + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "${serviceInstanceId}", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "{parent service model name}", + "modelVersion": "1.0" + } + } + } + ], + "requestParameters": { + } + } +} +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdnetworkInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response405data<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "ff5256d1-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "vSAMP12", + "modelVersion": "1.0", + "modelCustomizationName": "vSAMP12 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "instanceName": "MSOTEST103a", + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "${serviceInstanceId}", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "{parent service model name}", + "modelVersion": "1.0" + } + } + } + ], + "requestParameters": { + } + } +} +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdnetworkInstanceIdrequestIdrequestIdTEMPLATErequestIdtext/html;charset=UTF-8401htmlapplication/json200d28:Response204data204data204datahttp://localhost:8080No AuthorizationfilterQUERY0datatext/html404htmltext/html;charset=UTF-8401htmlapplication/json200v2:Response0data<xml-fragment/>http://localhost:8080http://localhost/orchestrationRequests/v2No Authorizationfilterfile:/RequestsDbAdapter.wsdl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]>http://schemas.xmlsoap.org/wsdl/REPLACE_WITH_ACTUAL_URLUTF-8REPLACE_WITH_ACTUAL_URL\r + \r + \r + \r + ?\r + \r + \r +]]>UTF-8REPLACE_WITH_ACTUAL_URL\r + \r + \r + \r + ?\r + ?\r + \r + ?\r + \r + ?\r + \r + ?\r + \r + ?\r + \r + ?\r + \r + \r +]]>UTF-8REPLACE_WITH_ACTUAL_URL + + + + ? + + +]]>SEQUENTIAL<xml-fragment/>http://${#Project#host} 3d878a8e-51fa-44aa-8cb5-a56ae9352262 @@ -167,8 +1215,8 @@ ]]>http://localhost/ecomp/mso/v1/services202<request-status>IN_PROGRESS</request-status>falsefalse<vnf-name>zrdm3ssdr02</vnf-name>falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/v1/vnf-request/01bef4ef-fa1b-4fd4-b46d-12ada0d4d7e1 <request-status>IN_PROGRESS</request-status>falsefalse200${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings - -vnf-typeservice-typeaic-node-cllitenantId<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-types200 + +vnf-typeservice-typeaic-node-cllitenantId<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-types200 <vnf-types xmlns="http://ecomp.att.com/mso/infra/vnf-request/v1"/>falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsvnf-role<xml-fragment/>http://${#Project#host} @@ -204,12 +1252,12 @@ e5225256ffcc4e22928a432f2bcee195 -]]>http://localhost/ecomp/mso/infra/v1/network-requestIN_PROGRESSfalsefalse409<network-name>Mobisupport-25193-T-Willows2_cor_pcrf_sy_net_1</network-name>falsefalseis lockedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsrequest-idResponsePOST Network Request CREATE//*:request-idrequest-idGET NEtwork Request by request IDtrue<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-typese5225256ffcc4e22928a432f2bcee195falsefalse200 -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsnetwork-typetenant-idservice-typeaic-node-clli<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-typesMobisupport-25193-T-Willows2_cor_pcrf_sy_net_1falsefalse200 +]]>http://localhost/ecomp/mso/infra/v1/network-requestIN_PROGRESSfalsefalse409<network-name>Mobisupport-25193-T-Willows2_cor_pcrf_sy_net_1</network-name>falsefalseis lockedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsrequest-idResponsePOST Network Request CREATE//*:request-idrequest-idGET NEtwork Request by request IDtrue<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-typese5225256ffcc4e22928a432f2bcee195falsefalse200 +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsnetwork-typetenant-idservice-typeaic-node-clli<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-typesMobisupport-25193-T-Willows2_cor_pcrf_sy_net_1falsefalse200 ${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings -network-typetenantIdservice-typeaic-node-clli<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/V1/vnf-types200vlanfalsefalse <description>Cool network</description> +network-typetenantIdservice-typeaic-node-clli<xml-fragment/>http://${#Project#host}http://135.21.125.49/ecomp/mso/infra/V1/vnf-types200vlanfalsefalse <description>Cool network</description> falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host} @@ -233,4 +1281,663 @@ ]]>http://ihoap24.cif.att.com/ecomp/mso/infra/v3/volume-request202 <request-status>IN_PROGRESS</request-status>falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/v3/volume-request<tenant-id>eecd15e8e7ee46c3bbc2096f0924f4c4</tenant-id>falsefalse200 -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingstenantIdvnf-typehostihoap24.cif.att.com:18080user-infraportalInfraPortalClientpassword-infraportalpassword1$ \ No newline at end of file +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingstenantIdvnf-type<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingstransfer-to-create-vnf-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VNF$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-create-vfmodule-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VFModule$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-create-volumegroups-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VolumeGroups$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-serviceInstanceId-propertyResponseCreate Service$.requestReferences.instanceIdserviceInstanceId#TestCase#JSONPATHXPATHtruetransfer-to-create-network-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate Networks$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-vfmodule-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdate VFModule$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-volumeGroups-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdate VolumeGroups$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-network-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdaate Networks$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-requestId-propertyResponseCreate Service$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}http://localhost/ecomp/mso/infra/orchestrationRequests/v2/7d28d657-cdad-44eb-b048-7b0bc68b795a200"requestScope":"service","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":"DNS_TEST","suppressRollback":true},"relatedInstanceList":null,"subscriberInfo":{"globalSubscriberId":"subscriber-1","subscriberName":"testSubscriber"},"cloudConfiguration":null,"requestParameters":{"subscriptionServiceType":"MOG","userParams":[{"name":"someUserParam","value":"someValue"}]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":"DNS_TEST","vnfInstanceId":null,"vnfInstanceName":null,"vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"COMPLETE","statusMessage":"falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>UTF-8http://${#Project#host}http://localhost/ecomp/mso/infra/orchestrationRequests/v2/7d28d657-cdad-44eb-b048-7b0bc68b795a204${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "cloudConfiguration": { + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "mdt1" + }, + "relatedInstanceList": [{"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}], + "requestInfo": { + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "suppressRollback": false, + "instanceName": "DNSTEST1" + }, + "requestParameters": {} +}}http://ihoap24.cif.att.com/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>UTF-8http://${#Project#host}http://localhost/orchestrationRequests/v2200"requestScope":"service","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":"DNS_TEST","suppressRollback":true},"relatedInstanceList":null,"subscriberInfo":{"globalSubscriberId":"subscriber-1","subscriberName":"testSubscriber"},"cloudConfiguration":null,"requestParameters":{"subscriptionServiceType":"MOG","userParams":[{"name":"someUserParam","value":"someValue"}]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":"DNS_TEST","vnfInstanceId":null,"vnfInstanceName":null,"vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse$.requestList2falsefalsefalse"requestScope":"vnf","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":"DNSResource-1","modelInvariantId":"585822c7-4027-4f84-ba50-e9248606f112","modelType":"vnf","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"DNSResource","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb","orderVersion":null,"source":"VID","instanceName":"DNSTEST1","suppressRollback":false},"relatedInstanceList":[{"relatedInstance":{"instanceName":null,"instanceId":"falsefalse"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"}}}],"subscriberInfo":null,"cloudConfiguration":{"aicNodeClli":null,"tenantId":"88a6ca3ee0394ade9403f075db23167e","lcpCloudRegionId":"mdt1"},"requestParameters":{"subscriptionServiceType":null,"userParams":[]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":null,"vnfInstanceId":null,"vnfInstanceName":"DNSTEST1","vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsfiltertransfer-to-create-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-requestId-propertyResponseCreate VNF$.requestReferences.requestIdrequestId#TestCase#JSONPATHXPATHtrueset-testcase-vnfInstanceId-propertyResponseCreate VNF$.requestReferences.instanceIdvnfInstanceId#TestCase#JSONPATHXPATHtruetransfer-to-create-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_DNS::module-1", + "modelType": "vfModule", + "modelVersion": "1.0", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132" + }, + "cloudConfiguration": { + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT" + }, + "relatedInstanceList": [ + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}, + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "instanceId": "8c8224b6-ef17-44e1-948b-5783ed0f06d6" + }} + ], + "requestInfo": { + "source": "VID", + "suppressRollback": true, + "instanceName": "VF_DNS-base-module-1" + }, + "requestParameters": {"userParams": []} +}}http://ihoap24.cif.att.com/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/132677e7-8ed2-4a51-9758-9eff2c608d90/vfModules202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings + + +serviceInstanceIdvnfInstanceIdset-testcase-vfModuleInstanceId-propertyResponseCreate VFModule$.requestReferences.instanceIdvfModuleInstanceId#TestCase#JSONPATHXPATHtrueset-testcase-requestId-propertyResponseCreate VFModule$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_DNS::module-1", + "modelType": "vfModule", + "modelVersion": "1.0", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132" + }, + "cloudConfiguration": { + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT" + }, + "relatedInstanceList": [ + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}, + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "instanceId": "b978e03a-8371-496f-b53a-fa117f24c1d0" + }} + ], + "requestInfo": { + "source": "VID", + "suppressRollback": true, + "instanceName": "VF_DNS-base-module-1" + }, + "requestParameters": {"userParams": []} +}}http://localhost/ecomp/mso/infra/serviceInstances/v2//vnfs//vfModules/202No Authorization + + + +set-testcase-requestId-propertyResponseUpdate VFModule$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo":{ + "modelCustomizationName":"ebad642f-a0e6-49bd-90a5 1", + "modelNameVersionId": "fe6478e5-ea33-3346-ac12-ab121484a3fe", + "modelName": "VF_DNS::module-1", + "modelType": "vfModule", + "modelVersion": "1.0", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132" + }, + "requestInfo":{ + "source":"VID" + }, + "cloudConfiguration":{ + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT" + } +}} +http://localhost/ecomp/mso/infra/serviceInstances/v2//vnfs//vfModules/202No Authorization + + + +set-testcase-requestId-propertyResponseDelete VFModule$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo":{ + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "requestInfo":{ + "source":"VID" + }, + "cloudConfiguration":{ + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "mdt1" + } +}} +http://localhost/ecomp/mso/infra/serviceInstances/v2/1abf1f1f-513c-4e9a-8294-a0932339a788/vnfs/65833f1d-d2ec-42ef-a316-c44be958acf7202No Authorization + + +set-testcase-requestId-propertyResponseDelete VNF$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo":{ + "modelCustomizationName":"", + "modelType":"service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "requestInfo":{ + "source":"VID" + } +}} +http://localhost/ecomp/mso/infra/serviceInstances/v2/1abf1f1f-513c-4e9a-8294-a0932339a788202No Authorization<xml-fragment/>http://${#Project#host}{"requestDetails": { + "cloudConfiguration": { + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT" + }, + "modelInfo": { + "modelName": "Mog111..mog_psm..module-1", + "modelType": "volumeGroup", + "modelVersion": "1.0", + "modelInvariantId": "0e0c206d-c414-4c84-a39f-442611ed1b46" + }, + "relatedInstanceList": [ + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}, + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "instanceId": "b978e03a-8371-496f-b53a-fa117f24c1d0" + }} + ], + "requestInfo": { + "suppressRollback": false, + "source": "VID", + "instanceName": "zrdm3amogx02_psm02_vol" + }, + "requestParameters": {"userParams": []} +}}http://localhost/ecomp/mso/infra/serviceInstances/v2//vnfs//volumeGroups202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings + + +serviceInstanceIdvnfInstanceIdset-testcase-volumeGroupId-propertyResponseCreate VolumeGroups$.requestReferences.instanceIdvomuleGroupInstanceId#TestCase#JSONPATHXPATHtrueset-testcase-requestIdResponseCreate VolumeGroups$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>http://${#Project#host}{"requestDetails": { + "cloudConfiguration": { + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT2" + }, + "modelInfo": { + "modelName": "Mog111..mog_psm..module-1", + "modelType": "volumeGroup", + "modelVersion": "1.0", + "modelInvariantId": "0e0c206d-c414-4c84-a39f-442611ed1b46" + }, + "relatedInstanceList": [ + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}, + {"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "fe6478e4-ea33-3346-ac12-ab121484a3fe", + "modelName": "DNSResource", + "modelType": "vnf", + "modelVersion": "1.0", + "modelCustomizationName": "DNSResource-1", + "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f112" + }, + "instanceId": "b978e03a-8371-496f-b53a-fa117f24c1d0" + }} + ], + "requestInfo": { + "suppressRollback": false, + "source": "VID", + "instanceName": "zrdm3amogx02_psm02_vol" + } +}}http://localhost/ecomp/mso/infra/serviceInstances/v2//vnfs//volumeGroups/202${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP Settings + + + +serviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdset-testcase-requestIdResponseUpdate VolumeGroups$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelName": "Mog111..mog_psm..module-1", + "modelType": "volumeGroup", + "modelVersion": "1.0", + "modelInvariantId": "0e0c206d-c414-4c84-a39f-442611ed1b46" + }, + "requestInfo":{ + "source":"VID" + }, + "cloudConfiguration":{ + "tenantId": "88a6ca3ee0394ade9403f075db23167e", + "lcpCloudRegionId": "MT2" + } +}}http://localhost/ecomp/mso/infra/serviceInstances/v2//vnfs//volumeGroups/202No Authorization + + + +<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelName": "CONTRAIL30_BASIC", + "modelType": "network" + }, + "cloudConfiguration": { + "tenantId": "cff319d50266491fa744b0d493a51ce0", + "lcpCloudRegionId": "rdm3" + }, + "relatedInstanceList": [{"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}], + "requestInfo": { + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "instanceName": "MNS-25180-L-06Private_tst_mns_mgmt_net_1" + }, + "requestParameters": {} +}}http://localhost/ecomp/mso/infra/serviceInstances/v2/serviceInstanceId/networks202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsset-updateCreateNetworkRequstStatus-requestIdResponseCreate Networks$.requestReferences.requestIdrequestId#TestCase#JSONPATHXQUERYtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#networkId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo": { + "modelName": "CONTRAIL30_BASIC", + "modelType": "network" + }, + "cloudConfiguration": { + "tenantId": "cff319d50266491fa744b0d493a51ce0", + "lcpCloudRegionId": "rdm3" + }, + "relatedInstanceList": [{"relatedInstance": { + "modelInfo": { + "modelNameVersionId": "1e34774e-715e-4fd6-bd09-7b654622f35i", + "modelName": "dns-servicetest", + "modelType": "service", + "modelVersion": "1.0", + "modelInvariantId": "585822c8-4027-4f84-ba50-e9248606f111" + }, + "instanceId": "90b3a5f7-f7fa-4ac1-b966-becf2ae480cd" + }}], + "requestInfo": { + "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "source": "VID", + "instanceName": "MNS-25180-L-06Private_tst_mns_mgmt_net_1" + }, + "requestParameters": {} +}}http://localhost/ecomp/mso/infra/serviceInstances/v2/c173e25c-adc4-4e66-9702-24cbd75a2243/networks/925f94f5-7ec6-4d99-a5e1-091c33709b76202No Authorization + + +set-updateCreateNetworkRequstStatus-requestIdResponseUpdaate Networks$.requestReferences.requestIdrequestId#TestCase#JSONPATHXQUERYtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + COMPLETE + ${#TestCase#networkId} + + +]]>200No Authorization<xml-fragment/>UTF-8http://${#Project#host}{"requestDetails": { + "modelInfo":{ + "modelType":"network", + "modelName":"CONTRAIL30_BASIC", + "modelVersion":"1.0", + "modelInvariantId":"585822c8-4027-4f84-ba50-e9248606f111" + }, + "requestInfo":{"source":"VID"}, + "cloudConfiguration":{ + "tenantId":"cff319d50266491fa744b0d493a51ce0", + "lcpCloudRegionId":"rdm3" + } +}} +http://localhost/ecomp/mso/infra/serviceInstances/v2/c173e25c-adc4-4e66-9702-24cbd75a2243/networks/925f94f5-7ec6-4d99-a5e1-091c33709b76202No Authorization + + +<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelTypeNotOK": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400 +Mapping of request to JSON object failedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "1", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400Mapping of request to JSON object failed. Can not construct instance of org.openecomp.mso.apihandlerinfra.ModelType from String value '1'falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "e", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400Error parsing requestfalsefalseNo valid modelInvariantId format is specifiedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingstransfer-to-create-vnf-urlResponseCreate Service$.requestReferences.instanceIdserviceInstanceId#TestCase#JSONPATHJSONPATHtruetransfer-to-create-vfmodule-urlResponseCreate Service$.requestReferences.requestIdrequestId#TestCase#JSONPATHJSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter + + + + ${#TestCase#requestId} + Arq + IN_PROGRESS + ${#TestCase#serviceInstanceId} + + +]]>200No Authorization<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-servicetest", + "modelVersion": "1.0" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2409 + +Error: Locked instancefalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsorg.mysql.jdbc.Driverjdbc:mysql://172.17.0.2:3306/mso_catalog?user=catalog&password=catalog123delete from service where id=1;<UpdateCount>1</UpdateCount>falsefalse<xml-fragment/>http://${#Project#host}{ + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", + "modelNameVersionId": "fe6985cd-ea33-3346-ac12-ab121484a3fe", + "modelName": "dns-service", + "modelVersion": "1.0", + "Action": "updateInstance" + }, + "subscriberInfo": { + "globalSubscriberId": "subscriber-1", + "subscriberName": "testSubscriber" + }, + "requestInfo": { + "instanceName": "DNS_TEST", + "source": "VID", + "suppressRollback": true + }, + "requestParameters": { + "subscriptionServiceType": "MOG", + "userParams": [ + { + "name": "someUserParam", + "value": "someValue" + } + ] + } + } +}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsrequestId7a6e22c6-0f96-4ad8-b696-123e70cc5a67serviceInstanceId90b3a5f7-f7fa-4ac1-b966-becf2ae480cdvnfInstanceIdb978e03a-8371-496f-b53a-fa117f24c1d0vfModuleInstanceIda26eaaaa-bce4-4ec0-98f3-f21e43969aabvomuleGroupInstanceIdf4bd7c69-a525-429a-8c1b-384f1beacd90networkIdebdd074d-ba30-4d44-921c-323cec4e78fchostlocalhost:8080user-infraportalInfraPortalClientpassword-infraportalpassword1$DBhostmariadb \ No newline at end of file diff --git a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOTenantAdapter-soapui-project.xml b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOTenantAdapter-soapui-project.xml index 77ef5e0a32..8e4958047b 100644 --- a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOTenantAdapter-soapui-project.xml +++ b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOTenantAdapter-soapui-project.xml @@ -364,7 +364,7 @@ \r \r \r -]]>Connection refusedfalsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindingdeleteTenant<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r +]]>For input string: "pa"falsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindingdeleteTenant<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r \r \r \r @@ -379,7 +379,7 @@ \r \r \r -]]>Connection refusedfalsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindinghealthCheck<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r +]]>For input string: "pa"falsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindinghealthCheck<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r \r \r \r @@ -399,7 +399,7 @@ \r \r \r -]]>Connection refusedfalsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindingrollbackTenant<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r +]]>For input string: "pa"falsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP SettingsMsoTenantAdapterImplPortBindingrollbackTenant<xml-fragment/>UTF-8http://${#Project#host}/tenants/TenantAdapter\r \r \r \r @@ -419,4 +419,4 @@ \r \r \r -]]>Connection refusedfalsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP Settingshostlocalhost:18080user-bpelBPELClientpassword-bpelpassword1$ \ No newline at end of file +]]>For input string: "pa"falsefalse${#Project#user-bpel}${#Project#password-bpel}BasicBasicGlobal HTTP Settingshostlocalhost:18080user-bpelBPELClientpassword-bpelpassword1$ \ No newline at end of file diff --git a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOVnfAdapter-soapui-project.xml b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOVnfAdapter-soapui-project.xml index 0dc2c62120..ea83a2ab73 100644 --- a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOVnfAdapter-soapui-project.xml +++ b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MSOVnfAdapter-soapui-project.xml @@ -532,7 +532,7 @@ -]]>Connection refusedfalsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingdeleteVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r +]]>CreateVFModule:QueryStack:TokenAuth] For input string: "pa"falsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingdeleteVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r \r \r \r @@ -548,7 +548,7 @@ \r \r \r -]]>Connection refusedfalsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindinghealthCheck<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r +]]>TokenAuth] For input string: "pa"falsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindinghealthCheck<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r \r \r \r @@ -569,7 +569,7 @@ \r \r \r -]]>Connection refusedfalsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingrollbackVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r +]]>TokenAuth] For input string: "pa"falsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingrollbackVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r \r \r \r @@ -592,7 +592,7 @@ \r \r \r -]]>Connection refusedfalsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingupdateVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r +]]>TokenAuth] For input string: "pa"falsefalseBPELClientpassword1$BasicBasicGlobal HTTP SettingsMsoVnfAdapterImplPortBindingupdateVnf<xml-fragment/>UTF-8http://${#Project#host}/vnfs/VnfAdapter\r \r \r \r @@ -620,4 +620,4 @@ \r \r \r -]]>Connection refusedfalsefalseBPELClientpassword1$BasicBasicGlobal HTTP Settingshostlocalhost:18080 \ No newline at end of file +]]>TokenAuth] For input string: "pa"falsefalseBPELClientpassword1$BasicBasicGlobal HTTP Settingshostlocalhost:18080 \ No newline at end of file diff --git a/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/automated-tests/create_mso_db-tests.sql b/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/automated-tests/create_mso_db-tests.sql index d7ceb3d40f..e622bf34ee 100644 --- a/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/automated-tests/create_mso_db-tests.sql +++ b/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/automated-tests/create_mso_db-tests.sql @@ -31,6 +31,9 @@ INSERT INTO `VNF_RECIPE`(`ID`, `VNF_TYPE`, `ACTION`, `VERSION_STR`, `DESCRIPTION (100,'VPE','CREATE','1','','/active-bpel/services/REST/CreateGenericVNF','',180,'SDN-ETHERNET-INTERNET'), (101,'VPE','DELETE','1','','/active-bpel/services/REST/DeleteGenericVNF','',180,'SDN-ETHERNET-INTERNET'); +INSERT INTO `VF_MODULE`(`ID`, `TYPE`, `ASDC_SERVICE_MODEL_VERSION`, `MODEL_NAME`, `MODEL_VERSION`, `IS_BASE`, `VNF_RESOURCE_ID`) VALUES +(100,'dns-servicetest/DNSResource-1::VF_DNS::module-1','1.0','VF_DNS::module-1','1.0','1','7'); + DELETE FROM VNF_RESOURCE; DELETE FROM HEAT_TEMPLATE_PARAMS; DELETE FROM HEAT_TEMPLATE; diff --git a/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/default/create_mso_db-default.sql b/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/default/create_mso_db-default.sql index 403676a19e..e2611b358e 100644 --- a/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/default/create_mso_db-default.sql +++ b/packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/bulkload-files/default/create_mso_db-default.sql @@ -88,9 +88,9 @@ INSERT INTO service_recipe (SERVICE_ID, ACTION, VERSION_STR, DESCRIPTION, ORCHES INSERT INTO service_recipe (SERVICE_ID, ACTION, VERSION_STR, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT) VALUES ('4', 'deleteInstance', '1', 'VID_DEFAULT recipe to delete service-instance if no custom BPMN flow is found', '/mso/async/services/DeleteServiceInstanceInfra', '180'); INSERT INTO vnf_recipe (VNF_TYPE, ACTION, VERSION_STR, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT) VALUES ('VID_DEFAULT', 'createInstance', '1', 'VID_DEFAULT recipe to create VNF if no custom BPMN flow is found', '/mso/async/services/CreateVnfInfra', '180'); INSERT INTO vnf_recipe (VNF_TYPE, ACTION, VERSION_STR, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT) VALUES ('VID_DEFAULT', 'deleteInstance', '1', 'VID_DEFAULT recipe to delete VNF if no custom BPMN flow is found', '/mso/async/services/DeleteVnfInfra', '180'); -INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'createInstance', '1', 'VID_DEFAULT recipe to create volume-group if no custom BPMN flow is found', '/mso/async/service/CreateVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); -INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'deleteInstance', '1', 'VID_DEFAULT recipe to delete volume-group if no custom BPMN flow is found', '/mso/async/service/DeleteVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); -INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'updateInstance', '1', 'VID_DEFAULT recipe to update volume-group if no custom BPMN flow is found', '/mso/async/service/UpdateVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); +INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'createInstance', '1', 'VID_DEFAULT recipe to create volume-group if no custom BPMN flow is found', '/mso/async/services/CreateVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); +INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'deleteInstance', '1', 'VID_DEFAULT recipe to delete volume-group if no custom BPMN flow is found', '/mso/async/services/DeleteVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); +INSERT INTO vnf_components_recipe (VNF_TYPE, VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES (NULL, 'volumeGroup', 'updateInstance', '1', 'VID_DEFAULT recipe to update volume-group if no custom BPMN flow is found', '/mso/async/services/UpdateVfModuleVolumeInfraV1', '180', 'VID_DEFAULT'); INSERT INTO vnf_components_recipe (VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES ('vfModule', 'createInstance', '1', 'VID_DEFAULT recipe to create vf-module if no custom BPMN flow is found', '/mso/async/services/CreateVfModuleInfra', '180', 'VID_DEFAULT'); INSERT INTO vnf_components_recipe (VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES ('vfModule', 'deleteInstance', '1', 'VID_DEFAULT recipe to delete vf-module if no custom BPMN flow is found', '/mso/async/services/DeleteVfModuleInfra', '180', 'VID_DEFAULT'); INSERT INTO vnf_components_recipe (VNF_COMPONENT_TYPE, ACTION, VERSION, DESCRIPTION, ORCHESTRATION_URI, RECIPE_TIMEOUT, VF_MODULE_ID) VALUES ('vfModule', 'updateInstance', '1', 'VID_DEFAULT recipe to update vf-module if no custom BPMN flow is found', '/mso/async/services/UpdateVfModuleInfra', '180', 'VID_DEFAULT'); -- cgit 1.2.3-korg From da7113c37a73413c35b50fce97cf98900f16d82a Mon Sep 17 00:00:00 2001 From: eh552t Date: Fri, 10 Feb 2017 10:51:54 +0100 Subject: SoapUI tests for APIH Infra Replaces tabs by spaces in MsoRequest.java removed references to com.att in endpoints Change-Id: I6e49fa9d82669d3e205023bf16a40f48e4f56b12 Signed-off-by: eh552t --- .../openecomp/mso/apihandlerinfra/MsoRequest.java | 681 ++++++++++----------- .../SoapUI/Local-API-Handler-soapui-project.xml | 60 +- .../SoapUI/MsoRequestDB-soapui-project.xml | 4 +- 3 files changed, 372 insertions(+), 373 deletions(-) (limited to 'packages') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java index 606c3c677e..e976419399 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java @@ -123,7 +123,7 @@ public class MsoRequest { } MsoRequest () { - + Calendar startTimeCalendar = Calendar.getInstance (); this.startTime = startTimeCalendar.getTimeInMillis (); MsoLogger.setLogContext (requestId, null); @@ -136,59 +136,59 @@ public class MsoRequest { String text, String messageId, List variables) { - - this.errorCode = messageId; - - if (text != null) { - this.errorMessage = text; - } - else { - this.errorMessage = ""; - } - this.httpResponse = Integer.toString(httpResponseCode); - if(errorMessage.length() > 1999){ - errorMessage = errorMessage.substring(0, 1999); - } - - RequestError re = new RequestError(); - - if(exceptionType.name().equals("PolicyException")){ - - PolicyException pe = new PolicyException(); - pe.setMessageId(messageId); - pe.setText(text); - if(variables != null){ - for(String variable: variables){ - pe.getVariables().add(variable); - } - } - re.setPolicyException(pe); - - } else { - - ServiceException se = new ServiceException(); - se.setMessageId(messageId); - se.setText(text); - if(variables != null){ - if(variables != null){ - for(String variable: variables){ - se.getVariables().add(variable); - } - } - } - re.setServiceException(se); - } - + + this.errorCode = messageId; + + if (text != null) { + this.errorMessage = text; + } + else { + this.errorMessage = ""; + } + this.httpResponse = Integer.toString(httpResponseCode); + if(errorMessage.length() > 1999){ + errorMessage = errorMessage.substring(0, 1999); + } + + RequestError re = new RequestError(); + + if(exceptionType.name().equals("PolicyException")){ + + PolicyException pe = new PolicyException(); + pe.setMessageId(messageId); + pe.setText(text); + if(variables != null){ + for(String variable: variables){ + pe.getVariables().add(variable); + } + } + re.setPolicyException(pe); + + } else { + + ServiceException se = new ServiceException(); + se.setMessageId(messageId); + se.setText(text); + if(variables != null){ + if(variables != null){ + for(String variable: variables){ + se.getVariables().add(variable); + } + } + } + re.setServiceException(se); + } + String requestErrorStr = null; try{ - ObjectMapper mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonSerialize.Inclusion.NON_DEFAULT); - requestErrorStr = mapper.writeValueAsString(re); + ObjectMapper mapper = new ObjectMapper(); + mapper.setSerializationInclusion(JsonSerialize.Inclusion.NON_DEFAULT); + requestErrorStr = mapper.writeValueAsString(re); }catch(Exception e){ - msoLogger.error (MessageEnum.APIH_VALIDATION_ERROR, "", "", MsoLogger.ErrorCode.DataError, "Exception in buildServiceErrorResponse writing exceptionType to string ", e); + msoLogger.error (MessageEnum.APIH_VALIDATION_ERROR, "", "", MsoLogger.ErrorCode.DataError, "Exception in buildServiceErrorResponse writing exceptionType to string ", e); } - + return Response.status (httpResponseCode).entity(requestErrorStr).build (); @@ -204,49 +204,49 @@ public class MsoRequest { this.action = action; try{ - ObjectMapper mapper = new ObjectMapper(); - //mapper.configure(Feature.WRAP_ROOT_VALUE, true); - requestJSON = mapper.writeValueAsString(sir.getRequestDetails()); - + ObjectMapper mapper = new ObjectMapper(); + //mapper.configure(Feature.WRAP_ROOT_VALUE, true); + requestJSON = mapper.writeValueAsString(sir.getRequestDetails()); + } catch(Exception e){ - throw new ValidationException ("Parse ServiceInstanceRequest to JSON string"); + throw new ValidationException ("Parse ServiceInstanceRequest to JSON string"); } if(instanceIdMap != null){ - if(instanceIdMap.get("serviceInstanceId") != null){ - if (!UUIDChecker.isValidUUID (instanceIdMap.get ("serviceInstanceId"))) { - throw new ValidationException ("serviceInstanceId"); - } - this.sir.setServiceInstanceId(instanceIdMap.get("serviceInstanceId")); - } + if(instanceIdMap.get("serviceInstanceId") != null){ + if (!UUIDChecker.isValidUUID (instanceIdMap.get ("serviceInstanceId"))) { + throw new ValidationException ("serviceInstanceId"); + } + this.sir.setServiceInstanceId(instanceIdMap.get("serviceInstanceId")); + } - if(instanceIdMap.get("vnfInstanceId") != null){ - if (!UUIDChecker.isValidUUID (instanceIdMap.get ("vnfInstanceId"))) { - throw new ValidationException ("vnfInstanceId"); - } - this.sir.setVnfInstanceId(instanceIdMap.get("vnfInstanceId")); - } + if(instanceIdMap.get("vnfInstanceId") != null){ + if (!UUIDChecker.isValidUUID (instanceIdMap.get ("vnfInstanceId"))) { + throw new ValidationException ("vnfInstanceId"); + } + this.sir.setVnfInstanceId(instanceIdMap.get("vnfInstanceId")); + } - if(instanceIdMap.get("vfModuleInstanceId") != null){ - if (!UUIDChecker.isValidUUID (instanceIdMap.get ("vfModuleInstanceId"))) { - throw new ValidationException ("vfModuleInstanceId"); - } - this.sir.setVfModuleInstanceId(instanceIdMap.get("vfModuleInstanceId")); - } + if(instanceIdMap.get("vfModuleInstanceId") != null){ + if (!UUIDChecker.isValidUUID (instanceIdMap.get ("vfModuleInstanceId"))) { + throw new ValidationException ("vfModuleInstanceId"); + } + this.sir.setVfModuleInstanceId(instanceIdMap.get("vfModuleInstanceId")); + } - if(instanceIdMap.get("volumeGroupInstanceId") != null){ - if (!UUIDChecker.isValidUUID (instanceIdMap.get ("volumeGroupInstanceId"))) { - throw new ValidationException ("volumeGroupInstanceId"); - } - this.sir.setVolumeGroupInstanceId(instanceIdMap.get("volumeGroupInstanceId")); - } + if(instanceIdMap.get("volumeGroupInstanceId") != null){ + if (!UUIDChecker.isValidUUID (instanceIdMap.get ("volumeGroupInstanceId"))) { + throw new ValidationException ("volumeGroupInstanceId"); + } + this.sir.setVolumeGroupInstanceId(instanceIdMap.get("volumeGroupInstanceId")); + } - if(instanceIdMap.get("networkInstanceId") != null){ - if (!UUIDChecker.isValidUUID (instanceIdMap.get ("networkInstanceId"))) { - throw new ValidationException ("networkInstanceId"); - } - this.sir.setNetworkInstanceId(instanceIdMap.get("networkInstanceId")); - } + if(instanceIdMap.get("networkInstanceId") != null){ + if (!UUIDChecker.isValidUUID (instanceIdMap.get ("networkInstanceId"))) { + throw new ValidationException ("networkInstanceId"); + } + this.sir.setNetworkInstanceId(instanceIdMap.get("networkInstanceId")); + } } this.modelInfo = sir.getRequestDetails().getModelInfo(); @@ -262,211 +262,211 @@ public class MsoRequest { } if (modelInfo.getModelType () == null) { - throw new ValidationException ("modelType"); + throw new ValidationException ("modelType"); } this.requestScope = modelInfo.getModelType().name(); if (empty (modelInfo.getModelInvariantId ()) && !(requestScope.equalsIgnoreCase (ModelType.network.name ()) && - (action == Action.createInstance || action == Action.updateInstance))) { - throw new ValidationException ("modelInvariantId"); + (action == Action.createInstance || action == Action.updateInstance))) { + throw new ValidationException ("modelInvariantId"); } if (!empty (modelInfo.getModelInvariantId ()) && !UUIDChecker.isValidUUID (modelInfo.getModelInvariantId ())) { - throw new ValidationException ("modelInvariantId format"); + throw new ValidationException ("modelInvariantId format"); } if (empty (modelInfo.getModelName ()) && (action == Action.createInstance || action == Action.updateInstance || (action == Action.deleteInstance && - (requestScope.equalsIgnoreCase (ModelType.network.name ()) || requestScope.equalsIgnoreCase (ModelType.vfModule.name ()))))) { - throw new ValidationException ("modelName"); + (requestScope.equalsIgnoreCase (ModelType.network.name ()) || requestScope.equalsIgnoreCase (ModelType.vfModule.name ()))))) { + throw new ValidationException ("modelName"); } if (empty (modelInfo.getModelVersion ()) && !(requestScope.equalsIgnoreCase (ModelType.network.name ()) && - (action == Action.createInstance || action == Action.updateInstance))) { - throw new ValidationException ("modelVersion"); + (action == Action.createInstance || action == Action.updateInstance))) { + throw new ValidationException ("modelVersion"); } if(requestScope.equalsIgnoreCase(ModelType.vnf.name()) && action != Action.deleteInstance && empty (modelInfo.getModelCustomizationName ())) { - throw new ValidationException ("modelCustomizationName"); + throw new ValidationException ("modelCustomizationName"); } this.cloudConfiguration = sir.getRequestDetails ().getCloudConfiguration (); if (!requestScope.equalsIgnoreCase (ModelType.service.name ()) && cloudConfiguration == null) { - throw new ValidationException ("cloudConfiguration"); + throw new ValidationException ("cloudConfiguration"); } if (cloudConfiguration != null) { - if (empty (cloudConfiguration.getLcpCloudRegionId ())) { - throw new ValidationException ("lcpCloudRegionId"); - } - if (empty (cloudConfiguration.getTenantId ())) { - throw new ValidationException ("tenantId"); - } + if (empty (cloudConfiguration.getLcpCloudRegionId ())) { + throw new ValidationException ("lcpCloudRegionId"); + } + if (empty (cloudConfiguration.getTenantId ())) { + throw new ValidationException ("tenantId"); + } } if (requestScope.equalsIgnoreCase (ModelType.service.name ()) && action == Action.createInstance) { - if (sir.getRequestDetails ().getRequestParameters () == null) { - throw new ValidationException ("requestParameters"); - } - if (empty (sir.getRequestDetails ().getRequestParameters ().getSubscriptionServiceType ())) { - throw new ValidationException ("subscriptionServiceType"); - } + if (sir.getRequestDetails ().getRequestParameters () == null) { + throw new ValidationException ("requestParameters"); + } + if (empty (sir.getRequestDetails ().getRequestParameters ().getSubscriptionServiceType ())) { + throw new ValidationException ("subscriptionServiceType"); + } } if(requestScope.equalsIgnoreCase(ModelType.service.name())){ - this.serviceInstanceType = modelInfo.getModelName(); + this.serviceInstanceType = modelInfo.getModelName(); } if(requestScope.equalsIgnoreCase(ModelType.network.name())){ - this.networkType = modelInfo.getModelName(); + this.networkType = modelInfo.getModelName(); } // Verify instanceName existence and format if (empty (requestInfo.getInstanceName ()) && action == Action.createInstance) { - throw new ValidationException ("instanceName"); + throw new ValidationException ("instanceName"); } if (!empty (requestInfo.getInstanceName ()) && !requestInfo.getInstanceName ().matches (Constants.VALID_INSTANCE_NAME_FORMAT)) { - throw new ValidationException ("instanceName format"); + throw new ValidationException ("instanceName format"); } if (empty (requestInfo.getProductFamilyId ()) && ((requestScope.equalsIgnoreCase (ModelType.vnf.name ()) && action == Action.createInstance) || - (requestScope.equalsIgnoreCase (ModelType.network.name ()) && (action == Action.createInstance || action == Action.updateInstance)))) { - throw new ValidationException ("productFamilyId"); + (requestScope.equalsIgnoreCase (ModelType.network.name ()) && (action == Action.createInstance || action == Action.updateInstance)))) { + throw new ValidationException ("productFamilyId"); } if (empty (requestInfo.getSource ())) { - throw new ValidationException ("source"); + throw new ValidationException ("source"); } - + RelatedInstanceList[] instanceList = sir.getRequestDetails().getRelatedInstanceList(); - + String serviceModelName = null; String vnfModelName = null; String asdcServiceModelVersion = null; String volumeGroupId = null; boolean isRelatedServiceInstancePresent = false; boolean isRelatedVnfInstancePresent = false; - - if (instanceList != null) { - for(RelatedInstanceList relatedInstanceList : instanceList){ - RelatedInstance relatedInstance = relatedInstanceList.getRelatedInstance(); - - if (!empty (relatedInstance.getInstanceName ()) && !relatedInstance.getInstanceName ().matches (Constants.VALID_INSTANCE_NAME_FORMAT)) { - throw new ValidationException ("instanceName format in relatedInstance"); - } - - if (empty (relatedInstance.getInstanceId ())) { - throw new ValidationException ("instanceId in relatedInstance"); - } - - if (!UUIDChecker.isValidUUID (relatedInstance.getInstanceId ())) { - throw new ValidationException ("instanceId format in relatedInstance"); - } - - if (relatedInstance.getModelInfo () == null) { - throw new ValidationException ("modelInfo in relatedInstance"); - } - - if (relatedInstance.getModelInfo ().getModelType () == null) { - throw new ValidationException ("modelType in relatedInstance"); - } - - if (action != Action.deleteInstance) { - - if (empty (relatedInstance.getModelInfo ().getModelInvariantId ()) && - !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && - relatedInstance.getModelInfo ().getModelType ().equals(ModelType.volumeGroup))) { - throw new ValidationException ("modelInvariantId in relatedInstance"); - } - - if (!empty (relatedInstance.getModelInfo ().getModelInvariantId ()) && - !UUIDChecker.isValidUUID (relatedInstance.getModelInfo ().getModelInvariantId ())) { - throw new ValidationException ("modelInvariantId format in relatedInstance"); - } - - if (empty(relatedInstance.getModelInfo ().getModelName ()) && - !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && - relatedInstance.getModelInfo ().getModelType ().equals (ModelType.volumeGroup))) { - throw new ValidationException ("modelName in relatedInstance"); - } - - if (empty (relatedInstance.getModelInfo ().getModelVersion ()) && - !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && - relatedInstance.getModelInfo ().getModelType ().equals (ModelType.volumeGroup))) { - throw new ValidationException ("modelVersion in relatedInstance"); - } - } - - if (empty (relatedInstance.getModelInfo ().getModelCustomizationName ()) && - relatedInstance.getModelInfo ().getModelType ().equals (ModelType.vnf)) { - throw new ValidationException ("modelCustomizationName in relatedInstance"); - } - - if(relatedInstance.getModelInfo().getModelType().equals(ModelType.service)) { - isRelatedServiceInstancePresent = true; - if (!relatedInstance.getInstanceId ().equals (this.sir.getServiceInstanceId ())) { - throw new ValidationException ("serviceInstanceId matching the serviceInstanceId in request URI"); - } - serviceModelName = relatedInstance.getModelInfo ().getModelName (); - asdcServiceModelVersion = relatedInstance.getModelInfo().getModelVersion (); - } - else if(relatedInstance.getModelInfo().getModelType().equals(ModelType.vnf)) { - isRelatedVnfInstancePresent = true; - if (!relatedInstance.getInstanceId ().equals (this.sir.getVnfInstanceId ())) { - throw new ValidationException ("vnfInstanceId matching the vnfInstanceId in request URI"); - } - vnfModelName = relatedInstance.getModelInfo().getModelCustomizationName(); - } - else if(relatedInstance.getModelInfo().getModelType().equals(ModelType.volumeGroup)) { - volumeGroupId = relatedInstance.getInstanceId (); - } - } + + if (instanceList != null) { + for(RelatedInstanceList relatedInstanceList : instanceList){ + RelatedInstance relatedInstance = relatedInstanceList.getRelatedInstance(); + + if (!empty (relatedInstance.getInstanceName ()) && !relatedInstance.getInstanceName ().matches (Constants.VALID_INSTANCE_NAME_FORMAT)) { + throw new ValidationException ("instanceName format in relatedInstance"); + } + + if (empty (relatedInstance.getInstanceId ())) { + throw new ValidationException ("instanceId in relatedInstance"); + } + + if (!UUIDChecker.isValidUUID (relatedInstance.getInstanceId ())) { + throw new ValidationException ("instanceId format in relatedInstance"); + } + + if (relatedInstance.getModelInfo () == null) { + throw new ValidationException ("modelInfo in relatedInstance"); + } + + if (relatedInstance.getModelInfo ().getModelType () == null) { + throw new ValidationException ("modelType in relatedInstance"); + } + + if (action != Action.deleteInstance) { + + if (empty (relatedInstance.getModelInfo ().getModelInvariantId ()) && + !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && + relatedInstance.getModelInfo ().getModelType ().equals(ModelType.volumeGroup))) { + throw new ValidationException ("modelInvariantId in relatedInstance"); + } + + if (!empty (relatedInstance.getModelInfo ().getModelInvariantId ()) && + !UUIDChecker.isValidUUID (relatedInstance.getModelInfo ().getModelInvariantId ())) { + throw new ValidationException ("modelInvariantId format in relatedInstance"); + } + + if (empty(relatedInstance.getModelInfo ().getModelName ()) && + !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && + relatedInstance.getModelInfo ().getModelType ().equals (ModelType.volumeGroup))) { + throw new ValidationException ("modelName in relatedInstance"); + } + + if (empty (relatedInstance.getModelInfo ().getModelVersion ()) && + !(requestScope.equalsIgnoreCase (ModelType.vfModule.name ()) && action == Action.createInstance && + relatedInstance.getModelInfo ().getModelType ().equals (ModelType.volumeGroup))) { + throw new ValidationException ("modelVersion in relatedInstance"); + } + } + + if (empty (relatedInstance.getModelInfo ().getModelCustomizationName ()) && + relatedInstance.getModelInfo ().getModelType ().equals (ModelType.vnf)) { + throw new ValidationException ("modelCustomizationName in relatedInstance"); + } + + if(relatedInstance.getModelInfo().getModelType().equals(ModelType.service)) { + isRelatedServiceInstancePresent = true; + if (!relatedInstance.getInstanceId ().equals (this.sir.getServiceInstanceId ())) { + throw new ValidationException ("serviceInstanceId matching the serviceInstanceId in request URI"); + } + serviceModelName = relatedInstance.getModelInfo ().getModelName (); + asdcServiceModelVersion = relatedInstance.getModelInfo().getModelVersion (); + } + else if(relatedInstance.getModelInfo().getModelType().equals(ModelType.vnf)) { + isRelatedVnfInstancePresent = true; + if (!relatedInstance.getInstanceId ().equals (this.sir.getVnfInstanceId ())) { + throw new ValidationException ("vnfInstanceId matching the vnfInstanceId in request URI"); + } + vnfModelName = relatedInstance.getModelInfo().getModelCustomizationName(); + } + else if(relatedInstance.getModelInfo().getModelType().equals(ModelType.volumeGroup)) { + volumeGroupId = relatedInstance.getInstanceId (); + } + } - if(requestScope.equalsIgnoreCase (ModelType.volumeGroup.name ())) { - if (!isRelatedServiceInstancePresent) { - throw new ValidationException ("related service instance for volumeGroup request"); - } - if (!isRelatedVnfInstancePresent) { - throw new ValidationException ("related vnf instance for volumeGroup request"); - } - this.serviceInstanceType = serviceModelName; - this.vnfType = serviceModelName + "/" + vnfModelName; - this.asdcServiceModelVersion = asdcServiceModelVersion; - } - else if(requestScope.equalsIgnoreCase(ModelType.vfModule.name ())) { - if (!isRelatedServiceInstancePresent) { - throw new ValidationException ("related service instance for vfModule request"); - } - if (!isRelatedVnfInstancePresent) { - throw new ValidationException ("related vnf instance for vfModule request"); - } - String vfModuleModelName = modelInfo.getModelName (); - this.vfModuleModelName = vfModuleModelName; - this.serviceInstanceType = serviceModelName; - this.vnfType = serviceModelName + "/" + vnfModelName; - this.asdcServiceModelVersion = asdcServiceModelVersion; - this.vfModuleType = vnfType + "::" + vfModuleModelName; - this.sir.setVolumeGroupInstanceId (volumeGroupId); - } - else if (requestScope.equalsIgnoreCase (ModelType.vnf.name ())) { - if (!isRelatedServiceInstancePresent) { - throw new ValidationException ("related service instance for vnf request"); - } - this.vnfType = serviceModelName + "/" + sir.getRequestDetails().getModelInfo().getModelCustomizationName(); - } + if(requestScope.equalsIgnoreCase (ModelType.volumeGroup.name ())) { + if (!isRelatedServiceInstancePresent) { + throw new ValidationException ("related service instance for volumeGroup request"); + } + if (!isRelatedVnfInstancePresent) { + throw new ValidationException ("related vnf instance for volumeGroup request"); + } + this.serviceInstanceType = serviceModelName; + this.vnfType = serviceModelName + "/" + vnfModelName; + this.asdcServiceModelVersion = asdcServiceModelVersion; + } + else if(requestScope.equalsIgnoreCase(ModelType.vfModule.name ())) { + if (!isRelatedServiceInstancePresent) { + throw new ValidationException ("related service instance for vfModule request"); + } + if (!isRelatedVnfInstancePresent) { + throw new ValidationException ("related vnf instance for vfModule request"); + } + String vfModuleModelName = modelInfo.getModelName (); + this.vfModuleModelName = vfModuleModelName; + this.serviceInstanceType = serviceModelName; + this.vnfType = serviceModelName + "/" + vnfModelName; + this.asdcServiceModelVersion = asdcServiceModelVersion; + this.vfModuleType = vnfType + "::" + vfModuleModelName; + this.sir.setVolumeGroupInstanceId (volumeGroupId); + } + else if (requestScope.equalsIgnoreCase (ModelType.vnf.name ())) { + if (!isRelatedServiceInstancePresent) { + throw new ValidationException ("related service instance for vnf request"); + } + this.vnfType = serviceModelName + "/" + sir.getRequestDetails().getModelInfo().getModelCustomizationName(); + } } else if (action != Action.deleteInstance && !requestScope.equalsIgnoreCase(ModelType.service.name ()) && - !requestScope.equalsIgnoreCase(ModelType.network.name ())) { - throw new ValidationException ("related instances"); + !requestScope.equalsIgnoreCase(ModelType.network.name ())) { + throw new ValidationException ("related instances"); } } public Map> getOrchestrationFilters (MultivaluedMap queryParams) throws ValidationException { - + String queryParam = null; Map> orchestrationFilterParams = new HashMap>(); @@ -475,35 +475,34 @@ public class MsoRequest { queryParam = entry.getKey(); try{ - if(queryParam.equalsIgnoreCase("filter")){ - - StringTokenizer st = new StringTokenizer(entry.getValue().get(0), ":"); - - int counter=0; - String mapKey=null; - List orchestrationList = new ArrayList(); - while (st.hasMoreElements()) { - if(counter == 0){ - mapKey = st.nextElement() + ""; - } else{ - orchestrationList.add(st.nextElement() + ""); - } - counter++; - } - orchestrationFilterParams.put(mapKey, orchestrationList); - } - + if(queryParam.equalsIgnoreCase("filter")){ + + StringTokenizer st = new StringTokenizer(entry.getValue().get(0), ":"); + + int counter=0; + String mapKey=null; + List orchestrationList = new ArrayList(); + while (st.hasMoreElements()) { + if(counter == 0){ + mapKey = st.nextElement() + ""; + } else{ + orchestrationList.add(st.nextElement() + ""); + } + counter++; + } + orchestrationFilterParams.put(mapKey, orchestrationList); + } + }catch(Exception e){ //msoLogger.error (MessageEnum.APIH_VALIDATION_ERROR, e); throw new ValidationException ("QueryParam ServiceInfo", e); - } + } } - return orchestrationFilterParams; - } + } public void createRequestRecord (Status status, Action action) { @@ -513,9 +512,9 @@ public class MsoRequest { session = HibernateUtil.getSessionFactory ().openSession (); session.beginTransaction (); - if (null == sir) { - sir = new ServiceInstancesRequest (); - } + if (null == sir) { + sir = new ServiceInstancesRequest (); + } InfraActiveRequests aq = new InfraActiveRequests (); aq.setRequestId (requestId); @@ -528,92 +527,92 @@ public class MsoRequest { aq.setStartTime (startTimeStamp); if (requestInfo != null) { - - if(requestInfo.getSource() != null){ - aq.setSource(requestInfo.getSource()); - } - if(requestInfo.getCallbackUrl() != null){ - aq.setCallBackUrl(requestInfo.getCallbackUrl()); - } - if(requestInfo.getCorrelator() != null){ - aq.setCorrelator(requestInfo.getCorrelator()); - } + + if(requestInfo.getSource() != null){ + aq.setSource(requestInfo.getSource()); + } + if(requestInfo.getCallbackUrl() != null){ + aq.setCallBackUrl(requestInfo.getCallbackUrl()); + } + if(requestInfo.getCorrelator() != null){ + aq.setCorrelator(requestInfo.getCorrelator()); + } } if (modelInfo != null) { - aq.setRequestScope(requestScope); + aq.setRequestScope(requestScope); } if (cloudConfiguration != null) { - if(cloudConfiguration.getLcpCloudRegionId() != null) { - aq.setAicCloudRegion(cloudConfiguration.getLcpCloudRegionId()); - } - - if(cloudConfiguration.getTenantId() != null) { - aq.setTenantId(cloudConfiguration.getTenantId()); - } - + if(cloudConfiguration.getLcpCloudRegionId() != null) { + aq.setAicCloudRegion(cloudConfiguration.getLcpCloudRegionId()); + } + + if(cloudConfiguration.getTenantId() != null) { + aq.setTenantId(cloudConfiguration.getTenantId()); + } + } if(sir.getServiceInstanceId() != null){ - aq.setServiceInstanceId(sir.getServiceInstanceId()); + aq.setServiceInstanceId(sir.getServiceInstanceId()); } if(sir.getVnfInstanceId() != null){ - aq.setVnfId(sir.getVnfInstanceId()); + aq.setVnfId(sir.getVnfInstanceId()); } - if (null != requestScope) { - if (requestScope.equalsIgnoreCase(ModelType.service.name())) { - if (requestInfo.getInstanceName() != null) { - aq.setServiceInstanceName(requestInfo.getInstanceName()); - } - } + if (null != requestScope) { + if (requestScope.equalsIgnoreCase(ModelType.service.name())) { + if (requestInfo.getInstanceName() != null) { + aq.setServiceInstanceName(requestInfo.getInstanceName()); + } + } - if (requestScope.equalsIgnoreCase(ModelType.network.name())) { - aq.setNetworkName(requestInfo.getInstanceName()); - aq.setNetworkType(networkType); - aq.setNetworkId(sir.getNetworkInstanceId()); + if (requestScope.equalsIgnoreCase(ModelType.network.name())) { + aq.setNetworkName(requestInfo.getInstanceName()); + aq.setNetworkType(networkType); + aq.setNetworkId(sir.getNetworkInstanceId()); - } + } - if (requestScope.equalsIgnoreCase(ModelType.volumeGroup.name())) { - aq.setVolumeGroupId(sir.getVolumeGroupInstanceId()); - aq.setVolumeGroupName(requestInfo.getInstanceName()); - aq.setVnfType(vnfType); + if (requestScope.equalsIgnoreCase(ModelType.volumeGroup.name())) { + aq.setVolumeGroupId(sir.getVolumeGroupInstanceId()); + aq.setVolumeGroupName(requestInfo.getInstanceName()); + aq.setVnfType(vnfType); - } + } - if (requestScope.equalsIgnoreCase(ModelType.vfModule.name())) { - aq.setVfModuleName(requestInfo.getInstanceName()); - aq.setVfModuleModelName(modelInfo.getModelName()); - aq.setVfModuleId(sir.getVfModuleInstanceId()); - aq.setVolumeGroupId(sir.getVolumeGroupInstanceId()); - aq.setVnfType(vnfType); + if (requestScope.equalsIgnoreCase(ModelType.vfModule.name())) { + aq.setVfModuleName(requestInfo.getInstanceName()); + aq.setVfModuleModelName(modelInfo.getModelName()); + aq.setVfModuleId(sir.getVfModuleInstanceId()); + aq.setVolumeGroupId(sir.getVolumeGroupInstanceId()); + aq.setVnfType(vnfType); - } + } - if (requestScope.equalsIgnoreCase(ModelType.vnf.name())) { - aq.setVnfName(requestInfo.getInstanceName()); - if (null != sir.getRequestDetails()) { - RelatedInstanceList[] instanceList = sir.getRequestDetails().getRelatedInstanceList(); + if (requestScope.equalsIgnoreCase(ModelType.vnf.name())) { + aq.setVnfName(requestInfo.getInstanceName()); + if (null != sir.getRequestDetails()) { + RelatedInstanceList[] instanceList = sir.getRequestDetails().getRelatedInstanceList(); - if (instanceList != null) { + if (instanceList != null) { - for (RelatedInstanceList relatedInstanceList : instanceList) { + for (RelatedInstanceList relatedInstanceList : instanceList) { - RelatedInstance relatedInstance = relatedInstanceList.getRelatedInstance(); - if (relatedInstance.getModelInfo().getModelType().equals(ModelType.service)) { - aq.setVnfType(vnfType); - } - } - } - } - //aq.setVnfType(sir.getRequestDetails().getRelatedInstanceList()); + RelatedInstance relatedInstance = relatedInstanceList.getRelatedInstance(); + if (relatedInstance.getModelInfo().getModelType().equals(ModelType.service)) { + aq.setVnfType(vnfType); + } + } + } + } + //aq.setVnfType(sir.getRequestDetails().getRelatedInstanceList()); - } - } + } + } aq.setRequestBody (this.requestJSON); @@ -637,7 +636,7 @@ public class MsoRequest { session.getTransaction ().commit (); session.close (); } catch (Exception e) { - msoLogger.error (MessageEnum.APIH_DB_INSERT_EXC, "", "", MsoLogger.ErrorCode.DataError, "Exception when creation record request", e); + msoLogger.error (MessageEnum.APIH_DB_INSERT_EXC, "", "", MsoLogger.ErrorCode.DataError, "Exception when creation record request", e); if (session != null) { session.close (); } @@ -657,7 +656,7 @@ public class MsoRequest { this.responseBody, Constants.MODIFIED_BY_APIHANDLER); } catch (Exception e) { - msoLogger.error(MessageEnum.APIH_DB_UPDATE_EXC, e.getMessage(), "", "", MsoLogger.ErrorCode.DataError, "Exception when updating record in DB"); + msoLogger.error(MessageEnum.APIH_DB_UPDATE_EXC, e.getMessage(), "", "", MsoLogger.ErrorCode.DataError, "Exception when updating record in DB"); msoLogger.debug ("Exception: ", e); } } @@ -735,11 +734,11 @@ public class MsoRequest { } public String getServiceType () { - if (this.vnfInputs.getServiceType () != null) - return this.vnfInputs.getServiceType (); - if (this.vnfInputs.getServiceId () != null) - return this.vnfInputs.getServiceId (); - return null; + if (this.vnfInputs.getServiceType () != null) + return this.vnfInputs.getServiceType (); + if (this.vnfInputs.getServiceId () != null) + return this.vnfInputs.getServiceId (); + return null; } public void setStatus (RequestStatusType status) { @@ -747,44 +746,44 @@ public class MsoRequest { switch (status) { case FAILED: case COMPLETE: - this.progress = Constants.PROGRESS_REQUEST_COMPLETED; - break; + this.progress = Constants.PROGRESS_REQUEST_COMPLETED; + break; case IN_PROGRESS: - this.progress = Constants.PROGRESS_REQUEST_IN_PROGRESS; - break; + this.progress = Constants.PROGRESS_REQUEST_IN_PROGRESS; + break; } } public ModelInfo getModelInfo() { - return modelInfo; + return modelInfo; } public ServiceInstancesRequest getServiceInstancesRequest() { - return sir; + return sir; } public String getServiceInstanceType () { - return serviceInstanceType; + return serviceInstanceType; } public String getNetworkType () { - return networkType; + return networkType; } public String getVnfType () { - return vnfType; + return vnfType; } public String getVfModuleModelName () { - return vfModuleModelName; + return vfModuleModelName; } public String getVfModuleType () { - return vfModuleType; + return vfModuleType; } public String getAsdcServiceModelVersion () { - return asdcServiceModelVersion; + return asdcServiceModelVersion; } public static String domToStr (Document doc) { @@ -823,15 +822,15 @@ public class MsoRequest { } public void addBPMNSpecificInputs(String personaModelId, String personaModelVersion, Boolean isBaseVfModule, - String vnfPersonaModelId, String vnfPersonaModelVersion) { - vnfInputs.setPersonaModelId(personaModelId); - vnfInputs.setPersonaModelVersion(personaModelVersion); - vnfInputs.setIsBaseVfModule(isBaseVfModule); - vnfInputs.setVnfPersonaModelId(vnfPersonaModelId); - vnfInputs.setVnfPersonaModelVersion(vnfPersonaModelVersion); - - this.vnfReq.setVnfInputs(vnfInputs); - + String vnfPersonaModelId, String vnfPersonaModelVersion) { + vnfInputs.setPersonaModelId(personaModelId); + vnfInputs.setPersonaModelVersion(personaModelVersion); + vnfInputs.setIsBaseVfModule(isBaseVfModule); + vnfInputs.setVnfPersonaModelId(vnfPersonaModelId); + vnfInputs.setVnfPersonaModelVersion(vnfPersonaModelVersion); + + this.vnfReq.setVnfInputs(vnfInputs); + StringWriter stringWriter = new StringWriter (); try { JAXBContext jaxbContext = JAXBContext.newInstance (VnfRequest.class); @@ -848,11 +847,11 @@ public class MsoRequest { this.requestXML = stringWriter.toString (); msoLogger.debug("REQUEST XML to BPEL: " + this.requestXML); - - + + } - private static boolean empty(String s) { - return (s == null || s.trim().isEmpty()); + private static boolean empty(String s) { + return (s == null || s.trim().isEmpty()); } } diff --git a/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml b/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml index b32f5dec63..b786090fa0 100755 --- a/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml +++ b/packages/arquillian-unit-tests/src/test/resources/SoapUI/Local-API-Handler-soapui-project.xml @@ -4,7 +4,7 @@ 155415ab-b4a7-4382-b4c6-d17d950565 Layer3ServiceActivateRequest OMX -https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws +https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -77,7 +77,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ChgActsm519-501 ChangeLayer3ServiceActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNot + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNot ification.jws 051815-1005 2 @@ -182,7 +182,7 @@ ification.jws 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -238,7 +238,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -261,7 +261,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -284,7 +284,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -307,7 +307,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -402,7 +402,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" da9e0bdf-7d88-4111-bcad-8b72e3a5e601 -]]>${#Project#user-csi}${#Project#user-csi}BasicBasicGlobal HTTP Settingstext/html;charset=utf-8404 405html*/*200v1:volume-requestshttp://localhost:8080No AuthorizationtenantIdvnf-typeapplication/jsonapplication/json400 409v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ +]]>${#Project#user-csi}${#Project#user-csi}BasicBasicGlobal HTTP Settingstext/html;charset=utf-8404 405html*/*200v1:volume-requestshttp://localhost:8080No AuthorizationtenantIdvnf-typeapplication/jsonapplication/json400 409v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "service", @@ -430,7 +430,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +}http://localhost/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -469,7 +469,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vnf", @@ -507,7 +507,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEapplication/jsonapplication/json400 404v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdTEMPLATEapplication/jsonapplication/json400 404v2:Faultapplication/json202v2:Response0datatext/html;charset=UTF-8401html0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "service", @@ -535,7 +535,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +}http://localhost/ecomp/mso/infra/serviceInstances/v2${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -574,7 +574,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvfModuleInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -613,7 +613,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdvnfInstanceIdTEMPLATEapplication/json502 400 409vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvfModuleInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdvnfInstanceIdTEMPLATEapplication/json502 400 409vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vnf", @@ -651,7 +651,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409 501vfm:Faultapplication/json202vfm:Response0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409 501vfm:Faultapplication/json202vfm:Response0data0data0data0data0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -690,7 +690,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data405data405data405data405data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data405data405data405data405data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -729,7 +729,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdTEMPLATEvnfInstanceIdTEMPLATEvolumeGroupInstanceIdTEMPLATEapplication/jsontext/html;charset=UTF-8401htmlapplication/json400 404 409vfm:Faultapplication/json202vfm:Response0data0data404data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vfModule", "modelInvariantId": "585822c7-4027-4f84-ba50-e9248606f132", @@ -768,7 +768,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Responsetext/html;charset=UTF-8401html415dataapplication/xmlv1:network-request<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#user-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdvnfInstanceIdvolumeGroupInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Responsetext/html;charset=UTF-8401html415dataapplication/xmlv1:network-request<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vnf", @@ -806,7 +806,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data0data0data<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response0data0data0data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vnf", @@ -844,7 +844,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" } } } -${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdnetworkInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response405data<xml-fragment/>http://${#Project#host}{ +${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsserviceInstanceIdnetworkInstanceIdserviceInstanceIdserviceInstanceIdTEMPLATEserviceInstanceIdnetworkInstanceIdTEMPLATEapplication/json502 400vnfs:Faultapplication/jsonapplication/json202vnfs:Response405data<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "vnf", @@ -1278,7 +1278,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" test -]]>http://ihoap24.cif.att.com/ecomp/mso/infra/v3/volume-request202 +]]>http://localhost/ecomp/mso/infra/v3/volume-request202 <request-status>IN_PROGRESS</request-status>falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}http://localhost/ecomp/mso/infra/v3/volume-request<tenant-id>eecd15e8e7ee46c3bbc2096f0924f4c4</tenant-id>falsefalse200 ${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingstenantIdvnf-type<xml-fragment/>http://${#Project#host}{ @@ -1309,7 +1309,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +}http://localhost/ecomp/mso/infra/serviceInstances/v2202 ${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingstransfer-to-create-vnf-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VNF$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-create-vfmodule-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VFModule$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-create-volumegroups-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate VolumeGroups$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-serviceInstanceId-propertyResponseCreate Service$.requestReferences.instanceIdserviceInstanceId#TestCase#JSONPATHXPATHtruetransfer-to-create-network-requestResponseCreate Service$.requestReferences.instanceIdRequestCreate Networks$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-vfmodule-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdate VFModule$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-volumeGroups-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdate VolumeGroups$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-network-requestResponseCreate Service$.requestReferences.instanceIdRequestUpdaate Networks$.requestDetails.relatedInstanceList[0].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-requestId-propertyResponseCreate Service$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter @@ -1350,7 +1350,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" "instanceName": "DNSTEST1" }, "requestParameters": {} -}}http://ihoap24.cif.att.com/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>UTF-8http://${#Project#host}http://localhost/orchestrationRequests/v2200"requestScope":"service","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":"DNS_TEST","suppressRollback":true},"relatedInstanceList":null,"subscriberInfo":{"globalSubscriberId":"subscriber-1","subscriberName":"testSubscriber"},"cloudConfiguration":null,"requestParameters":{"subscriptionServiceType":"MOG","userParams":[{"name":"someUserParam","value":"someValue"}]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":"DNS_TEST","vnfInstanceId":null,"vnfInstanceName":null,"vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse$.requestList2falsefalsefalse"requestScope":"vnf","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":"DNSResource-1","modelInvariantId":"585822c7-4027-4f84-ba50-e9248606f112","modelType":"vnf","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"DNSResource","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb","orderVersion":null,"source":"VID","instanceName":"DNSTEST1","suppressRollback":false},"relatedInstanceList":[{"relatedInstance":{"instanceName":null,"instanceId":"falsefalse"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"}}}],"subscriberInfo":null,"cloudConfiguration":{"aicNodeClli":null,"tenantId":"88a6ca3ee0394ade9403f075db23167e","lcpCloudRegionId":"mdt1"},"requestParameters":{"subscriptionServiceType":null,"userParams":[]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":null,"vnfInstanceId":null,"vnfInstanceName":"DNSTEST1","vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsfiltertransfer-to-create-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-requestId-propertyResponseCreate VNF$.requestReferences.requestIdrequestId#TestCase#JSONPATHXPATHtrueset-testcase-vnfInstanceId-propertyResponseCreate VNF$.requestReferences.instanceIdvnfInstanceId#TestCase#JSONPATHXPATHtruetransfer-to-create-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter +}}http://localhost/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>UTF-8http://${#Project#host}http://localhost/orchestrationRequests/v2200"requestScope":"service","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":"DNS_TEST","suppressRollback":true},"relatedInstanceList":null,"subscriberInfo":{"globalSubscriberId":"subscriber-1","subscriberName":"testSubscriber"},"cloudConfiguration":null,"requestParameters":{"subscriptionServiceType":"MOG","userParams":[{"name":"someUserParam","value":"someValue"}]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":"DNS_TEST","vnfInstanceId":null,"vnfInstanceName":null,"vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse$.requestList2falsefalsefalse"requestScope":"vnf","requestType":"createInstance","requestDetails":{"modelInfo":{"modelCustomizationName":"DNSResource-1","modelInvariantId":"585822c7-4027-4f84-ba50-e9248606f112","modelType":"vnf","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"DNSResource","modelVersion":"1.0"},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb","orderVersion":null,"source":"VID","instanceName":"DNSTEST1","suppressRollback":false},"relatedInstanceList":[{"relatedInstance":{"instanceName":null,"instanceId":"falsefalse"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelType":"service","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"dns-servicetest","modelVersion":"1.0"}}}],"subscriberInfo":null,"cloudConfiguration":{"aicNodeClli":null,"tenantId":"88a6ca3ee0394ade9403f075db23167e","lcpCloudRegionId":"mdt1"},"requestParameters":{"subscriptionServiceType":null,"userParams":[]}},"instanceReferences":{"serviceInstanceId":"falsefalse"serviceInstanceName":null,"vnfInstanceId":null,"vnfInstanceName":"DNSTEST1","vfModuleInstanceId":null,"vfModuleInstanceName":null,"volumeGroupInstanceId":null,"volumeGroupInstanceName":null,"networkInstanceId":null,"networkInstanceName":null},"requestStatus":{"requestState":"falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsfiltertransfer-to-create-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueset-testcase-requestId-propertyResponseCreate VNF$.requestReferences.requestIdrequestId#TestCase#JSONPATHXPATHtrueset-testcase-vnfInstanceId-propertyResponseCreate VNF$.requestReferences.instanceIdvnfInstanceId#TestCase#JSONPATHXPATHtruetransfer-to-create-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestCreate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-volumegroups-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VolumeGroups$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtruetransfer-to-update-vfmodule-requestResponseCreate VNF$.requestReferences.instanceIdRequestUpdate VFModule$.requestDetails.relatedInstanceList[1].relatedInstance.instanceIdJSONPATHJSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter @@ -1401,7 +1401,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" "instanceName": "VF_DNS-base-module-1" }, "requestParameters": {"userParams": []} -}}http://ihoap24.cif.att.com/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/132677e7-8ed2-4a51-9758-9eff2c608d90/vfModules202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings +}}http://localhost/ecomp/mso/infra/serviceInstances/v2/3713d5de-942f-41c4-a1b7-08245bc640cc/vnfs/132677e7-8ed2-4a51-9758-9eff2c608d90/vfModules202${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings serviceInstanceIdvnfInstanceIdset-testcase-vfModuleInstanceId-propertyResponseCreate VFModule$.requestReferences.instanceIdvfModuleInstanceId#TestCase#JSONPATHXPATHtrueset-testcase-requestId-propertyResponseCreate VFModule$.requestReferences.requestIdrequestId#TestCase#JSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter @@ -1784,7 +1784,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400 +}http://localhost/ecomp/mso/infra/serviceInstances/v2400 Mapping of request to JSON object failedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { @@ -1813,7 +1813,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400Mapping of request to JSON object failed. Can not construct instance of org.openecomp.mso.apihandlerinfra.ModelType from String value '1'falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ +}http://localhost/ecomp/mso/infra/serviceInstances/v2400Mapping of request to JSON object failed. Can not construct instance of org.openecomp.mso.apihandlerinfra.ModelType from String value '1'falsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "service", @@ -1841,7 +1841,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2400Error parsing requestfalsefalseNo valid modelInvariantId format is specifiedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ +}http://localhost/ecomp/mso/infra/serviceInstances/v2400Error parsing requestfalsefalseNo valid modelInvariantId format is specifiedfalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settings<xml-fragment/>http://${#Project#host}{ "requestDetails": { "modelInfo": { "modelType": "service", @@ -1869,7 +1869,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +}http://localhost/ecomp/mso/infra/serviceInstances/v2202 ${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingstransfer-to-create-vnf-urlResponseCreate Service$.requestReferences.instanceIdserviceInstanceId#TestCase#JSONPATHJSONPATHtruetransfer-to-create-vfmodule-urlResponseCreate Service$.requestReferences.requestIdrequestId#TestCase#JSONPATHJSONPATHtrueMsoRequestsDbAdapterImplPortBindingupdateInfraRequest<xml-fragment/>UTF-8http://${#Project#host}/dbadapters/RequestsDbAdapter @@ -1908,7 +1908,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2409 +}http://localhost/ecomp/mso/infra/serviceInstances/v2409 Error: Locked instancefalsefalse${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP Settingsorg.mysql.jdbc.Driverjdbc:mysql://172.17.0.2:3306/mso_catalog?user=catalog&password=catalog123delete from service where id=1;<UpdateCount>1</UpdateCount>falsefalse<xml-fragment/>http://${#Project#host}{ "requestDetails": { @@ -1939,5 +1939,5 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ] } } -}http://ihoap40.cif.att.com/ecomp/mso/infra/serviceInstances/v2202 +}http://localhost/ecomp/mso/infra/serviceInstances/v2202 ${#Project#user-infraportal}${#Project#password-infraportal}BasicBasicGlobal HTTP SettingsrequestId7a6e22c6-0f96-4ad8-b696-123e70cc5a67serviceInstanceId90b3a5f7-f7fa-4ac1-b966-becf2ae480cdvnfInstanceIdb978e03a-8371-496f-b53a-fa117f24c1d0vfModuleInstanceIda26eaaaa-bce4-4ec0-98f3-f21e43969aabvomuleGroupInstanceIdf4bd7c69-a525-429a-8c1b-384f1beacd90networkIdebdd074d-ba30-4d44-921c-323cec4e78fchostlocalhost:8080user-infraportalInfraPortalClientpassword-infraportalpassword1$DBhostmariadb \ No newline at end of file diff --git a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MsoRequestDB-soapui-project.xml b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MsoRequestDB-soapui-project.xml index d6d418358c..6c39113a94 100644 --- a/packages/arquillian-unit-tests/src/test/resources/SoapUI/MsoRequestDB-soapui-project.xml +++ b/packages/arquillian-unit-tests/src/test/resources/SoapUI/MsoRequestDB-soapui-project.xml @@ -248,7 +248,7 @@ 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 @@ -327,7 +327,7 @@ declare namespace req='http://com.att.mso/requestsdb'; 155415ab-b4a7-4382-b4c6-d17d950565 FeatureChangeActivateRequest OMX - https://csi-tst-q22.it.att.com:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws + https://localhost:22443/Services/com/cingular/csi/sdn/SendManagedNetworkStatusNotification.jws 5051560 1 -- cgit 1.2.3-korg