Skip to content

Commit 591f4ab

Browse files
committed
use proper json boolean values
1 parent 5f36684 commit 591f4ab

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/e2e/features/authorized_noop.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: Authorized endpoint API tests for the noop authentication module
1515
Then The status code of the response is 200
1616
And The body of the response is the following
1717
"""
18-
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": True}
18+
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": true}
1919
"""
2020

2121
Scenario: Check if the authorized endpoint works when auth token is not provided
@@ -24,7 +24,7 @@ Feature: Authorized endpoint API tests for the noop authentication module
2424
Then The status code of the response is 200
2525
And The body of the response is the following
2626
"""
27-
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": True}
27+
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": true}
2828
"""
2929

3030
Scenario: Check if the authorized endpoint works when user_id is not provided
@@ -34,7 +34,7 @@ Feature: Authorized endpoint API tests for the noop authentication module
3434
Then The status code of the response is 200
3535
And The body of the response is the following
3636
"""
37-
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": True}
37+
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": true}
3838
"""
3939

4040
Scenario: Check if the authorized endpoint works when providing empty user_id
@@ -44,7 +44,7 @@ Feature: Authorized endpoint API tests for the noop authentication module
4444
Then The status code of the response is 200
4545
And The body of the response is the following
4646
"""
47-
{"user_id": "","username": "lightspeed-user","skip_userid_check": True}
47+
{"user_id": "","username": "lightspeed-user","skip_userid_check": true}
4848
"""
4949

5050
Scenario: Check if the authorized endpoint works when providing proper user_id
@@ -54,5 +54,5 @@ Feature: Authorized endpoint API tests for the noop authentication module
5454
Then The status code of the response is 200
5555
And The body of the response is the following
5656
"""
57-
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": True}
57+
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": true}
5858
"""

tests/e2e/features/authorized_noop_token.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: Authorized endpoint API tests for the noop-with-token authentication mo
2626
Then The status code of the response is 200
2727
And The body of the response is the following
2828
"""
29-
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": True}
29+
{"user_id": "00000000-0000-0000-0000-000","username": "lightspeed-user","skip_userid_check": true}
3030
"""
3131

3232
Scenario: Check if the authorized endpoint works when providing empty user_id
@@ -36,7 +36,7 @@ Feature: Authorized endpoint API tests for the noop-with-token authentication mo
3636
Then The status code of the response is 200
3737
And The body of the response is the following
3838
"""
39-
{"user_id": "","username": "lightspeed-user","skip_userid_check": True}
39+
{"user_id": "","username": "lightspeed-user","skip_userid_check": true}
4040
"""
4141

4242
Scenario: Check if the authorized endpoint works when providing proper user_id
@@ -46,7 +46,7 @@ Feature: Authorized endpoint API tests for the noop-with-token authentication mo
4646
Then The status code of the response is 200
4747
And The body of the response is the following
4848
"""
49-
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": True}
49+
{"user_id": "test_user","username": "lightspeed-user","skip_userid_check": true}
5050
"""
5151

5252
Scenario: Check if the authorized endpoint works with proper user_id but bearer token is not present

tests/e2e/features/steps/common_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def check_prediction_result(context: Context) -> None:
179179
"""
180180
assert context.response is not None, "Request needs to be performed first"
181181
assert context.text is not None, "Response does not contain any payload"
182-
expected_body = _safe_json_loads(context.text)
182+
expected_body = json.loads(context.text)
183183
result = context.response.json()
184184

185185
# compare both JSONs and print actual result in case of any difference

0 commit comments

Comments
 (0)