From 5211466816dd3a6bc0c28319af3ade71b51c323f Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Thu, 3 Nov 2022 12:17:12 +0100 Subject: [PATCH] Bring back deleted assert --- tests/modules/organization/test_plan_org_policies.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/modules/organization/test_plan_org_policies.py b/tests/modules/organization/test_plan_org_policies.py index 0986e99d4..053457ce4 100644 --- a/tests/modules/organization/test_plan_org_policies.py +++ b/tests/modules/organization/test_plan_org_policies.py @@ -117,6 +117,8 @@ def validate_policy_boolean_resources(resources): assert len(resources) == 2 policies = [r for r in resources if r['type'] == 'google_org_policy_policy'] assert len(policies) == 2 + assert all( + x['values']['parent'] == 'organizations/1234567890' for x in policies) p1 = [ r['values']['spec'][0] @@ -169,6 +171,8 @@ def validate_policy_list_resources(resources): policies = [r for r in resources if r['type'] == 'google_org_policy_policy'] assert len(policies) == 3 + assert all( + x['values']['parent'] == 'organizations/1234567890' for x in policies) p1 = [ r['values']['spec'][0]