Adds Postman scripts to verify the API of QOS feature 65/42665/3
authorpramod <pramod.raghavendra.jayathirth@intel.com>
Thu, 28 Jul 2016 07:01:11 +0000 (00:01 -0700)
committerpramod <pramod.raghavendra.jayathirth@intel.com>
Tue, 2 Aug 2016 05:11:26 +0000 (22:11 -0700)
The postman scripts can be imported into postman to make the REST calls
for Creating, Updating and deleting the QOS policies.

Change-Id: Id9c452d3c80cf0c79f32f783c96e0f2ed7b044bf
Signed-off-by: pramod <pramod.raghavendra.jayathirth@intel.com>
resources/Neutron_Northbound_Qos_Rest.postman_collection.json [new file with mode: 0644]

diff --git a/resources/Neutron_Northbound_Qos_Rest.postman_collection.json b/resources/Neutron_Northbound_Qos_Rest.postman_collection.json
new file mode 100644 (file)
index 0000000..02d2bba
--- /dev/null
@@ -0,0 +1,136 @@
+{
+       "variables": [],
+       "info": {
+               "name": "Quality_Of_Service",
+               "_postman_id": "27c8c2eb-995a-b9a2-4a82-af222f6a9806",
+               "description": "",
+               "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
+       },
+       "item": [
+               {
+                       "name": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/",
+                       "request": {
+                               "url": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/",
+                               "method": "POST",
+                               "header": [
+                                       {
+                                               "key": "Basic",
+                                               "value": "YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Accept",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\"policy\":  {\"id\": \"d6220bbb-35f3-48ab-8eae-69c60aef3546\",\n             \"tenant_id\": \"aa902936679e4ea29bfe1158e3450a13\", \n             \"name\" : \"qos-test\",\n             \"shared\": false }}\n"
+                               },
+                               "description": "Create a QOS Policy"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                       "request": {
+                               "url": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                               "method": "PUT",
+                               "header": [
+                                       {
+                                               "key": "Basic",
+                                               "value": "YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Accept",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\"policy\":  {\"id\": \"d6220bbb-35f3-48ab-8eae-69c60aef3546\",\n                 \"tenant_id\": \"aa902936679e4ea29bfe1158e3450a14\",\n                  \"name\" : \"qos-test\",\n                  \"shared\": false,\n                  \"bandwidth_limit_rules\": [ {\"id\": \"d6220bbb-35f3-48ab-8eae-69c60aef3547\",\n                  \"tenant_id\": \"aa902936679e4ea29bfe1158e3450a14\",\"max_kbps\": 25,\n                  \"max_burst_kbps\": 100 } ] ,\n                  \"dscp_marking_rules\" : [ {\"id\":\"d6220bbb-35f3-48ab-8eae-69c60aef3548\",\n                  \"tenant_id\": \"aa902936679e4ea29bfe1158e3450a14\",\n                  \"dscp_mark\": 8 } ] }}\n"
+                               },
+                               "description": "Update a QOS Policy"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                       "request": {
+                               "url": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                               "method": "GET",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "formdata",
+                                       "formdata": []
+                               },
+                               "description": "View the existing QOS policy"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                       "request": {
+                               "url": "http://{{CONTROLLER-IP}}:{{PORT}}/controller/nb/v2/neutron/qos/policies/d6220bbb-35f3-48ab-8eae-69c60aef3546",
+                               "method": "DELETE",
+                               "header": [
+                                       {
+                                               "key": "Basic",
+                                               "value": "YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Accept",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json",
+                                               "description": ""
+                                       },
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4=",
+                                               "description": ""
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": ""
+                               },
+                               "description": "Delete the QOS Policy with the Policy number"
+                       },
+                       "response": []
+               }
+       ]
+}