Skip to content
Snippets Groups Projects
Commit af6c779f authored by Gavin M. Roy's avatar Gavin M. Roy
Browse files

Address issue #6, setting AWS_SHARED_CREDENTIALS_FILE to point to missing file

parent 3b6bb2c5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -564,6 +564,8 @@ class AsyncClientFetchTestCase(MockTestCase, utils.AsyncHTTPTestCase):
'/latest/meta-data/iam/security-credentials/{}?role={}&access_'
'key={}&secret_key={}&token={}'.format(
role, role, access_key, secret_key, token))
os.environ['AWS_SHARED_CREDENTIALS_FILE'] = '/tmp/{}'.format(
access_key)
with mock.patch('tornado_aws.config.INSTANCE_ENDPOINT', url):
cfg = config.Authorization('default', client=cfg_client)
with self.client_with_default_creds(
Loading
Loading
@@ -589,6 +591,8 @@ class AsyncClientFetchTestCase(MockTestCase, utils.AsyncHTTPTestCase):
'/latest/meta-data/iam/security-credentials/{}?role={}&access_'
'key={}&secret_key={}&token={}'.format(
role, role, access_key, secret_key, token))
os.environ['AWS_SHARED_CREDENTIALS_FILE'] = '/tmp/{}'.format(
access_key)
with mock.patch('tornado_aws.config.INSTANCE_ENDPOINT', url):
cfg = config.Authorization('default', client=cfg_client)
with self.client_with_default_creds(
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment