Update NBI Postman based on changes in Dublin Release 42/91542/2
authoraosull01 <adrian.osullivan@huawei.com>
Tue, 16 Jul 2019 13:55:30 +0000 (14:55 +0100)
committerYang Xu <yang.xu@futurewei.com>
Tue, 16 Jul 2019 15:47:38 +0000 (15:47 +0000)
Issue-ID: EXTAPI-245
Signed-off-by: aosull01 <adrian.osullivan@huawei.com>
Change-Id: Ia60be462bf4980b341f54ad9797640dba549db91

test/postman/10_Service_Order.postman_collection.json

index 2bcd4f9..d828f00 100644 (file)
                                }
                        ],
                        "request": {
-                               "url": {
-                                       "raw": "{{url-nbi}}/service/{{auto_service_instance_id}}?relatedParty.id={{customer_name}}&serviceSpecification.name={{service}}",
-                                       "host": [
-                                               "{{url-nbi}}"
-                                       ],
-                                       "path": [
-                                               "nbi",
-                                               "api",
-                                               "v3",
-                                               "service",
-                                               "{{auto_service_instance_id}}"
-                                       ],
-                                       "query": [
-                                               {
-                                                       "key": "relatedParty.id",
-                                                       "value": "{{customer_name}}",
-                                                       "equals": true,
-                                                       "description": ""
-                                               },
-                                               {
-                                                       "key": "serviceSpecification.name",
-                                                       "value": "{{service}}",
-                                                       "equals": true,
-                                                       "description": ""
-                                               }
-                                       ],
-                                       "variable": []
-                               },
+                               "url": "{{url-nbi}}/service/{{auto_service_instance_id}}",
                                "method": "GET",
                                "header": [],
                                "body": {},
                                                "type": "text/javascript",
                                                "exec": [
                                                        "",
-                                                       "tests[\"Status code is 200\"] = responseCode.code === 200;",
+                                                       "tests[\"Status code is 404\"] = responseCode.code === 404;",
                                                        "",
                                                        "",
                                                        ""
                                }
                        ],
                        "request": {
-                               "url": {
-                                       "raw": "{{url-nbi}}/service/{{auto_service_instance_id}}?relatedParty.id={{customer_name}}&serviceSpecification.name={{service}}",
-                                       "host": [
-                                               "{{url-nbi}}"
-                                       ],
-                                       "path": [
-                                               "nbi",
-                                               "api",
-                                               "v3",
-                                               "service",
-                                               "{{auto_service_instance_id}}"
-                                       ],
-                                       "query": [
-                                               {
-                                                       "key": "relatedParty.id",
-                                                       "value": "{{customer_name}}",
-                                                       "equals": true,
-                                                       "description": ""
-                                               },
-                                               {
-                                                       "key": "serviceSpecification.name",
-                                                       "value": "{{service}}",
-                                                       "equals": true,
-                                                       "description": ""
-                                               }
-                                       ],
-                                       "variable": []
-                               },
+                                "url": "{{url-nbi}}/service/{{auto_service_instance_id}}",
                                "method": "GET",
                                "header": [],
                                "body": {},
                        "response": []
                }
        ]
-}
\ No newline at end of file
+}