Skip to content

Commit 3fb4af9

Browse files
Gurov Ilyacojenco
authored andcommitted
test: update conformance tests to fit the new format (googleapis#96)
* test: update conformance tests to fit the new format * black reformat
1 parent 55475fe commit 3fb4af9

3 files changed

Lines changed: 401 additions & 395 deletions

File tree

tests/unit/test__signing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
34-
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")
34+
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")["signingV4Tests"]
3535
_CLIENT_TESTS = [test for test in _CONFORMANCE_TESTS if "bucket" not in test]
3636
_BUCKET_TESTS = [
3737
test for test in _CONFORMANCE_TESTS if "bucket" in test and not test.get("object")

tests/unit/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
from . import _read_local_json
2727

2828
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
29-
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")
29+
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")[
30+
"postPolicyV4Tests"
31+
]
3032
_POST_POLICY_TESTS = [test for test in _CONFORMANCE_TESTS if "policyInput" in test]
3133
_DUMMY_CREDENTIALS = Credentials.from_service_account_info(_SERVICE_ACCOUNT_JSON)
3234

0 commit comments

Comments
 (0)