Пример #1
0
 def __init__(self, feature_set):
     self.id = utils.make_random_org_id()
     self.root_id = utils.make_random_root_id()
     self.feature_set = feature_set
     self.master_account_id = utils.MASTER_ACCOUNT_ID
     self.master_account_email = utils.MASTER_ACCOUNT_EMAIL
     self.available_policy_types = [
         {"Type": "SERVICE_CONTROL_POLICY", "Status": "ENABLED"}
     ]
Пример #2
0
 def __init__(self, feature_set):
     self.id = utils.make_random_org_id()
     self.root_id = utils.make_random_root_id()
     self.feature_set = feature_set
     self.master_account_id = utils.MASTER_ACCOUNT_ID
     self.master_account_email = utils.MASTER_ACCOUNT_EMAIL
     self.available_policy_types = [{
         'Type': 'SERVICE_CONTROL_POLICY',
         'Status': 'ENABLED'
     }]
Пример #3
0
 def __init__(self, feature_set):
     self.id = utils.make_random_org_id()
     self.root_id = utils.make_random_root_id()
     self.feature_set = feature_set
     self.master_account_id = utils.MASTER_ACCOUNT_ID
     self.master_account_email = utils.MASTER_ACCOUNT_EMAIL
     self.available_policy_types = [
         # TODO: verify if this should be enabled by default (breaks TF tests for CloudTrail)
         {"Type": "SERVICE_CONTROL_POLICY", "Status": "ENABLED"}
     ]
Пример #4
0
 def __init__(self, feature_set):
     self.id = utils.make_random_org_id()
     self.root_id = utils.make_random_root_id()
     self.feature_set = feature_set
     self.master_account_id = utils.MASTER_ACCOUNT_ID
     self.master_account_email = utils.MASTER_ACCOUNT_EMAIL
     self.available_policy_types = [
         # This policy is available, but not applied
         # User should use enable_policy_type/disable_policy_type to do anything else
         # This field is deprecated in AWS, but we'll return it for old time's sake
         {
             "Type": "SERVICE_CONTROL_POLICY",
             "Status": "ENABLED"
         }
     ]
Пример #5
0
def test_make_random_org_id():
    org_id = utils.make_random_org_id()
    org_id.should.match(utils.ORG_ID_REGEX)