|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "624f891e-336b-43c1-ac70-1c133ee328c9", |
| 3 | + "_postman_id": "b08b48b6-9b34-4497-9929-f070c6cbe104", |
4 | 4 | "name": "RPS API Tests", |
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", |
6 | 6 | "_exporter_id": "35155358" |
|
9148 | 9148 | "name": "AMT Profiles w/ Proxy Profiles", |
9149 | 9149 | "item": [ |
9150 | 9150 | { |
9151 | | - "name": "Create Proxy (http)", |
| 9151 | + "name": "Create Proxy (proxy-abc)", |
9152 | 9152 | "event": [ |
9153 | 9153 | { |
9154 | 9154 | "listen": "test", |
|
9212 | 9212 | "response": [] |
9213 | 9213 | }, |
9214 | 9214 | { |
9215 | | - "name": "Create Proxy (https)", |
| 9215 | + "name": "Create Proxy (proxy-abc.test)", |
9216 | 9216 | "event": [ |
9217 | 9217 | { |
9218 | 9218 | "listen": "test", |
|
9312 | 9312 | ], |
9313 | 9313 | "body": { |
9314 | 9314 | "mode": "raw", |
9315 | | - "raw": "{\r\n \"profileName\": \"wifi-profile\",\r\n \"amtPassword\": \"Intel123!\",\r\n \"mebxPassword\": \"Intel123!\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"tag1\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"profileName\": \"proxy\"\r\n }\r\n ]\r\n}", |
| 9315 | + "raw": "{\r\n \"profileName\": \"wifi-profile\",\r\n \"amtPassword\": \"Intel123!\",\r\n \"mebxPassword\": \"Intel123!\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"tag1\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"configName\": \"proxy\"\r\n }\r\n ]\r\n}", |
9316 | 9316 | "options": { |
9317 | 9317 | "raw": { |
9318 | 9318 | "language": "json" |
|
9356 | 9356 | " pm.expect(result.dhcpEnabled).to.equal(true)\r", |
9357 | 9357 | " pm.expect(result.proxyConfigs.length).to.equal(2)\r", |
9358 | 9358 | " pm.expect(result.proxyConfigs[0].priority).to.equal(1)\r", |
9359 | | - " pm.expect(result.proxyConfigs[0].profileName).to.equal(\"http\")\r", |
| 9359 | + " pm.expect(result.proxyConfigs[0].configName).to.equal(\"www.proxy-abc.com\")\r", |
9360 | 9360 | " pm.expect(result.proxyConfigs[1].priority).to.equal(2)\r", |
9361 | | - " pm.expect(result.proxyConfigs[1].profileName).to.equal(\"https\")\r", |
| 9361 | + " pm.expect(result.proxyConfigs[1].configName).to.equal(\"www.proxy-abc.test.com\")\r", |
9362 | 9362 | "});" |
9363 | 9363 | ], |
9364 | 9364 | "type": "text/javascript", |
|
9383 | 9383 | ], |
9384 | 9384 | "body": { |
9385 | 9385 | "mode": "raw", |
9386 | | - "raw": "{\r\n \"profileName\": \"wifi-profile1\",\r\n \"amtPassword\": \"P@ssw0rd\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"acm\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"profileName\": \"http\"\r\n },\r\n {\r\n \"priority\": 2,\r\n \"profileName\": \"https\"\r\n }\r\n ]\r\n}" |
| 9386 | + "raw": "{\r\n \"profileName\": \"wifi-profile1\",\r\n \"amtPassword\": \"P@ssw0rd\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"acm\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"configName\": \"www.proxy-abc.com\"\r\n },\r\n {\r\n \"priority\": 2,\r\n \"configName\": \"www.proxy-abc.test.com\"\r\n }\r\n ]\r\n}", |
| 9387 | + "options": { |
| 9388 | + "raw": { |
| 9389 | + "language": "json" |
| 9390 | + } |
| 9391 | + } |
9387 | 9392 | }, |
9388 | 9393 | "url": { |
9389 | 9394 | "raw": "{{protocol}}://{{host}}/api/v1/admin/profiles/", |
|
9422 | 9427 | " pm.expect(result.dhcpEnabled).to.equal(true)\r", |
9423 | 9428 | " pm.expect(result.proxyConfigs.length).to.equal(1)\r", |
9424 | 9429 | " pm.expect(result.proxyConfigs[0].priority).to.equal(1)\r", |
9425 | | - " pm.expect(result.proxyConfigs[0].profileName).to.equal(\"http\")\r", |
| 9430 | + " pm.expect(result.proxyConfigs[0].configName).to.equal(\"www.proxy-abc.com\")\r", |
9426 | 9431 | "});" |
9427 | 9432 | ], |
9428 | 9433 | "type": "text/javascript", |
|
9447 | 9452 | ], |
9448 | 9453 | "body": { |
9449 | 9454 | "mode": "raw", |
9450 | | - "raw": "{\r\n \"profileName\": \"wifi-profile2\",\r\n \"amtPassword\": \"P@ssw0rd\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"acm\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"profileName\": \"http\"\r\n }\r\n ]\r\n}", |
| 9455 | + "raw": "{\r\n \"profileName\": \"wifi-profile2\",\r\n \"amtPassword\": \"P@ssw0rd\",\r\n \"activation\": \"ccmactivate\",\r\n \"tags\": [\"acm\"],\r\n \"dhcpEnabled\": true,\r\n \"proxyConfigs\": [\r\n {\r\n \"priority\": 1,\r\n \"configName\": \"www.proxy-abc.com\"\r\n }\r\n ]\r\n}", |
9451 | 9456 | "options": { |
9452 | 9457 | "raw": { |
9453 | 9458 | "language": "json" |
|
9504 | 9509 | " pm.expect(result[1].tags.length).to.equal(1)\r", |
9505 | 9510 | " pm.expect(result[1].proxyConfigs.length).to.equal(1)\r", |
9506 | 9511 | " pm.expect(result[1].proxyConfigs[0].priority).to.equal(1)\r", |
9507 | | - " pm.expect(result[1].proxyConfigs[0].profileName).to.equal(\"http\")\r", |
| 9512 | + " pm.expect(result[1].proxyConfigs[0].configName).to.equal(\"www.proxy-abc.com\")\r", |
9508 | 9513 | "});" |
9509 | 9514 | ], |
9510 | 9515 | "type": "text/javascript", |
|
12949 | 12954 | { |
12950 | 12955 | "name": "Create Duplicate Proxy", |
12951 | 12956 | "event": [ |
12952 | | - { |
12953 | | - "listen": "prerequest", |
12954 | | - "script": { |
12955 | | - "exec": [ |
12956 | | - "" |
12957 | | - ], |
12958 | | - "type": "text/javascript", |
12959 | | - "packages": {} |
12960 | | - } |
12961 | | - }, |
12962 | 12957 | { |
12963 | 12958 | "listen": "test", |
12964 | 12959 | "script": { |
|
12969 | 12964 | "pm.test(\"Request should return an error message\", function () {\r", |
12970 | 12965 | " var jsonData = pm.response.json();\r", |
12971 | 12966 | " pm.expect(jsonData.error).to.eql(\"Unique key violation\");\r", |
12972 | | - " pm.expect(jsonData.message).to.eql(\"Proxy profile P1 already exists\");\r", |
| 12967 | + " pm.expect(jsonData.message).to.eql(\"Proxy profile www.vprodemo.com already exists\");\r", |
12973 | 12968 | "});" |
12974 | 12969 | ], |
12975 | 12970 | "type": "text/javascript", |
|
12985 | 12980 | "header": [], |
12986 | 12981 | "body": { |
12987 | 12982 | "mode": "raw", |
12988 | | - "raw": "{\r\n \"accessInfo\": \"192.168.9.58\",\r\n \"infoFormat\": 3,\r\n \"port\": 900,\r\n \"networkDnsSuffix\": \"intel.com\"\r\n}", |
| 12983 | + "raw": "{\r\n \"accessInfo\": \"www.vprodemo.com\",\r\n \"infoFormat\": 201,\r\n \"port\": 900,\r\n \"networkDnsSuffix\": \"intel.com\"\r\n}", |
12989 | 12984 | "options": { |
12990 | 12985 | "raw": { |
12991 | 12986 | "language": "json" |
|
0 commit comments