Fix backup tests

This patch add an additional possibility when checking instance status
after backup - backup may be done fast so we may get response 'ACTIVE'.

Change-Id: I93efba6aa11842ee2499550ab9293b65d75448e0
Story: #2005422
Task: #30444
Signed-off-by: Kasper Hasior <k.hasior@samsung.com>
This commit is contained in:
Kasper Hasior 2019-04-10 15:09:06 +02:00 committed by Lingxian Kong
parent c247e4842e
commit 9b215e6cd7

View File

@ -15,6 +15,7 @@
from proboscis.asserts import assert_equal
from proboscis.asserts import assert_not_equal
from proboscis.asserts import assert_raises
from proboscis.asserts import assert_true
from proboscis.asserts import fail
from proboscis.decorators import time_out
from proboscis import SkipTest
@ -81,7 +82,7 @@ class CreateBackups(object):
assert_equal('NEW', result.status)
instance = instance_info.dbaas.instances.get(instance_info.id)
assert_equal('BACKUP', instance.status)
assert_true(instance.status in ['ACTIVE', 'BACKUP'])
assert_equal(instance_info.dbaas_datastore,
result.datastore['type'])
assert_equal(instance_info.dbaas_datastore_version,