File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 2727 # --> {'hello': True}
2828
2929 # url = 'http://test-opa-svc:8081/v1/data/test'
30- response = requests .post (args [' url' ], json = {"input" : {}}).json ()
30+ response = requests .post (args [" url" ], json = {"input" : {}}).json ()
3131
32- if "result" in response and "hello" in response ["result" ] and response ["result" ]["hello" ]:
32+ if (
33+ "result" in response
34+ and "hello" in response ["result" ]
35+ and response ["result" ]["hello" ]
36+ ):
3337 print ("Test successful!" )
3438 exit (0 )
3539 else :
36- print ("Error: received " + str (response ) + " - expected: {'result': {'hello': True}}" )
40+ print (
41+ "Error: received "
42+ + str (response )
43+ + " - expected: {'result': {'hello': True}}"
44+ )
3745 exit (- 1 )
You can’t perform that action at this time.
0 commit comments