summaryrefslogtreecommitdiffstats
path: root/pgaas/tests/test_plugin.py
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-11-18 13:58:18 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-18 13:58:18 +0000
commit8e573aa799c96cbe2a0404e58d67f48eea50b9db (patch)
tree5ff081ac4f59bc4651126fe64a3c1662cbe20036 /pgaas/tests/test_plugin.py
parent7e1f8a90d2fd18a5169cea04b6bb53dd9288092e (diff)
parenteee4701e82b2e8622d776f6c025ef3f429455644 (diff)
Merge "Make pgaas tests propagate test failures"
Diffstat (limited to 'pgaas/tests/test_plugin.py')
-rw-r--r--pgaas/tests/test_plugin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pgaas/tests/test_plugin.py b/pgaas/tests/test_plugin.py
index 0071499..10a9e10 100644
--- a/pgaas/tests/test_plugin.py
+++ b/pgaas/tests/test_plugin.py
@@ -178,6 +178,7 @@ def test_add_pgaas_cluster(monkeypatch):
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
@@ -192,6 +193,7 @@ def test_add_database(monkeypatch):
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
@@ -207,6 +209,7 @@ def test_bad_add_database(monkeypatch):
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
@@ -249,10 +252,11 @@ def test_update_database(monkeypatch):
# pylint: disable=protected-access
mynode.properties = mynode._properties
myctx.nodes = [mynode]
- pgaas.pgaas_plugin.update_database(ctx=myctx, args={})
+ pgaas.pgaas_plugin.update_database(refctx=myctx)
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
@@ -267,6 +271,7 @@ def test_delete_database(monkeypatch):
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()
@@ -281,5 +286,6 @@ def test_rm_pgaas_cluster(monkeypatch):
except Exception as e:
print("Error: {0}".format(e))
print("Stack: {0}".format(traceback.format_exc()))
+ raise
finally:
current_ctx.clear()