def test_get_service_prefix_data(self):
     result = get_service_prefix_data("cloud9")
     desired_output_schema = Schema({
         "service_name": "AWS Cloud9",
         "prefix": "cloud9",
         "privileges": dict,
         "resources": dict,
         "conditions": dict
     })
     valid_output = check(desired_output_schema, result)
     # print(json.dumps(result, indent=4))
     self.assertTrue(valid_output)
예제 #2
0
 def test_get_service_prefix_data(self):
     result = get_service_prefix_data("cloud9")
     desired_output_schema = Schema(
         {
             "service_name": "AWS Cloud9",
             "service_authorization_url": "https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscloud9.html",
             "prefix": "cloud9",
             "privileges": dict,
             "resources": dict,
             "conditions": dict
         }
     )
     valid_output = check(desired_output_schema, result)
     # print(json.dumps(result, indent=4))
     self.assertTrue(valid_output)