Ejemplo n.º 1
0
 def test_success(self):
     resource_conf = {
         "comment": "Example",
         "logging_config": [{
             "bucket": "some-arn"
         }],
     }
     scan_result = check.scan_resource_conf(conf=resource_conf)
     self.assertEqual(CheckResult.PASSED, scan_result)
Ejemplo n.º 2
0
 def test_failure(self):
     resource_conf = {
         "comment": "Example",
     }
     scan_result = check.scan_resource_conf(conf=resource_conf)
     self.assertEqual(CheckResult.FAILED, scan_result)