Boto actually returns a base64 encoded string of <user>:<password>

Fix the mock to do the same thing
This commit is contained in:
William Richard 2017-07-26 12:03:20 -04:00
commit aeefc8056d
No known key found for this signature in database
GPG key ID: F7F8BA4DDBE1ABED
2 changed files with 7 additions and 4 deletions

View file

@ -380,7 +380,7 @@ def test_get_authorization_token_assume_region():
list(auth_token_response.keys()).should.equal(['authorizationData', 'ResponseMetadata'])
auth_token_response['authorizationData'].should.equal([
{
'authorizationToken': 'us-east-1-auth-token',
'authorizationToken': 'QVdTOnVzLWVhc3QtMS1hdXRoLXRva2Vu',
'proxyEndpoint': 'https://012345678910.dkr.ecr.us-east-1.amazonaws.com',
'expiresAt': datetime(2015, 1, 1, tzinfo=tzlocal())
},
@ -395,12 +395,12 @@ def test_get_authorization_token_explicit_regions():
list(auth_token_response.keys()).should.equal(['authorizationData', 'ResponseMetadata'])
auth_token_response['authorizationData'].should.equal([
{
'authorizationToken': 'us-east-1-auth-token',
'authorizationToken': 'QVdTOnVzLWVhc3QtMS1hdXRoLXRva2Vu',
'proxyEndpoint': 'https://012345678910.dkr.ecr.us-east-1.amazonaws.com',
'expiresAt': datetime(2015, 1, 1, tzinfo=tzlocal()),
},
{
'authorizationToken': 'us-west-1-auth-token',
'authorizationToken': 'QVdTOnVzLXdlc3QtMS1hdXRoLXRva2Vu',
'proxyEndpoint': 'https://012345678910.dkr.ecr.us-west-1.amazonaws.com',
'expiresAt': datetime(2015, 1, 1, tzinfo=tzlocal())