From a6c2621998e8cd921e4f95185aedbf71b163ac9c Mon Sep 17 00:00:00 2001 From: Muhamad Najjar Date: Sun, 10 Dec 2017 14:46:43 +0000 Subject: [PATCH] persistor test fix Change-Id: Iabafbcbae23b7806559572dd5bd70a8e0c28fda5 --- devstack/gate_hook.sh | 3 +++ devstack/post_test_hook.sh | 2 +- vitrage_tempest_tests/tests/database/test_persistor.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/devstack/gate_hook.sh b/devstack/gate_hook.sh index f331dfd38..7afa5154d 100644 --- a/devstack/gate_hook.sh +++ b/devstack/gate_hook.sh @@ -73,6 +73,9 @@ changes_interval = 5 [datasources] snapshots_interval = 120 + +[persistor] +persist_events=true EOF )" diff --git a/devstack/post_test_hook.sh b/devstack/post_test_hook.sh index 6ff1511cb..d376ec66c 100644 --- a/devstack/post_test_hook.sh +++ b/devstack/post_test_hook.sh @@ -19,7 +19,7 @@ DEVSTACK_PATH="$BASE/new" if [ "$1" = "api" ]; then TESTS="topology|test_rca|test_alarms|test_resources|test_template" elif [ "$1" = "datasources" ]; then - TESTS="datasources|test_events|notifiers|e2e" + TESTS="datasources|test_events|notifiers|e2e|database" else TESTS="topology" fi diff --git a/vitrage_tempest_tests/tests/database/test_persistor.py b/vitrage_tempest_tests/tests/database/test_persistor.py index 78e95a0be..08e1fed2c 100644 --- a/vitrage_tempest_tests/tests/database/test_persistor.py +++ b/vitrage_tempest_tests/tests/database/test_persistor.py @@ -74,7 +74,8 @@ class TestEvents(BaseVitrageTempest): # Action time_before_action = datetime.datetime.utcnow() nova_utils.create_instances(num_instances=1, - name=INSTANCE_NAME) + name=INSTANCE_NAME, + set_public_network=True) writen_events = self._load_db_events(time_before_action)