Ensure Replication Tests do not use a stale token

Fixed the replication tests to re-authenticate the common test dbaas
client in order to ensure that we do not use a stale auth_token when
running the replication tests.

Change-Id: I37a2a4b7dca056e84b48c66cbe3b8c8fb6a2f1db
Closes-bug: 1394831
This commit is contained in:
Nikhil Manchanda 2014-11-20 19:03:27 -08:00
parent 2794ca5637
commit 500613e68f
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ class CreateReplicationSlave(object):
@test
def test_create_db_on_master(self):
databases = [{'name': existing_db_on_master}]
# Ensure that the auth_token in the dbaas client is not stale
instance_info.dbaas.authenticate()
instance_info.dbaas.databases.create(instance_info.id, databases)
assert_equal(202, instance_info.dbaas.last_http_code)