Skip to content

Commit

Permalink
Update e2e test setup script to delete namespace to stop flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Dec 14, 2018
1 parent f234561 commit 6518647
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/scripts/k8s_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def setup_finalizer_helm(request):
def fin():
run("helm delete seldon-core --purge", shell=True)
run("helm delete seldon-core-crd --purge", shell=True)
run("kubectl delete namespace seldon", shell=True)
run("kubectl delete namespace test1", shell=True)
request.addfinalizer(fin)

def setup_finalizer_ksonnet(request):
Expand All @@ -43,6 +45,8 @@ def fin():
wait_for_shutdown("seldon-core-seldon-apiserver")
wait_for_shutdown("seldon-core-ambassador")
run('rm -rf my-ml-deployment', shell=True)
run("kubectl delete namespace seldon", shell=True)
run("kubectl delete namespace test1", shell=True)
request.addfinalizer(fin)

def create_seldon_single_namespace_helm(request):
Expand Down

0 comments on commit 6518647

Please sign in to comment.