Skip to content

Commit d43751f

Browse files
Merge branch 'dev' into zhiwei/add-back-missing-filters
2 parents 83d0690 + 4e590c1 commit d43751f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

test/integration/models/database/test_database.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,9 @@ def test_reset_sql_credentials(test_linode_client, test_create_sql_db):
278278
db = test_linode_client.load(MySQLDatabase, test_create_sql_db.id)
279279

280280
old_pass = str(db.credentials.password)
281-
282-
print(old_pass)
283281
db.credentials_reset()
284282

285283
time.sleep(5)
286-
287284
assert db.credentials.username == "akmadmin"
288285
assert db.credentials.password != old_pass
289286

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)