Skip to content

Commit 4e590c1

Browse files
authored
add disabling acl tc (#511)
1 parent f265d41 commit 4e590c1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/integration/models/lke/test_lke.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,22 @@ def test_lke_cluster_acl(lke_cluster_with_acl):
297297
assert acl == cluster.control_plane_acl
298298
assert acl.addresses.ipv4 == ["10.0.0.2/32"]
299299

300+
301+
def test_lke_cluster_disable_acl(lke_cluster_with_acl):
302+
cluster = lke_cluster_with_acl
303+
304+
assert cluster.control_plane_acl.enabled
305+
306+
acl = cluster.control_plane_acl_update(
307+
LKEClusterControlPlaneACLOptions(
308+
enabled=False,
309+
)
310+
)
311+
312+
assert acl.enabled is False
313+
assert acl == cluster.control_plane_acl
314+
assert acl.addresses.ipv4 == ["10.0.0.2/32"]
315+
300316
cluster.control_plane_acl_delete()
301317

302318
assert not cluster.control_plane_acl.enabled

0 commit comments

Comments
 (0)