def process(self, resources, event=None): result = [] for r in resources: if 'id' in r: t = ResourceIdParser.get_full_type(r['id']) if t.lower() in self.allowed_types: result.append(r) return result
def test_get_full_type(self): self.assertEqual(ResourceIdParser.get_full_type(RESOURCE_ID), "Microsoft.Compute/virtualMachines")