Skip to content

Commit

Permalink
try againg
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Jan 23, 2025
1 parent c6f9bc7 commit 21568cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/test_kubectl_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ async def test_config_values_are_retained_after_pod_deleted_and_restarted(ops_te
]

# TODO: remove this re-assignment after checking if it works or not
cmd = ["microk8s.kubectl", "delete", "pod", "-n", ops_test.model_name, pod_name]
cmd = ["kubectl", "delete", "pod", "-n", ops_test.model_name, pod_name]

logger.info(
"Removing pod '%s' from model '%s' with cmd: %s", pod_name, ops_test.model_name, cmd
)

# retcode, stdout, stderr = await ops_test.run(*cmd)
kubectl = subprocess.run(cmd)
# assert kubectl.returncode == 0, f"kubectl failed: {(kubectl.stderr or kubectl.stdout)}"
assert kubectl.returncode == 0, "kubectl failed"
retcode, stdout, stderr = await ops_test.run(*cmd)
# kubectl = subprocess.run(cmd)
assert retcode == 0, f"kubectl failed: {(stderr or stdout)}"
# assert kubectl.returncode == 0, "kubectl failed"
# logger.debug(stdout)

await ops_test.model.wait_for_idle(
Expand Down

0 comments on commit 21568cd

Please sign in to comment.