diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f6fc98e..195fd98a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -113,7 +113,7 @@ Sometimes you will want to debug certain situations, and having the models torn Running the integration tests with extra arguments can be accomplished with ```shell -tox run -e integration-tests -- --positional --arguments +tox run -e integration -- --positional --arguments ``` #### COS Integration diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 16410605..66eea7b2 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -244,11 +244,11 @@ async def kubernetes_cluster(request: pytest.FixtureRequest, ops_test: OpsTest): async def cluster_kubeconfig(ops_test: OpsTest, kubernetes_cluster: Model): """Fixture to pull the kubeconfig out of the kubernetes cluster""" k8s = kubernetes_cluster.applications["k8s"].units[0] - action = await k8s.run_action("get-kubeconfig") + action = await k8s.run("k8s config") result = await action.wait() assert result.results["return-code"] == 0, "Failed to get kubeconfig with kubectl" kubeconfig_path = ops_test.tmp_path / "kubeconfig" - kubeconfig_path.write_text(result.results["kubeconfig"]) + kubeconfig_path.write_text(result.results["stdout"]) yield kubeconfig_path