示例#1
0
 def test_policy_arn_construction(self):
     self.assertEquals(createdefaultroles.get_ec2_role_policy_arn("cn-north-1"),
                       "arn:aws-cn:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role")
     self.assertEquals(createdefaultroles.get_ec2_role_policy_arn("us-gov-west-1"),
                       "arn:aws-us-gov:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role")
     self.assertEquals(createdefaultroles.get_ec2_role_policy_arn("eu-west-1"),
                       "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role")
     self.assertEquals(createdefaultroles.get_service_role_policy_arn("cn-north-1"),
                       "arn:aws-cn:iam::aws:policy/service-role/AmazonElasticMapReduceRole")
     self.assertEquals(createdefaultroles.get_service_role_policy_arn("us-gov-west-1"),
                       "arn:aws-us-gov:iam::aws:policy/service-role/AmazonElasticMapReduceRole")
     self.assertEquals(createdefaultroles.get_service_role_policy_arn("eu-west-1"),
                       "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceRole")
 def test_policy_arn_construction(self):
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("cn-north-1"),
         CN_EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("us-gov-west-1"),
         US_GOV_EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("eu-west-1"),
         EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("cn-north-1"),
         CN_EMR_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("us-gov-west-1"),
         US_GOV_EMR_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("eu-west-1"),
         EMR_ROLE_ARN)
示例#3
0
 def test_policy_arn_construction(self):
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("cn-north-1"),
         CN_EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("us-gov-west-1"),
         US_GOV_EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("eu-west-1"),
         EC2_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("cn-north-1"),
         CN_EMR_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("us-gov-west-1"),
         US_GOV_EMR_ROLE_ARN)
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("eu-west-1"),
         EMR_ROLE_ARN)
示例#4
0
 def test_policy_arn_construction(self):
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("cn-north-1"),
         "arn:aws-cn:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role"
     )
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("us-gov-west-1"),
         "arn:aws-us-gov:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role"
     )
     self.assertEquals(
         createdefaultroles.get_ec2_role_policy_arn("eu-west-1"),
         "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role"
     )
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("cn-north-1"),
         "arn:aws-cn:iam::aws:policy/service-role/AmazonElasticMapReduceRole"
     )
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("us-gov-west-1"),
         "arn:aws-us-gov:iam::aws:policy/service-role/AmazonElasticMapReduceRole"
     )
     self.assertEquals(
         createdefaultroles.get_service_role_policy_arn("eu-west-1"),
         "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceRole")