We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f5077 commit a770692Copy full SHA for a770692
1 file changed
tests/templates/kuttl/smoke/test-regorule.py
@@ -27,11 +27,19 @@
27
# --> {'hello': True}
28
29
# url = 'http://test-opa-svc:8081/v1/data/test'
30
- response = requests.post(args['url'], json={"input": {}}).json()
+ response = requests.post(args["url"], json={"input": {}}).json()
31
32
- if "result" in response and "hello" in response["result"] and response["result"]["hello"]:
+ if (
33
+ "result" in response
34
+ and "hello" in response["result"]
35
+ and response["result"]["hello"]
36
+ ):
37
print("Test successful!")
38
exit(0)
39
else:
- print("Error: received " + str(response) + " - expected: {'result': {'hello': True}}")
40
+ print(
41
+ "Error: received "
42
+ + str(response)
43
+ + " - expected: {'result': {'hello': True}}"
44
+ )
45
exit(-1)
0 commit comments