Skip to content

Commit 618b419

Browse files
committed
Fix test_lke_cluster_model_filter. Modify lke_cluster_instance fixture
1 parent 365c7d5 commit 618b419

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/integration/filters/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def lke_cluster_instance(test_linode_client):
2525

2626
region = get_region(test_linode_client, {"Kubernetes", "Disk Encryption"})
2727

28-
node_pools = test_linode_client.lke.node_pool(node_type, 3)
28+
node_pool = test_linode_client.lke.node_pool(node_type, 3)
2929
label = get_test_label() + "_cluster"
3030

3131
cluster = test_linode_client.lke.cluster_create(
32-
region, label, node_pools, version
32+
region, label, version, [node_pool]
3333
)
3434

3535
yield cluster

test/integration/filters/model_filters_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ def test_linode_type_model_filter(test_linode_client):
6363

6464
def test_lke_cluster_model_filter(test_linode_client, lke_cluster_instance):
6565
client = test_linode_client
66+
lke_cluster = lke_cluster_instance
6667

6768
filtered_cluster = client.lke.clusters(
68-
LKECluster.label.contains(lke_cluster_instance.label)
69+
LKECluster.label.contains(lke_cluster.label)
6970
)
7071

71-
assert filtered_cluster[0].id == lke_cluster_instance.id
72+
assert filtered_cluster[0].id == lke_cluster.id
7273

7374

7475
def test_networking_firewall_model_filter(

0 commit comments

Comments
 (0)