Replace the sql dump with one with vehicle manufacturers and makes. Add update info, list vehicle manufacturers to collection. #229

This commit is contained in:
Korina Cordero 2019-07-18 05:16:51 +00:00
parent f92db23b0c
commit 725ce1b5a7
2 changed files with 186 additions and 30 deletions

View file

@ -217,6 +217,165 @@
}
},
"response": []
},
{
"name": "[Normal] Update Info",
"event": [
{
"listen": "test",
"script": {
"id": "27592b25-ba3d-4218-813f-3a9ab710fccc",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Update Info\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "first_name",
"value": "{{first_name}}",
"type": "text"
},
{
"key": "last_name",
"value": "{{last_name}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/info?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"info"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Info",
"event": [
{
"listen": "test",
"script": {
"id": "24efd1b8-ad00-4cb0-beb5-85c014d8a09a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get Info\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.first_name).to.eql(\"Stiltzkin\");",
" pm.expect(jsonData.data.last_name).to.eql(\"Moogle\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/info?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"info"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Vehicle Manufacturers",
"event": [
{
"listen": "test",
"script": {
"id": "86275f4c-dd2b-42c8-9ac2-c7d7a7d2edfe",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List vehicle manufacturers\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.manufacturers).to.have.lengthOf(43);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/vehicle/mfgs?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicle",
"mfgs"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Vehicle Makes",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
],
"event": [
@ -243,40 +402,52 @@
],
"variable": [
{
"id": "a1cfb454-de0c-4c74-9a45-c14dc9bf2da0",
"id": "09fcc1bc-23c3-48cb-8586-49a7cf9437d5",
"key": "resq_url",
"value": "resq.local",
"type": "string"
},
{
"id": "cf0248b6-ea72-44ca-8de6-ba6a20f9ee9d",
"id": "25934577-a793-4004-badf-63212546aa52",
"key": "phone_model",
"value": "iPhone8",
"type": "string"
},
{
"id": "069c06e7-6a38-4998-aa62-e3789c615253",
"id": "4e0d2bcf-84bd-4516-b0ef-d28413b62acb",
"key": "os_type",
"value": "IOS",
"type": "string"
},
{
"id": "c7c3e8e7-3f49-46c0-932d-25cc281c4d23",
"id": "41b11f18-f02c-4721-bee0-7b7e5d277c42",
"key": "os_version",
"value": "11.4",
"type": "string"
},
{
"id": "8bda1ea8-63bf-400a-a0d7-832e13a273f7",
"id": "d2fb7606-9d27-4a1c-9701-93d807e02796",
"key": "phone_id",
"value": "11376660-F8BF-46ED-B30A-EF3F361EE223",
"type": "string"
},
{
"id": "236e99e8-1bb8-412f-9827-3dd955b40172",
"id": "2cd58196-a907-4c21-9753-75a6090f4f1b",
"key": "phone_number",
"value": "9221111111",
"type": "string"
},
{
"id": "211fab6f-e9f0-4436-a3a0-351b3bf11eb2",
"key": "first_name",
"value": "Stiltzkin",
"type": "string"
},
{
"id": "2943ce9b-545f-489a-bee6-d3553312fd4c",
"key": "last_name",
"value": "Moogle",
"type": "string"
}
]
}

File diff suppressed because one or more lines are too long