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)