BAEL-2731 - reformatted Postman file

This commit is contained in:
clininger 2019-02-17 09:43:12 +07:00
parent 9a83eac701
commit 2a9cfa8f25
1 changed files with 182 additions and 182 deletions

View File

@ -1,184 +1,184 @@
{ {
"info": { "info": {
"_postman_id": "9989b5be-13ba-4d22-8e43-d05dbf628e58", "_postman_id": "9989b5be-13ba-4d22-8e43-d05dbf628e58",
"name": "foo API test", "name": "foo API test",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
}, },
"item": [ "item": [
{ {
"name": "add a foo", "name": "add a foo",
"event": [ "event": [
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "a01534dc-6fc7-4c54-ba1d-6bcf311e5836", "id": "a01534dc-6fc7-4c54-ba1d-6bcf311e5836",
"exec": [ "exec": [
"pm.test(\"success status\", () => pm.response.to.be.success );", "pm.test(\"success status\", () => pm.response.to.be.success );",
"", "",
"pm.test(\"name is correct\", () => ", "pm.test(\"name is correct\", () => ",
" pm.expect(pm.response.json().name).to.equal(\"Transformers\"));", " pm.expect(pm.response.json().name).to.equal(\"Transformers\"));",
"", "",
"pm.test(\"id was assigned\", () => ", "pm.test(\"id was assigned\", () => ",
" pm.expect(pm.response.json().id).to.be.not.null );", " pm.expect(pm.response.json().id).to.be.not.null );",
"", "",
"pm.variables.set(\"id\", pm.response.json().id);" "pm.variables.set(\"id\", pm.response.json().id);"
], ],
"type": "text/javascript" "type": "text/javascript"
} }
} }
], ],
"request": { "request": {
"method": "POST", "method": "POST",
"header": [ "header": [
{ {
"key": "Content-Type", "key": "Content-Type",
"name": "Content-Type", "name": "Content-Type",
"value": "application/json", "value": "application/json",
"type": "text" "type": "text"
} }
], ],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\n \"name\": \"Transformers\"\n}" "raw": "{\n \"name\": \"Transformers\"\n}"
}, },
"url": { "url": {
"raw": "http://localhost:8082/spring-boot-rest/auth/foos", "raw": "http://localhost:8082/spring-boot-rest/auth/foos",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost" "localhost"
], ],
"port": "8082", "port": "8082",
"path": [ "path": [
"spring-boot-rest", "spring-boot-rest",
"auth", "auth",
"foos" "foos"
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "get a foo", "name": "get a foo",
"event": [ "event": [
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "03de440c-b483-4ab8-a11a-d0c99b349963", "id": "03de440c-b483-4ab8-a11a-d0c99b349963",
"exec": [ "exec": [
"pm.test(\"success status\", () => pm.response.to.be.success );", "pm.test(\"success status\", () => pm.response.to.be.success );",
"", "",
"pm.test(\"name is correct\", () => ", "pm.test(\"name is correct\", () => ",
" pm.expect(pm.response.json().name).to.equal(\"Transformers\"));", " pm.expect(pm.response.json().name).to.equal(\"Transformers\"));",
"", "",
"pm.test(\"id is correct\", () => ", "pm.test(\"id is correct\", () => ",
" pm.expect(pm.response.json().id).to.equal(pm.variables.get(\"id\")) );" " pm.expect(pm.response.json().id).to.equal(pm.variables.get(\"id\")) );"
], ],
"type": "text/javascript" "type": "text/javascript"
} }
} }
], ],
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}", "raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost" "localhost"
], ],
"port": "8082", "port": "8082",
"path": [ "path": [
"spring-boot-rest", "spring-boot-rest",
"auth", "auth",
"foos", "foos",
"{{id}}" "{{id}}"
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "delete a foo", "name": "delete a foo",
"event": [ "event": [
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "74c1bb0f-c06c-48b1-a545-459233541b14", "id": "74c1bb0f-c06c-48b1-a545-459233541b14",
"exec": [ "exec": [
"pm.test(\"success status\", () => pm.response.to.be.success );" "pm.test(\"success status\", () => pm.response.to.be.success );"
], ],
"type": "text/javascript" "type": "text/javascript"
} }
} }
], ],
"request": { "request": {
"method": "DELETE", "method": "DELETE",
"header": [], "header": [],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}", "raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost" "localhost"
], ],
"port": "8082", "port": "8082",
"path": [ "path": [
"spring-boot-rest", "spring-boot-rest",
"auth", "auth",
"foos", "foos",
"{{id}}" "{{id}}"
] ]
} }
}, },
"response": [] "response": []
}, },
{ {
"name": "verify delete", "name": "verify delete",
"event": [ "event": [
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "03de440c-b483-4ab8-a11a-d0c99b349963", "id": "03de440c-b483-4ab8-a11a-d0c99b349963",
"exec": [ "exec": [
"pm.test(\"status is 500\", () => pm.response.to.have.status(500) );", "pm.test(\"status is 500\", () => pm.response.to.have.status(500) );",
"", "",
"pm.test(\"no value present\", () => ", "pm.test(\"no value present\", () => ",
" pm.expect(pm.response.json().cause).to.equal(\"No value present\"));" " pm.expect(pm.response.json().cause).to.equal(\"No value present\"));"
], ],
"type": "text/javascript" "type": "text/javascript"
} }
} }
], ],
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "" "raw": ""
}, },
"url": { "url": {
"raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}", "raw": "http://localhost:8082/spring-boot-rest/auth/foos/{{id}}",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost" "localhost"
], ],
"port": "8082", "port": "8082",
"path": [ "path": [
"spring-boot-rest", "spring-boot-rest",
"auth", "auth",
"foos", "foos",
"{{id}}" "{{id}}"
] ]
} }
}, },
"response": [] "response": []
} }
] ]
} }