github.com/kubeshop/testkube@v1.17.23/contrib/executor/postman/examples/example_postman_collection.json (about) 1 { 2 "id": "blablablablabla", 3 "name": "some-testing-exec", 4 "content": { 5 "type": "string", 6 "data":"{\n\t\"info\": {\n\t\t\"_postman_id\": \"97b67bfb-c1ca-4572-af46-06cab8f68998\",\n\t\t\"name\": \"Local-API-Health\",\n\t\t\"schema\": \"https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json\"\n\t},\n\t\"item\": [\n\t\t{\n\t\t\t\"name\": \"Health\",\n\t\t\t\"event\": [\n\t\t\t\t{\n\t\t\t\t\t\"listen\": \"test\",\n\t\t\t\t\t\"script\": {\n\t\t\t\t\t\t\"exec\": [\n\t\t\t\t\t\t\t\"pm.test(\\\"Status code is 200\\\", function () {\",\n\t\t\t\t\t\t\t\" pm.response.to.have.status(200);\",\n\t\t\t\t\t\t\t\"});\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"type\": \"text\/javascript\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"listen\": \"prerequest\",\n\t\t\t\t\t\"script\": {\n\t\t\t\t\t\t\"exec\": [\n\t\t\t\t\t\t\t\"console.log(\\\"PARAM test_name\\\", pm.environment.get(\\\"test_name\\\"))\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"type\": \"text\/javascript\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"request\": {\n\t\t\t\t\"method\": \"GET\",\n\t\t\t\t\"header\": [],\n\t\t\t\t\"url\": {\n\t\t\t\t\t\"raw\": \"http:\/\/localhost:8088\/health\",\n\t\t\t\t\t\"protocol\": \"http\",\n\t\t\t\t\t\"host\": [\n\t\t\t\t\t\t\"localhost\"\n\t\t\t\t\t],\n\t\t\t\t\t\"port\": \"8088\",\n\t\t\t\t\t\"path\": [\n\t\t\t\t\t\t\"health\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"response\": []\n\t\t}\n\t],\n\t\"event\": [\n\t\t{\n\t\t\t\"listen\": \"prerequest\",\n\t\t\t\"script\": {\n\t\t\t\t\"type\": \"text\/javascript\",\n\t\t\t\t\"exec\": [\n\t\t\t\t\t\"\"\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"listen\": \"test\",\n\t\t\t\"script\": {\n\t\t\t\t\"type\": \"text\/javascript\",\n\t\t\t\t\"exec\": [\n\t\t\t\t\t\"\"\n\t\t\t\t]\n\t\t\t}\n\t\t}\n\t]\n}" 7 }, 8 "paramsFile": "{\"id\": \"dadc8abc-a382-4947-b14d-8d77c2692dda\", \"name\": \"sanity\", \"values\": [ { \"key\": \"test_name\", \"value\": \"kubtest-sanity-test-healthcheck\", \"enabled\": true }, { \"key\": \"execution_name\", \"value\": \"fill-me`\", \"enabled\": true }, { \"key\": \"test_type\", \"value\": \"postman/collection\", \"enabled\": true }, { \"key\": \"api_uri\", \"value\": \"http://localhost:8088\", \"enabled\": true }, { \"key\": \"execution_id\", \"value\": \"fill-me\", \"enabled\": true }, { \"key\": \"script_api_uri\", \"value\": \"http://localhost:8088\", \"enabled\": true }, { \"key\": \"team\", \"value\": \"\", \"enabled\": true }, { \"key\": \"item\", \"value\": \"\", \"enabled\": true } ], \"_postman_variable_scope\": \"environment\", \"_postman_exported_at\": \"2022-02-03T09:42:03.660Z\", \"_postman_exported_using\": \"Postman/9.7.1\" }", 9 "params": { 10 "test_name": "override one from file" 11 } 12 }