Skip to content

Commit

Permalink
Clean-up functests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Feb 20, 2025
1 parent 05d04f6 commit 2a17913
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magnum_cluster_api/tests/functional/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _test_disable_api_server_floating_ip(
def get_capi_oc():
filtered_clusters = (
objects.OpenStackCluster.objects(
self.pykube_api, namespace=self.namespace
self.pykube_api, namespace=self.namespace.name,
)
.filter(selector={"cluster.x-k8s.io/cluster-name": capi_cluster.name})
.all()
Expand Down Expand Up @@ -287,10 +287,10 @@ def test_cluster_variable_addition(self):
)

def mutate_cluster(resource):
resource.obj["spec"]["topology"]["class"] = (
resource["spec"]["topology"]["class"] = (
self.cluster_class_extra_var.get_resource().get("metadata").get("name")
)
resource.obj["spec"]["topology"]["variables"].append(
resource["spec"]["topology"]["variables"].append(
{
"name": "extraTestVariable",
"value": "test",
Expand Down

0 comments on commit 2a17913

Please sign in to comment.