salt/tests/integration/modules/boto_iam.py
Mathias Gug 0d158cfa12 Add get_account_id function boto_iam
so that we can retrieve the AWS account id associated with the
credentials used to connect to AWS.
2015-01-22 14:24:29 -07:00

17 lines
351 B
Python

# -*- coding: utf-8 -*-
'''
Validate the boto_iam module
'''
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
import integration
class BotoIAMTest(integration.ModuleCase):
def test_get_account_id(self):
ret = self.run_function('boto_iam.get_account_id')
self.assertRegexpMatches(ret, r'^\d{12}$')