From 9ee032612e844f652425a2caa720c23fd4516b8d Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Wed, 11 Dec 2019 11:40:24 +0100 Subject: [PATCH] Raise exception for non-404 ApiException --- test/pytest/test_helmreleases.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/pytest/test_helmreleases.py b/test/pytest/test_helmreleases.py index 18bbf5fb2..85483b2af 100644 --- a/test/pytest/test_helmreleases.py +++ b/test/pytest/test_helmreleases.py @@ -13,17 +13,13 @@ def get_release(name, namespace, api): name=name, namespace=namespace ) - release_name = release['status']['releaseName'] release_status = release['status']['releaseStatus'] print(release_status) except ApiException as e: if e.status == 404: - release_name = None release_status = 'not found' else: - release_name = None - release_status = None - print("Exception: %s" % e) + raise print("**** NOT DEPLOYED, status: %s *****" % release_status) return(release_status) -- GitLab