Skip 'eject valid master' replication test
This test was skipped in the scenario runs however it was not disabled in the original api tests. Although it doesn't fail as often there it still happens, so the same change has been applied to it. See: https://review.openstack.org/#/c/368230 The test will also print out the bug number during each run as a reminder (using the new SkipKnownBug method). Change-Id: I931d6d72a70cc93dcd8248d9840eadf1160b9bab Related-Bug: #1622014
This commit is contained in:
parent
a2d336de2a
commit
e89dfbd51d
@ -30,6 +30,8 @@ from trove.tests.api.instances import TIMEOUT_INSTANCE_CREATE
|
|||||||
from trove.tests.api.instances import TIMEOUT_INSTANCE_DELETE
|
from trove.tests.api.instances import TIMEOUT_INSTANCE_DELETE
|
||||||
from trove.tests.api.instances import WaitForGuestInstallationToFinish
|
from trove.tests.api.instances import WaitForGuestInstallationToFinish
|
||||||
from trove.tests.config import CONFIG
|
from trove.tests.config import CONFIG
|
||||||
|
from trove.tests.scenario import runners
|
||||||
|
from trove.tests.scenario.runners.test_runners import SkipKnownBug
|
||||||
from trove.tests.util.server_connection import create_server_connection
|
from trove.tests.util.server_connection import create_server_connection
|
||||||
|
|
||||||
|
|
||||||
@ -267,9 +269,11 @@ class TestReplicationFailover(object):
|
|||||||
if CONFIG.fake_mode:
|
if CONFIG.fake_mode:
|
||||||
raise SkipTest("eject_replica_source not supported in fake mode")
|
raise SkipTest("eject_replica_source not supported in fake mode")
|
||||||
|
|
||||||
assert_raises(exceptions.BadRequest,
|
# assert_raises(exceptions.BadRequest,
|
||||||
instance_info.dbaas.instances.eject_replica_source,
|
# instance_info.dbaas.instances.eject_replica_source,
|
||||||
instance_info.id)
|
# instance_info.id)
|
||||||
|
# Uncomment once BUG_EJECT_VALID_MASTER is fixed
|
||||||
|
raise SkipKnownBug(runners.BUG_EJECT_VALID_MASTER)
|
||||||
|
|
||||||
@test(depends_on=[test_promote_master, test_eject_slave,
|
@test(depends_on=[test_promote_master, test_eject_slave,
|
||||||
test_eject_valid_master])
|
test_eject_valid_master])
|
||||||
|
Loading…
Reference in New Issue
Block a user