Created
September 14, 2016 22:53
-
-
Save stefanfoulis/1c9b46a61beba2e6423caa746006cae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_basic (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_basic_quoting (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_path_normalization (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_percent_encode_non_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_percent_encode_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_handle_querystring (__main__.AWS4Auth_AmzCanonicalPath_Test) ... ERROR | |
test_basic (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_multiple_params (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_quoting (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_space (__main__.AWS4Auth_AmzCanonicalQuerystring_Test) ... ok | |
test_aws4auth_add_header (__main__.AWS4Auth_Date_Test) ... ERROR | |
test_get_request_date__check_prefer_xamzdate (__main__.AWS4Auth_Date_Test) ... FAIL | |
test_get_request_date__date_and_invalid_xamzdate (__main__.AWS4Auth_Date_Test) ... FAIL | |
test_get_request_date__date_only (__main__.AWS4Auth_Date_Test) ... FAIL | |
test_get_request_date__invalid_both (__main__.AWS4Auth_Date_Test) ... ok | |
test_get_request_date__invalid_date (__main__.AWS4Auth_Date_Test) ... ok | |
test_get_request_date__invalid_xamzdate (__main__.AWS4Auth_Date_Test) ... ok | |
test_get_request_date__no_headers (__main__.AWS4Auth_Date_Test) ... ok | |
test_get_request_date__xamzdate_only (__main__.AWS4Auth_Date_Test) ... FAIL | |
test_parse_amzdate (__main__.AWS4Auth_Date_Test) ... ok | |
test_parse_bad_date (__main__.AWS4Auth_Date_Test) ... ok | |
test_parse_ctime (__main__.AWS4Auth_Date_Test) ... ok | |
test_parse_rfc3339 (__main__.AWS4Auth_Date_Test) ... ok | |
test_parse_rfc7231 (__main__.AWS4Auth_Date_Test) ... ok | |
test_parse_rfc850 (__main__.AWS4Auth_Date_Test) ... ok | |
test_encode_body_bytes (__main__.AWS4Auth_EncodeBody_Test) ... ok | |
test_encode_body_safe_unicode_to_other_bytes (__main__.AWS4Auth_EncodeBody_Test) ... ok | |
test_encode_body_safe_unicode_to_utf8 (__main__.AWS4Auth_EncodeBody_Test) ... ERROR | |
test_encode_body_unsafe_unicode_to_other_bytes (__main__.AWS4Auth_EncodeBody_Test) ... FAIL | |
test_encode_body_unsafe_unicode_to_utf8 (__main__.AWS4Auth_EncodeBody_Test) ... ERROR | |
test_duplicate_headers (__main__.AWS4Auth_GetCanonicalHeaders_Test) ... ERROR | |
test_netloc_port (__main__.AWS4Auth_GetCanonicalHeaders_Test) ... FAIL | |
test_amz1 (__main__.AWS4Auth_GetCanonicalRequest_Test) ... ERROR | |
test_amz_test_suite (__main__.AWS4Auth_GetCanonicalRequest_Test) ... skipped 'aws4_testsuite unavailable, download it from http://docs.aws.amazon.com/general/latest/gr/samples/aws4_testsuite.zip' | |
test_default_include_hdrs (__main__.AWS4Auth_Instantiate_Test) ... ok | |
test_func_signature_check (__main__.AWS4Auth_Instantiate_Test) ... ok | |
test_instantiate_from_args (__main__.AWS4Auth_Instantiate_Test) ... ok | |
test_instantiate_from_signing_key (__main__.AWS4Auth_Instantiate_Test) ... ok | |
test_raise_invalid_date_default (__main__.AWS4Auth_Instantiate_Test) ... ok | |
test_live_services (__main__.AWS4Auth_LiveService_Test) ... skipped 'AWS_ACCESS_ID and AWS_ACCESS_KEY environment variables not set, skipping live service tests' | |
test_mobileanalytics (__main__.AWS4Auth_LiveService_Test) ... skipped 'AWS_ACCESS_ID and AWS_ACCESS_KEY environment variables not set, skipping live service tests' | |
test_regen_signing_key_inherit_previous_scope (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_regen_signing_key_new_key (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_regen_signing_key_no_key_nosecretkey_raise (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_regen_signing_key_no_key_supplied_secret_key (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_regen_signing_key_no_secret_nosecretkey_raise (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_regen_signing_key_use_override_args (__main__.AWS4Auth_Regenerate_Signing_Key_Test) ... ok | |
test_amz_test_suite (__main__.AWS4Auth_RequestSign_Test) ... skipped 'aws4_testsuite unavailable, download it from http://docs.aws.amazon.com/general/latest/gr/samples/aws4_testsuite.zip' | |
test_date_mismatch_nosecretkey_raise (__main__.AWS4Auth_RequestSign_Test) ... ok | |
test_generate_empty_body_signature (__main__.AWS4Auth_RequestSign_Test) ... ERROR | |
test_generate_signature (__main__.AWS4Auth_RequestSign_Test) ... ERROR | |
test_regen_key_on_date_mismatch (__main__.AWS4Auth_RequestSign_Test) ... ERROR | |
test_sts_creds_include_security_token_header (__main__.AWS4Auth_RequestSign_Test) ... ERROR | |
test_amz_date (__main__.AWS4_SigningKey_Test) ... ok | |
test_amz_date_warning (__main__.AWS4_SigningKey_Test) ... ok | |
test_basic_instantiation (__main__.AWS4_SigningKey_Test) ... ok | |
test_date (__main__.AWS4_SigningKey_Test) ... ok | |
test_default_store_secret_key (__main__.AWS4_SigningKey_Test) ... ok | |
test_generate_key (__main__.AWS4_SigningKey_Test) ... ok | |
test_instantiation_generate_key (__main__.AWS4_SigningKey_Test) ... ok | |
test_no_store_secret_key (__main__.AWS4_SigningKey_Test) ... ok | |
test_sign_sha256_bytes_msg (__main__.AWS4_SigningKey_Test) ... ok | |
test_sign_sha256_unicode_msg (__main__.AWS4_SigningKey_Test) ... ok | |
test_signing_key_phases (__main__.AWS4_SigningKey_Test) ... ok | |
test_store_secret_key (__main__.AWS4_SigningKey_Test) ... ok | |
====================================================================== | |
ERROR: test_basic (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 721, in test_basic | |
encoded = self.nons3auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_handle_basic_quoting (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 738, in test_handle_basic_quoting | |
encoded = self.nons3auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_handle_path_normalization (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 732, in test_handle_path_normalization | |
encoded = self.nons3auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_handle_percent_encode_non_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 750, in test_handle_percent_encode_non_s3 | |
encoded = auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_handle_percent_encode_s3 (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 762, in test_handle_percent_encode_s3 | |
encoded = auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_handle_querystring (__main__.AWS4Auth_AmzCanonicalPath_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 726, in test_handle_querystring | |
encoded = self.nons3auth.amz_cano_path(path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_aws4auth_add_header (__main__.AWS4Auth_Date_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 588, in test_aws4auth_add_header | |
sreq = auth(req) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 360, in __call__ | |
signed_headers) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 516, in get_canonical_request | |
path = self.amz_cano_path(url.path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_encode_body_safe_unicode_to_utf8 (__main__.AWS4Auth_EncodeBody_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 681, in test_encode_body_safe_unicode_to_utf8 | |
self.assertEqual(self.req.headers['content-type'], expected) | |
KeyError: 'content-type' | |
====================================================================== | |
ERROR: test_encode_body_unsafe_unicode_to_utf8 (__main__.AWS4Auth_EncodeBody_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 688, in test_encode_body_unsafe_unicode_to_utf8 | |
self.assertEqual(self.req.headers['content-type'], expected) | |
KeyError: 'content-type' | |
====================================================================== | |
ERROR: test_duplicate_headers (__main__.AWS4Auth_GetCanonicalHeaders_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 846, in test_duplicate_headers | |
result = AWS4Auth.get_canonical_headers(req, include=include) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 555, in get_canonical_headers | |
headers[b'host'] = urlparse(req.url).netloc.split(':')[0] | |
AttributeError: 'SimpleNamespace' object has no attribute 'url' | |
====================================================================== | |
ERROR: test_amz1 (__main__.AWS4Auth_GetCanonicalRequest_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 890, in test_amz1 | |
result = AWS4Auth.get_canonical_headers(req, include=include_hdrs) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 564, in get_canonical_headers | |
val = makebytes(cls.amz_norm_whitespace(val).strip()) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 680, in amz_norm_whitespace | |
return ' '.join(shlex.split(text, posix=False)) | |
File "/usr/local/lib/python3.5/shlex.py", line 273, in split | |
return list(lex) | |
File "/usr/local/lib/python3.5/shlex.py", line 263, in __next__ | |
token = self.get_token() | |
File "/usr/local/lib/python3.5/shlex.py", line 90, in get_token | |
raw = self.read_token() | |
File "/usr/local/lib/python3.5/shlex.py", line 118, in read_token | |
nextchar = self.instream.read(1) | |
AttributeError: 'bytes' object has no attribute 'read' | |
====================================================================== | |
ERROR: test_generate_empty_body_signature (__main__.AWS4Auth_RequestSign_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 982, in test_generate_empty_body_signature | |
sreq = auth(preq) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 360, in __call__ | |
signed_headers) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 516, in get_canonical_request | |
path = self.amz_cano_path(url.path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_generate_signature (__main__.AWS4Auth_RequestSign_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 967, in test_generate_signature | |
sreq = auth(req) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 357, in __call__ | |
result = self.get_canonical_headers(req, self.include_hdrs) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 564, in get_canonical_headers | |
val = makebytes(cls.amz_norm_whitespace(val).strip()) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 680, in amz_norm_whitespace | |
return ' '.join(shlex.split(text, posix=False)) | |
File "/usr/local/lib/python3.5/shlex.py", line 273, in split | |
return list(lex) | |
File "/usr/local/lib/python3.5/shlex.py", line 263, in __next__ | |
token = self.get_token() | |
File "/usr/local/lib/python3.5/shlex.py", line 90, in get_token | |
raw = self.read_token() | |
File "/usr/local/lib/python3.5/shlex.py", line 118, in read_token | |
nextchar = self.instream.read(1) | |
AttributeError: 'bytes' object has no attribute 'read' | |
====================================================================== | |
ERROR: test_regen_key_on_date_mismatch (__main__.AWS4Auth_RequestSign_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 1001, in test_regen_key_on_date_mismatch | |
sreq = auth(req) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 360, in __call__ | |
signed_headers) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 516, in get_canonical_request | |
path = self.amz_cano_path(url.path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
ERROR: test_sts_creds_include_security_token_header (__main__.AWS4Auth_RequestSign_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 1019, in test_sts_creds_include_security_token_header | |
sreq = auth(req) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 360, in __call__ | |
signed_headers) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 516, in get_canonical_request | |
path = self.amz_cano_path(url.path) | |
File "/app/addons-dev/requests-aws4auth/requests_aws4auth/aws4auth.py", line 611, in amz_cano_path | |
if b'?' in fixed_path: | |
TypeError: 'in <string>' requires string as left operand, not bytes | |
====================================================================== | |
FAIL: test_get_request_date__check_prefer_xamzdate (__main__.AWS4Auth_Date_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 534, in test_get_request_date__check_prefer_xamzdate | |
self.assertEqual(result, check) | |
AssertionError: None != datetime.date(1900, 4, 4) | |
====================================================================== | |
FAIL: test_get_request_date__date_and_invalid_xamzdate (__main__.AWS4Auth_Date_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 545, in test_get_request_date__date_and_invalid_xamzdate | |
self.assertEqual(result, check) | |
AssertionError: None != datetime.date(1980, 1, 5) | |
====================================================================== | |
FAIL: test_get_request_date__date_only (__main__.AWS4Auth_Date_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 514, in test_get_request_date__date_only | |
self.assertEqual(result, check, date_str) | |
AssertionError: None != datetime.date(2085, 2, 6) : Monday, 06-Feb-85 01:01:01 EST | |
====================================================================== | |
FAIL: test_get_request_date__xamzdate_only (__main__.AWS4Auth_Date_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 523, in test_get_request_date__xamzdate_only | |
self.assertEqual(result, check, date_str) | |
AssertionError: None != datetime.date(1900, 4, 4) : 19000404T010101Z | |
====================================================================== | |
FAIL: test_encode_body_unsafe_unicode_to_other_bytes (__main__.AWS4Auth_EncodeBody_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 702, in test_encode_body_unsafe_unicode_to_other_bytes | |
self.assertEqual(self.req.body, b'\x80') | |
AssertionError: b'\xe2\x82\xac' != b'\x80' | |
====================================================================== | |
FAIL: test_netloc_port (__main__.AWS4Auth_GetCanonicalHeaders_Test) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "addons-dev/requests-aws4auth/requests_aws4auth/test/requests_aws4auth_test.py", line 866, in test_netloc_port | |
self.assertEqual(cano_hdrs, expected) | |
AssertionError: b'' != 'host:amazonaws.com\n' | |
---------------------------------------------------------------------- | |
Ran 65 tests in 0.077s | |
FAILED (failures=6, errors=15, skipped=4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment