Skip to content

Commit

Permalink
Use collection schema v2.1.0 for test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
coditva committed Feb 24, 2020
1 parent a947646 commit b8a717a
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 43 deletions.
87 changes: 59 additions & 28 deletions test/fixtures/run/ssl-client-cert-list.json
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"
}
}]
]
}

46 changes: 31 additions & 15 deletions test/fixtures/run/ssl-client-cert.json
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"
}
}]
]
}

0 comments on commit b8a717a

Please sign in to comment.