Use polling in set_console_mode tempest test

set_consolde_mode is an asynchronous operation, so we need to use
polling to avoid races between set_console_mode and get_console.

Closes-Bug: #1649344
Change-Id: Iedf3148d6324cc3d552234f46060d28603386044
This commit is contained in:
Vladyslav Drok 2016-12-13 17:02:21 +02:00
parent b7f001f441
commit a3803b48d1
1 changed files with 2 additions and 3 deletions

View File

@ -157,9 +157,8 @@ class TestNodes(base.BaseBaremetalTest):
@test.idempotent_id('80504575-9b21-4670-92d1-143b948f9437')
def test_set_console_mode(self):
self.client.set_console_mode(self.node['uuid'], True)
_, body = self.client.get_console(self.node['uuid'])
self.assertEqual(True, body['console_enabled'])
waiters.wait_for_bm_node_status(self.client, self.node['uuid'],
'console_enabled', True)
@test.idempotent_id('b02a4f38-5e8b-44b2-aed2-a69a36ecfd69')
def test_get_node_by_instance_uuid(self):