Skip to content

Commit b470b10

Browse files
committed
Wait on condition ACK.ResourceSynced on update test
1 parent 3485247 commit b470b10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/tests/test_managed_prefix_list.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def prefix_list_ipv4():
7979
@pytest.fixture(scope="module")
8080
def prefix_list_ipv6():
8181
resource_name = random_suffix_name("managed-prefix-list-ipv6", 32)
82-
82+
8383
replacements = REPLACEMENT_VALUES.copy()
8484
replacements["PREFIX_LIST_NAME_IPV6"] = resource_name
8585
replacements["TAG_KEY"] = "test-key"
@@ -197,6 +197,10 @@ def test_update_entries(self, prefix_list_ipv4, ec2_validator):
197197
assert 'prefixListID' in cr['status'], "PrefixListID should be present in status"
198198
prefix_list_id = cr['status']['prefixListID']
199199

200+
# Wait for the controller to process and sync the change
201+
assert k8s.wait_on_condition(ref, "ACK.ResourceSynced", "True", wait_periods=40), \
202+
"Resource did not sync after creation"
203+
200204
# Wait for initial creation to complete in AWS
201205
state_reached = ec2_validator.wait_managed_prefix_list_state(
202206
prefix_list_id,

0 commit comments

Comments
 (0)