Skip to content

Commit

Permalink
Add check for long term credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleknap committed Feb 19, 2015
1 parent 57a3240 commit 2d215bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/test_sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
class TestSTS(unittest.TestCase):
def setUp(self):
self.session = botocore.session.get_session()
credentials = self.session.get_credentials()
if credentials.token is not None:
self.skipTest('STS tests require long-term credentials')

def test_regionalized_endpoints(self):

sts = self.session.create_client('sts', region_name='ap-southeast-1')
response = sts.get_session_token()
# Do not want to be revealing any temporary keys if the assertion fails
Expand Down

0 comments on commit 2d215bc

Please sign in to comment.