diff options
author | kyleknap <kyleknap@amazon.com> | 2014-10-08 12:41:04 -0700 |
---|---|---|
committer | kyleknap <kyleknap@amazon.com> | 2014-10-08 12:41:04 -0700 |
commit | 2517f660f8ef9012708d46da3a36ab967993d2f6 (patch) | |
tree | d90281aecdf962a2c7342938ac0a20d57fb74088 /tests/unit/auth/test_sigv4.py | |
parent | ff3d8159af3c816303785e023a4182aacb6aabf5 (diff) | |
parent | 8f500ce75fea1ba1446195b26dddbe90b52223d8 (diff) | |
download | boto-5c9600ab8d215ca9a48faa1453d5cd660b417b88.tar.gz |
Merge branch 'release-2.33.0'2.33.0
Diffstat (limited to 'tests/unit/auth/test_sigv4.py')
-rw-r--r-- | tests/unit/auth/test_sigv4.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/auth/test_sigv4.py b/tests/unit/auth/test_sigv4.py index 674ec0a7..7b4afa5c 100644 --- a/tests/unit/auth/test_sigv4.py +++ b/tests/unit/auth/test_sigv4.py @@ -251,6 +251,17 @@ class TestSigV4Handler(unittest.TestCase): auth2 = pickle.loads(pickled) self.assertEqual(auth.host, auth2.host) + def test_bytes_header(self): + auth = HmacAuthV4Handler('glacier.us-east-1.amazonaws.com', + mock.Mock(), self.provider) + request = HTTPRequest( + 'GET', 'http', 'glacier.us-east-1.amazonaws.com', 80, + 'x/./././x .html', None, {}, + {'x-amz-glacier-version': '2012-06-01', 'x-amz-hash': b'f00'}, '') + canonical = auth.canonical_request(request) + + self.assertIn('f00', canonical) + class TestS3HmacAuthV4Handler(unittest.TestCase): def setUp(self): |