4 "name": "08_Declare_Customer_Service_Subscription_Cloud",
5 "_postman_id": "ea6f17c2-1abd-62ff-a260-17fad1bdf6b8",
7 "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
11 "name": "List Customers",
16 "type": "text/javascript",
18 "var customer_found = false;",
19 "if (responseCode.code === 404) {",
20 " tests[postman.getGlobalVariable(\"customer_name\")+\" does not exists\"] = true;",
23 " if (responseCode.code === 200) {",
24 " tests[\"Status code is 200\"] = responseCode.code === 200;",
26 " var jsonData = JSON.parse(responseBody);",
27 " for (var i = 0; i < jsonData.customer.length; i++) { ",
28 " if (jsonData.customer[i][\"global-customer-id\"] === postman.getGlobalVariable(\"customer_name\")) {",
29 " customer_found = true;",
30 " postman.setGlobalVariable(\"auto_customer_id\", \"\"+jsonData.customer[i][\"global-customer-id\"]+\"\");",
33 " if (customer_found === false) {",
34 " tests[postman.getGlobalVariable(\"customer_name\")+\" does not exists\"] = true;",
38 " tests[postman.getGlobalVariable(\"customer_name\")+\" already exists, we skip creation\"] = true;",
39 " postman.setNextRequest(\"List Services from SDC catalog\");",
47 "url": "{{url-aai}}/aai/v14/business/customers",
51 "key": "Authorization",
52 "value": "Basic QUFJOkFBSQ==",
62 "value": "application/json",
66 "key": "Content-Type",
67 "value": "application/json",
71 "key": "X-TransactionId",
72 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
78 "raw": "{\r\n \"global-customer-id\": \"Chouchen22\",\r\n \"subscriber-name\": \"Chouchen22\",\r\n \"subscriber-type\": \"INFRA\"\r\n}"
85 "name": "Declare a Customer",
90 "type": "text/javascript",
92 "tests[\"Status code is 201\"] = responseCode.code === 201;"
98 "url": "{{url-aai}}/aai/v14/business/customers/customer/{{customer_name}}",
102 "key": "Authorization",
103 "value": "Basic QUFJOkFBSQ==",
107 "key": "X-FromAppId",
113 "value": "application/json",
117 "key": "Content-Type",
118 "value": "application/json",
122 "key": "X-TransactionId",
123 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
129 "raw": "{\n \"global-customer-id\": \"{{customer_name}}\",\n \"subscriber-name\": \"{{customer_name}}\",\n \"subscriber-type\": \"INFRA\"\n}"
136 "name": "Check customer creation",
141 "type": "text/javascript",
143 "tests[\"Status code is 200\"] = responseCode.code === 200;",
145 "var jsonData = JSON.parse(responseBody);",
146 "var customer_found = false;",
147 "for (var i = 0; i < jsonData.customer.length; i++) { ",
148 " if (jsonData.customer[i][\"global-customer-id\"] === postman.getGlobalVariable(\"customer_name\")) {",
149 " customer_found = true;",
150 " postman.setGlobalVariable(\"auto_customer_id\", \"\"+jsonData.customer[i][\"global-customer-id\"]+\"\");",
153 "tests[postman.getGlobalVariable(\"customer_name\")+\" found\"] = customer_found === true;"
159 "url": "{{url-aai}}/aai/v14/business/customers",
163 "key": "Authorization",
164 "value": "Basic QUFJOkFBSQ==",
168 "key": "X-FromAppId",
174 "value": "application/json",
178 "key": "Content-Type",
179 "value": "application/json",
183 "key": "X-TransactionId",
184 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
190 "raw": "{\r\n \"global-customer-id\": \"Chouchen22\",\r\n \"subscriber-name\": \"Chouchen22\",\r\n \"subscriber-type\": \"INFRA\"\r\n}"
197 "name": "List Services from SDC catalog",
202 "type": "text/javascript",
204 "tests[\"Status code is 200\"] = responseCode.code === 200;",
206 "var jsonData = JSON.parse(responseBody);",
207 "var service_found = false;",
208 "for (var i = 0; i < jsonData.length; i++) { ",
209 " if (jsonData[i][\"name\"] === postman.getGlobalVariable(\"service\")) {",
210 " service_found = true;",
211 " postman.setGlobalVariable(\"auto_service_invariantUUID\", \"\"+jsonData[i][\"invariantUUID\"]+\"\");",
215 "if (service_found === false) {",
216 " tests[postman.getGlobalVariable(\"service\")+\" does not exists\"] = true;",
217 " postman.setNextRequest(null);",
221 " tests[postman.getGlobalVariable(\"service\")+\" exists, we continue the run\"] = true;",
228 "url": "{{url-sdc}}/sdc/v1/catalog/services",
232 "key": "Content-Type",
233 "value": "application/json",
238 "value": "application/json",
242 "key": "X-TransactionId",
243 "value": "ONAP-Test",
252 "key": "X-FromAppId",
253 "value": "ONAP-Test",
257 "key": "Authorization",
258 "value": "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=",
262 "key": "x-ecomp-instanceid",
263 "value": "ONAP-Test",
269 "raw": "{\"contactId\": \"cs0008\", \"vendorRelease\": \"1.0\", \"requirements\": {}, \"artifacts\": {}, \"capabilities\": {}, \"componentInstancesProperties\": {}, \"deploymentArtifacts\": {}, \"icon\": \"defaulticon\", \"vendorName\": \"test-api-license-model\", \"description\": \"vendor software product\", \"tags\": [\"test-vsp\"], \"groups\": [], \"properties\": [], \"categories\": [{\"subcategories\": [{\"normalizedName\": \"abstract\", \"name\": \"Abstract\", \"uniqueId\": \"resourceNewCategory.generic.abstract\", \"icons\": [\"icon\"]}], \"normalizedName\": \"generic\", \"name\": \"Generic\", \"uniqueId\": \"resourceNewCategory.generic\"}], \"name\": \"test-vsp\", \"toscaArtifacts\": {}, \"csarUUID\": \"F3CD5189C2DF45B4B1CFA6D6E45FD613\", \"resourceType\": \"VF\", \"csarVersion\": \"1.0\", \"componentType\": \"RESOURCE\", \"componentInstancesAttributes\": {}, \"attributes\": [], \"componentInstances\": []}"
276 "name": "Check Subscription in AAI",
281 "type": "text/javascript",
283 "var service_found = false;",
284 "if (responseCode.code === 404) {",
285 " tests[postman.getGlobalVariable(\"service\")+\" does not exists in AAI\"] = true;",
288 " if (responseCode.code === 200) {",
289 " tests[\"Status code is 200\"] = responseCode.code === 200;",
291 " var jsonData = JSON.parse(responseBody);",
292 " for (var i = 0; i < jsonData.service.length; i++) { ",
293 " if (jsonData.service[i][\"service-description\"] === postman.getGlobalVariable(\"service\")) {",
294 " service_found = true;",
298 " if (service_found === false) {",
299 " tests[postman.getGlobalVariable(\"service\")+\" does not exists in AAI\"] = true;",
303 " tests[postman.getGlobalVariable(\"service\")+\" already exists in AAI, we skip creation\"] = true;",
304 " postman.setNextRequest(\"check cloud-region exists\");",
312 "url": "{{url-aai}}/aai/v14/service-design-and-creation/services",
317 "value": "application/json",
321 "key": "Content-Type",
322 "value": "application/json",
326 "key": "X-FromAppId",
331 "key": "X-TransactionId",
332 "value": "get_aai_subscr",
336 "key": "Authorization",
337 "value": "Basic QUFJOkFBSQ==",
350 "name": "Declare subscription in AAI",
352 "url": "{{url-aai}}/aai/v14/service-design-and-creation/services/service/{{auto_service_invariantUUID}}",
356 "key": "Authorization",
357 "value": "Basic QUFJOkFBSQ==",
361 "key": "X-FromAppId",
367 "value": "application/json",
371 "key": "X-TransactionId",
372 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
376 "key": "Content-Type",
377 "value": "application/json",
383 "raw": "{\r\n\"service-id\": \"{{auto_service_invariantUUID}}\",\r\n\"service-description\": \"{{service}}\"\r\n}"
390 "name": "Check Subscription creation in AAI",
395 "type": "text/javascript",
397 "tests[\"Status code is 200\"] = responseCode.code === 200;",
399 "var jsonData = JSON.parse(responseBody);",
400 "var service_found = false;",
401 "for (var i = 0; i < jsonData.service.length; i++) { ",
402 " if (jsonData.service[i][\"service-description\"] === postman.getGlobalVariable(\"service\")) {",
403 " service_found = true;",
404 " postman.setGlobalVariable(\"auto_service_resource_version\", \"\"+jsonData.service[i][\"resource-version\"]+\"\");",
407 "tests[postman.getGlobalVariable(\"service\")+\" found\"] = service_found === true;"
413 "url": "{{url-aai}}/aai/v14/service-design-and-creation/services",
418 "value": "application/json",
422 "key": "Content-Type",
423 "value": "application/json",
427 "key": "X-FromAppId",
432 "key": "X-TransactionId",
433 "value": "get_aai_subscr",
437 "key": "Authorization",
438 "value": "Basic QUFJOkFBSQ==",
451 "name": "check complex exists",
456 "type": "text/javascript",
458 "var complex_found = false;",
459 "if (responseCode.code === 404) {",
460 " tests[postman.getGlobalVariable(\"complex_name\")+\" does not exists in AAI\"] = true;",
463 " if (responseCode.code === 200) {",
464 " tests[\"Status code is 200\"] = responseCode.code === 200;",
466 "var jsonData = JSON.parse(responseBody);",
467 "for (var i = 0; i < jsonData[\"complex\"].length; i++) { ",
468 " if (jsonData[\"complex\"][i][\"complex-name\"] === postman.getGlobalVariable(\"complex_name\")) {",
469 " complex_found = true;",
473 "if (complex_found === false) {",
474 " tests[postman.getGlobalVariable(\"complex_name\")+\" does not exists\"] = true;",
477 " tests[postman.getGlobalVariable(\"complex_name\")+\" already exists, we skip creation\"] = true;",
478 " postman.setNextRequest(\"check cloud-region exists\");",
486 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/complexes",
490 "key": "Authorization",
491 "value": "Basic QUFJOkFBSQ==",
495 "key": "X-FromAppId",
501 "value": "application/json",
505 "key": "X-TransactionId",
506 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
516 "name": "create Complex",
521 "type": "text/javascript",
523 "tests[\"Status code is 201\"] = responseCode.code === 201;"
529 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/complexes/complex/{{complex_name}}",
533 "key": "Authorization",
534 "value": "Basic QUFJOkFBSQ==",
538 "key": "X-FromAppId",
544 "value": "application/json",
548 "key": "X-TransactionId",
549 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
553 "key": "Content-Type",
554 "value": "application/json",
560 "raw": "{\n \"physical-location-id\": \"{{complex_name}}\",\n \"data-center-code\": \"\",\n \"complex-name\": \"{{complex_name}}\",\n \"identity-url\": \"\",\n \"physical-location-type\": \"\",\n \"street1\": \"\",\n \"street2\": \"\",\n \"city\": \"\",\n \"state\": \"\",\n \"postal-code\": \"\",\n \"country\": \"\",\n \"region\": \"\",\n \"latitude\": \"\",\n \"longitude\": \"\",\n \"elevation\": \"\",\n \"lata\": \"\"\n}"
567 "name": "Check complex creation",
572 "type": "text/javascript",
574 "tests[\"Status code is 200\"] = responseCode.code === 200;",
576 "var jsonData = JSON.parse(responseBody);",
577 "var complex_found = false;",
578 "for (var i = 0; i < jsonData[\"complex\"].length; i++) { ",
579 " if (jsonData[\"complex\"][i][\"complex-name\"] === postman.getGlobalVariable(\"complex_name\")) {",
580 " complex_found = true;",
583 "tests[postman.getGlobalVariable(\"complex_name\")+\" found\"] = complex_found === true;",
590 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/complexes",
594 "key": "Authorization",
595 "value": "Basic QUFJOkFBSQ==",
599 "key": "X-FromAppId",
605 "value": "application/json",
609 "key": "X-TransactionId",
610 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
620 "name": "check cloud-region exists",
625 "type": "text/javascript",
627 "var region_found = false;",
628 "if (responseCode.code === 404) {",
629 " tests[postman.getGlobalVariable(\"onap_cloud_region_id\")+\" does not exists in AAI\"] = true;",
632 " if (responseCode.code === 200) {",
633 " tests[\"Status code is 200\"] = responseCode.code === 200;",
635 "var jsonData = JSON.parse(responseBody);",
636 "for (var i = 0; i < jsonData[\"cloud-region\"].length; i++) { ",
637 " if (jsonData[\"cloud-region\"][i][\"cloud-region-id\"] === postman.getGlobalVariable(\"onap_cloud_region_id\")) {",
638 " region_found = true;",
642 "if (region_found === false) {",
643 " tests[postman.getGlobalVariable(\"onap_cloud_region_id\")+\" does not exists\"] = true;",
646 " tests[postman.getGlobalVariable(\"onap_cloud_region_id\")+\" already exists, we skip creation\"] = true;",
647 " postman.setNextRequest(\"check tenant in cloud region\");",
655 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions",
659 "key": "Authorization",
660 "value": "Basic QUFJOkFBSQ==",
664 "key": "X-FromAppId",
670 "value": "application/json",
674 "key": "X-TransactionId",
675 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
685 "name": "create CloudOwner/RegionOne cloud-region",
690 "type": "text/javascript",
692 "tests[\"Status code is 201\"] = responseCode.code === 201;"
698 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}",
702 "key": "Authorization",
703 "value": "Basic QUFJOkFBSQ==",
707 "key": "X-FromAppId",
713 "value": "application/json",
717 "key": "X-TransactionId",
718 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
722 "key": "Content-Type",
723 "value": "application/json",
729 "raw": "{\r\n \"cloud-owner\": \"{{cloud_owner_name}}\",\r\n \"cloud-region-id\": \"{{onap_cloud_region_id}}\",\r\n \"cloud-type\": \"{{cloud_type}}\",\r\n \"owner-defined-type\": \"\",\r\n \"cloud-region-version\": \"{{cloud_region_version}}\",\r\n \"cloud-zone\": \"\",\r\n \"complex-name\": \"{{complex_name}}\",\r\n \"identity-url\": \"WillBeUpdatedByMultiCloud\",\r\n \"sriov-automation\": false,\r\n \"cloud-extra-info\": \"{\\\"openstack-region-id\\\":\\\"{{openstack_region_id}}\\\"}\",\r\n \"esr-system-info-list\": {\r\n \t\"esr-system-info\": [\r\n {\r\n \"esr-system-info-id\": \"{{random_uuid}}\",\r\n \"service-url\": \"{{keystone_url}}\",\r\n \"user-name\": \"{{user_name}}\",\r\n \"password\": \"{{keystone_password}}\",\r\n \"system-type\": \"VIM\",\r\n \"ssl-insecure\": true,\r\n \"cloud-domain\": \"Default\",\r\n \"default-tenant\": \"{{tenant_name}}\",\r\n \"system-status\": \"active\"\r\n }\r\n ]\r\n }\r\n}"
736 "name": "Check Cloud-region creation",
741 "type": "text/javascript",
743 "tests[\"Status code is 200\"] = responseCode.code === 200;",
745 "var jsonData = JSON.parse(responseBody);",
746 "var region_found = false;",
747 "for (var i = 0; i < jsonData[\"cloud-region\"].length; i++) { ",
748 " if (jsonData[\"cloud-region\"][i][\"cloud-region-id\"] === postman.getGlobalVariable(\"onap_cloud_region_id\")) {",
749 " region_found = true;",
752 "tests[postman.getGlobalVariable(\"onap_cloud_region_id\")+\" found\"] = region_found === true;",
759 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions",
763 "key": "Authorization",
764 "value": "Basic QUFJOkFBSQ==",
768 "key": "X-FromAppId",
774 "value": "application/json",
778 "key": "X-TransactionId",
779 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
789 "name": "associate Cloud-region to a complex",
794 "type": "text/javascript",
796 "tests[\"Status code is 200 : cloud-region associated to a complex\"] = responseCode.code === 200;",
803 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}/relationship-list/relationship",
807 "key": "Authorization",
808 "value": "Basic QUFJOkFBSQ==",
812 "key": "X-FromAppId",
818 "value": "application/json",
822 "key": "X-TransactionId",
823 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
827 "key": "Content-Type",
828 "value": "application/json",
834 "raw": "{\n \"related-to\": \"complex\",\n \"related-link\": \"/aai/v13/cloud-infrastructure/complexes/complex/{{complex_name}}\",\n \"relationship-data\": [\n {\n \"relationship-key\": \"complex.physical-location-id\",\n \"relationship-value\": \"{{complex_name}}\"\n }\n ]\n }"
841 "name": "check tenant in cloud region",
846 "type": "text/javascript",
848 "var tenant_found = false;",
849 "if (responseCode.code === 404) {",
850 " tests[postman.getGlobalVariable(\"tenant_name\")+\" does not exists in AAI\"] = true;",
853 " if (responseCode.code === 200) {",
854 " tests[\"Status code is 200\"] = responseCode.code === 200;",
856 "var jsonData = JSON.parse(responseBody);",
858 "if(jsonData.hasOwnProperty('tenant'))",
860 " for (var i = 0; i < jsonData.tenant.length; i++) ",
862 " if (jsonData.tenant[i]['tenant-id'] === postman.getGlobalVariable(\"tenant_id\")) ",
864 " tenant_found = true;",
867 " if (tenant_found === true) ",
869 " tests[postman.getGlobalVariable(\"tenant_name\")+\" already exists, we skip creation\"] = true;",
870 " postman.setNextRequest(\"check customer-service-tenant relations\");",
873 "if (tenant_found === false)",
875 " tests[postman.getGlobalVariable(\"tenant_name\")+\" does not exists\"] = true;",
884 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}/tenants",
888 "key": "Authorization",
889 "value": "Basic QUFJOkFBSQ==",
893 "key": "X-FromAppId",
899 "value": "application/json",
903 "key": "X-TransactionId",
904 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
908 "key": "Content-Type",
909 "value": "application/json",
919 "name": "add tenant to region",
924 "type": "text/javascript",
926 "tests[\"Status code is 201\"] = responseCode.code === 201;"
932 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}/tenants/tenant/{{tenant_id}}",
936 "key": "Authorization",
937 "value": "Basic QUFJOkFBSQ==",
941 "key": "X-FromAppId",
947 "value": "application/json",
951 "key": "X-TransactionId",
952 "value": "get_aai_subscr",
956 "key": "Content-Type",
957 "value": "application/json",
963 "raw": "{\n \"tenant-id\": \"{{tenant_id}}\",\n \"tenant-name\": \"{{tenant_name}}\"\n}"
970 "name": "check tenant creation",
975 "type": "text/javascript",
977 "tests[\"Status code is 200\"] = responseCode.code === 200;",
979 "var jsonData = JSON.parse(responseBody);",
980 "var tenant_found = false;",
981 "for (var i = 0; i < jsonData[\"tenant\"].length; i++) { ",
982 " if (jsonData[\"tenant\"][i][\"tenant-id\"] === postman.getGlobalVariable(\"tenant_id\")) {",
983 " tenant_found = true;",
986 "tests[postman.getGlobalVariable(\"tenant_name\")+\" found\"] = tenant_found === true;",
993 "url": "{{url-aai}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}/tenants",
997 "key": "Authorization",
998 "value": "Basic QUFJOkFBSQ==",
1002 "key": "X-FromAppId",
1008 "value": "application/json",
1012 "key": "X-TransactionId",
1013 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
1017 "key": "Content-Type",
1018 "value": "application/json",
1028 "name": "check customer-service-tenant relations",
1033 "type": "text/javascript",
1035 "var relation_found = false;",
1036 "if (responseCode.code === 404) {",
1037 " tests[postman.getGlobalVariable(\"tenant_name\")+\" / \"+postman.getGlobalVariable(\"service\")+ \" relation does not exists\"] = true;",
1040 " if (responseCode.code === 200) {",
1041 " tests[\"Status code is 200\"] = responseCode.code === 200;",
1044 "var jsonData = JSON.parse(responseBody);",
1045 "for (var i = 0; i < jsonData[\"service-subscription\"].length; i++) { ",
1046 " if (jsonData[\"service-subscription\"][i][\"service-type\"] === postman.getGlobalVariable(\"service\")) {",
1047 " relation_found = true;",
1051 "if (relation_found === false) {",
1052 " tests[postman.getGlobalVariable(\"tenant_name\")+\" / \"+postman.getGlobalVariable(\"service\")+ \" relation does not exists\"] = true;",
1056 " tests[postman.getGlobalVariable(\"tenant_name\")+\" / \"+postman.getGlobalVariable(\"service\")+ \" already exists, we skip relation creation\"] = true;",
1057 " postman.setNextRequest(\"check customer-service-tenant relation creation\");",
1066 "raw": "{{url-aai}}/aai/v14/business/customers/customer/{{customer_name}}/service-subscriptions?depth=all",
1076 "{{customer_name}}",
1077 "service-subscriptions"
1092 "key": "Authorization",
1093 "value": "Basic QUFJOkFBSQ==",
1097 "key": "X-FromAppId",
1103 "value": "application/json",
1107 "key": "Content-Type",
1108 "value": "application/json",
1112 "key": "X-TransactionId",
1113 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
1119 "raw": "{\r\n \"global-customer-id\": \"Sina\",\r\n \"subscriber-name\": \"Sina\",\r\n \"subscriber-type\": \"INFRA\"\r\n}"
1126 "name": "Add customer-service-tenant relations init",
1131 "type": "text/javascript",
1133 "tests[\"Status code is 201\"] = responseCode.code === 201;"
1140 "raw": "{{url-aai}}/aai/v14/business/customers/customer/{{customer_name}}/service-subscriptions/service-subscription/{{service}}?resource-version={{auto_service_resource_version}}",
1150 "{{customer_name}}",
1151 "service-subscriptions",
1152 "service-subscription",
1157 "key": "resource-version",
1158 "value": "{{auto_service_resource_version}}",
1168 "key": "Authorization",
1169 "value": "Basic QUFJOkFBSQ==",
1173 "key": "X-FromAppId",
1179 "value": "application/json",
1183 "key": "Content-Type",
1184 "value": "application/json",
1188 "key": "X-TransactionId",
1189 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
1195 "raw": "{\r\n\t\"service-type\": \"{{service}}\",\r\n\t\"relationship-list\": {\r\n\t\t\"relationship\": [{\r\n\t\t\t\"related-to\": \"tenant\",\r\n\t\t\t\"related-link\": \"https://aai.api.simpledemo.onap.org:8443/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner_name}}/{{onap_cloud_region_id}}/tenants/tenant/{{tenant_id}}\",\r\n\t\t\t\"relationship-data\": [{\r\n\t\t\t\t\t\"relationship-key\": \"cloud-region.cloud-owner\",\r\n\t\t\t\t\t\"relationship-value\": \"{{cloud_owner_name}}\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"relationship-key\": \"cloud-region.cloud-region-id\",\r\n\t\t\t\t\t\"relationship-value\": \"{{onap_cloud_region_id}}\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"relationship-key\": \"tenant.tenant-id\",\r\n\t\t\t\t\t\"relationship-value\": \"{{tenant_id}}\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"related-to-property\": [{\r\n\t\t\t\t\"property-key\": \"tenant.tenant-name\",\r\n\t\t\t\t\"property-value\": \"{{tenant_name}}\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t}\r\n}"
1202 "name": "check customer-service-tenant relation creation",
1207 "type": "text/javascript",
1209 "tests[\"Status code is 200\"] = responseCode.code === 200;",
1211 "var jsonData = JSON.parse(responseBody);",
1212 "var service_found = false;",
1213 "for (var i = 0; i < jsonData[\"service-subscription\"].length; i++) { ",
1214 " if (jsonData[\"service-subscription\"][i][\"service-type\"] === postman.getGlobalVariable(\"service\")) {",
1215 " service_found = true;",
1218 "tests[postman.getGlobalVariable(\"service\")+\" found\"] = service_found === true;",
1226 "raw": "{{url-aai}}/aai/v14/business/customers/customer/{{customer_name}}/service-subscriptions?depth=all",
1236 "{{customer_name}}",
1237 "service-subscriptions"
1252 "key": "Authorization",
1253 "value": "Basic QUFJOkFBSQ==",
1257 "key": "X-FromAppId",
1263 "value": "application/json",
1267 "key": "Content-Type",
1268 "value": "application/json",
1272 "key": "X-TransactionId",
1273 "value": "808b54e3-e563-4144-a1b9-e24e2ed93d4f",
1279 "raw": "{\r\n \"global-customer-id\": \"Sina\",\r\n \"subscriber-name\": \"Sina\",\r\n \"subscriber-type\": \"INFRA\"\r\n}"