diff --git a/alternator-test/test_authorization.py b/alternator-test/test_authorization.py index bd57c99690..a1852dfd7d 100644 --- a/alternator-test/test_authorization.py +++ b/alternator-test/test_authorization.py @@ -55,7 +55,7 @@ def test_expired_signature(dynamodb, test_table): 'X-Amz-Target': 'DynamoDB_20120810.DescribeEndpoints', 'Authorization': 'AWS4-HMAC-SHA256 Credential=alternator/2/3/4/aws4_request SignedHeaders=x-amz-date;host Signature=123' } - response = requests.post(url, headers=headers) + response = requests.post(url, headers=headers, verify=False) assert not response.ok assert "InvalidSignatureException" in response.text and "Signature expired" in response.text @@ -69,6 +69,6 @@ def test_signature_too_futuristic(dynamodb, test_table): 'X-Amz-Target': 'DynamoDB_20120810.DescribeEndpoints', 'Authorization': 'AWS4-HMAC-SHA256 Credential=alternator/2/3/4/aws4_request SignedHeaders=x-amz-date;host Signature=123' } - response = requests.post(url, headers=headers) + response = requests.post(url, headers=headers, verify=False) assert not response.ok assert "InvalidSignatureException" in response.text and "Signature not yet current" in response.text diff --git a/alternator-test/test_health.py b/alternator-test/test_health.py index c412e2db4c..57669bf30a 100644 --- a/alternator-test/test_health.py +++ b/alternator-test/test_health.py @@ -31,5 +31,5 @@ def test_health_only_works_for_root_path(dynamodb): url = dynamodb.meta.client._endpoint.host for suffix in ['/abc', '/-', '/index.htm', '/health']: print(url + suffix) - response = requests.get(url + suffix) + response = requests.get(url + suffix, verify=False) assert response.status_code in range(400, 405)