Skip to content

Commit

Permalink
add another example (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Oct 31, 2023
1 parent b5cc8be commit 2804f29
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions examples/postman-collections/hello-kubernetes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"info": {
"_postman_id": "02c90123-318f-4680-8bc2-640adabb45e8",
"name": "New Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "hello-world test",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Body matches string\", () => {",
" pm.expect(pm.response.text()).to.contain(\"Hello Kubernetes\")",
"})",
"",
"pm.test(\"Body matches string\", () => {",
" pm.expect(pm.response.status).to.equal(\"OK\")",
"})"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://hello-kubernetes-service.default",
"protocol": "http",
"host": ["hello-kubernetes-service", "default"]
}
},
"response": []
}
]
}

0 comments on commit 2804f29

Please sign in to comment.