aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-10-12 16:00:06 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-10-12 16:04:43 +0200
commitb193f7503842ed803e0bcedfbbfc45d1b6b7d9c0 (patch)
treec7524e6ac5fb16e8da10c1ad24ed993664e8a261 /tests
parentda8563a557eaa7be2b2b42424bc86ee58550ffc1 (diff)
downloadansible-kong-app-b193f7503842ed803e0bcedfbbfc45d1b6b7d9c0.tar.gz
ansible-kong-app-b193f7503842ed803e0bcedfbbfc45d1b6b7d9c0.tar.zst
ansible-kong-app-b193f7503842ed803e0bcedfbbfc45d1b6b7d9c0.zip
Improve README documentation, add a LICENSE file and add test case
Diffstat (limited to 'tests')
-rwxr-xr-xtests/kong.py2
-rw-r--r--tests/test.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/kong.py b/tests/kong.py
index 4e2df28..a1f9cec 100755
--- a/tests/kong.py
+++ b/tests/kong.py
@@ -13,7 +13,7 @@ class SimpleHTTPRequestHandler(CGIHTTPRequestHandler):
13 self.wfile.write(b'{ "data": [] }') 13 self.wfile.write(b'{ "data": [] }')
14 14
15 def do_POST(self): 15 def do_POST(self):
16 self.send_response(200) 16 self.send_response(201)
17 self.end_headers() 17 self.end_headers()
18 self.wfile.write(b'Hello, world!') 18 self.wfile.write(b'Hello, world!')
19 19
diff --git a/tests/test.yml b/tests/test.yml
index 36c81a2..cbe858f 100644
--- a/tests/test.yml
+++ b/tests/test.yml
@@ -10,3 +10,6 @@
10 services: 10 services:
11 - url: http://example.com 11 - url: http://example.com
12 name: test 12 name: test
13 routes:
14 - hosts: [my.kong.example]
15 paths: [/]