From 2804f29de7c51662bd1c2d9ec51607501c14359a Mon Sep 17 00:00:00 2001 From: ypoplavs <45286051+ypoplavs@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:34:59 +0200 Subject: [PATCH] add another example (#9) --- .../postman-collections/hello-kubernetes.json | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 examples/postman-collections/hello-kubernetes.json diff --git a/examples/postman-collections/hello-kubernetes.json b/examples/postman-collections/hello-kubernetes.json new file mode 100644 index 0000000..81479de --- /dev/null +++ b/examples/postman-collections/hello-kubernetes.json @@ -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": [] + } + ] +} \ No newline at end of file