forked from postmanlabs/newman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use collection schema v2.1.0 for test fixture
- Loading branch information
Showing
2 changed files
with
90 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,68 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "1f9d323c-5bb0-4885-87d0-ac5522f85d7d", | ||
"name": "Client cert example", | ||
"description": "A sample collection to demonstrate client SSL certificate handling", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
|
||
"item": [{ | ||
"name": "A simple GET request using client certificate 1 on server", | ||
"event": [{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": ["tests['response code is 200'] = (responseCode.code === 200);"] | ||
"item": [ | ||
{ | ||
"name": "A simple GET request using client certificate 1 on server", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "f169c71e-6a6c-40d6-92bf-0e99e36d30dd", | ||
"exec": [ | ||
"pm.test(\"Status code is 200\", function () {", | ||
" pm.response.to.have.status(200);", | ||
"});" | ||
], | ||
"type": "text/javascript" | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://localhost:3001", | ||
"protocol": "https", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "3001" | ||
} | ||
} | ||
}], | ||
"request": { | ||
"url": "https://localhost:3001", | ||
"method": "GET" | ||
} | ||
}, | ||
{ | ||
"name": "A simple GET request using client certificate 2 on server 2", | ||
"event": [{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": ["tests['response code is 200'] = (responseCode.code === 200);"] | ||
}, | ||
{ | ||
"name": "A simple GET request using client certificate 2 on server 2", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "c7e8c76f-c590-4fec-94b9-6049e5eb5e59", | ||
"exec": [ | ||
"pm.test(\"Status code is 200\", function () {", | ||
" pm.response.to.have.status(200);", | ||
"});" | ||
], | ||
"type": "text/javascript" | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://localhost:3002", | ||
"protocol": "https", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "3002" | ||
} | ||
} | ||
}], | ||
"request": { | ||
"url": "https://localhost:3002", | ||
"method": "GET" | ||
} | ||
}] | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "1aef0597-d937-47e1-a989-2733f6d9eecf", | ||
"name": "Client cert example", | ||
"description": "A sample collection to demonstrate client SSL certificate handling", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
|
||
"item": [{ | ||
"name": "A simple GET request", | ||
"event": [{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": ["tests['response code is 200'] = (responseCode.code === 200);"] | ||
"item": [ | ||
{ | ||
"name": "A simple GET request", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "b4f95cb4-9219-4e2a-b62c-9055a3958a37", | ||
"exec": [ | ||
"pm.test(\"Status code is 200\", function () {", | ||
" pm.response.to.have.status(200);", | ||
"});" | ||
], | ||
"type": "text/javascript" | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://localhost:3000", | ||
"protocol": "https", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "3000" | ||
} | ||
} | ||
}], | ||
"request": { | ||
"url": "https://localhost:3000", | ||
"method": "GET" | ||
} | ||
}] | ||
] | ||
} | ||
|