Skip to content

Commit

Permalink
first expand test for upgrade status
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandawsonuk committed Jun 26, 2020
1 parent 47380b5 commit 0501f49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/scripts/seldon_e2e_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,12 @@ def assert_model(sdep_name, namespace, initial=False, endpoint=API_AMBASSADOR):
# a Kubernetes resource. This covers cases where some resources (e.g. CRD
# versions or webhooks) may get inadvertently removed between versions.
ret = run(
f"kubectl get -n {namespace} sdep {sdep_name}",
stdout=subprocess.DEVNULL,
f"kubectl get -n {namespace} sdep {sdep_name} -o=jsonpath='{.status.state}'",
stdout=subprocess.PIPE,
shell=True,
)
assert ret.returncode == 0
assert ret.stdout != "Failed"


def to_resources_path(file_name):
Expand Down

0 comments on commit 0501f49

Please sign in to comment.