vexxhost / magnum-cluster-api

Cluster API driver for OpenStack Magnum
Apache License 2.0
41 stars 17 forks source link

fix: remove mutable default args in generate_machine_deployments_for_… #340

Closed okozachenko1203 closed 3 months ago

okozachenko1203 commented 3 months ago

…cluster

fix https://github.com/vexxhost/magnum-cluster-api/issues/339

mnaser commented 3 months ago

@okozachenko1203 please create functional tests to handle this.

The best idea to test the functional tests locally is by simply creating a kind cluster, then install capi/capo (use the scripts in hack/) and look at Jenkinsfile.

okozachenko1203 commented 3 months ago

@okozachenko1203 please create functional tests to handle this.

The best idea to test the functional tests locally is by simply creating a kind cluster, then install capi/capo (use the scripts in hack/) and look at Jenkinsfile.

I think the only functional test scenario for this issue is the cluster upgrade because generate_machine_deployments_for_cluster is only called when a cluster is created and upgraded.

let me add another step in hack/run-functional-tests.sh file for this upgrade scenario

okozachenko1203 commented 3 months ago

so the functional test steps will be as following;

This will take very long time. what do you think if we just run sonobuoy smoke tests? it will speed up

mnaser commented 3 months ago

@okozachenko1203 I meant in here actually sorry

https://github.com/vexxhost/magnum-cluster-api/blob/main/magnum_cluster_api/tests/functional/test_driver.py

mnaser commented 3 months ago

Replaced by #349