コード例 #1
0
 def test_putmetrics_permissions(self):
     from c7n.actions import PutMetric
     self.assertTrue("cloudwatch:PutMetricData" in PutMetric.permissions)
     pma = PutMetric()
     self.assertTrue("cloudwatch:PutMetricData" in pma.get_permissions())
コード例 #2
0
 def test_putmetrics_permissions(self):
     from c7n.actions import PutMetric
     self.assertTrue( "cloudwatch:PutMetricData" in PutMetric.permissions)
     pma = PutMetric()
     self.assertTrue( "cloudwatch:PutMetricData" in pma.get_permissions())