Merge "persistor test fix"

This commit is contained in:
Zuul 2017-12-11 07:47:53 +00:00 committed by Gerrit Code Review
commit 359c38cf68
3 changed files with 6 additions and 2 deletions

View File

@ -73,6 +73,9 @@ changes_interval = 5
[datasources] [datasources]
snapshots_interval = 120 snapshots_interval = 120
[persistor]
persist_events=true
EOF EOF
)" )"

View File

@ -19,7 +19,7 @@ DEVSTACK_PATH="$BASE/new"
if [ "$1" = "api" ]; then if [ "$1" = "api" ]; then
TESTS="topology|test_rca|test_alarms|test_resources|test_template" TESTS="topology|test_rca|test_alarms|test_resources|test_template"
elif [ "$1" = "datasources" ]; then elif [ "$1" = "datasources" ]; then
TESTS="datasources|test_events|notifiers|e2e" TESTS="datasources|test_events|notifiers|e2e|database"
else else
TESTS="topology" TESTS="topology"
fi fi

View File

@ -74,7 +74,8 @@ class TestEvents(BaseVitrageTempest):
# Action # Action
time_before_action = datetime.datetime.utcnow() time_before_action = datetime.datetime.utcnow()
nova_utils.create_instances(num_instances=1, 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) writen_events = self._load_db_events(time_before_action)