Fix order of ui_driver parameters

Fix parameters order of context manager in nagios UI tests.

Change-Id: I1f7d74c66c372bad16b1bb9efd748b2f6ae70e48
This commit is contained in:
Rodion Promyshlennikov 2016-09-15 18:30:03 +03:00
parent 038cfb9cd8
commit a21123a590
2 changed files with 9 additions and 9 deletions

View File

@ -107,7 +107,7 @@ class InfraAlertingPluginApi(base_test.PluginApi):
def check_node_in_nagios(self, changed_node, state):
with self.ui_tester.ui_driver(
self.get_authenticated_nagios_url(),
"//frame[2]", "Nagios Core") as driver:
"Nagios Core", "//frame[2]") as driver:
driver = self.open_nagios_page(
driver, 'Hosts', "//table[@class='headertable']")
asserts.assert_equal(state, self.node_is_present(

View File

@ -300,8 +300,8 @@ class TestFunctionalToolchain(api.ToolchainApi):
lma_devops_node)
url = self.LMA_INFRASTRUCTURE_ALERTING.get_authenticated_nagios_url()
with self.ui_tester.ui_driver(url, "//frame[2]",
"Nagios Core") as driver:
with self.ui_tester.ui_driver(url, "Nagios Core",
"//frame[2]") as driver:
self.LMA_INFRASTRUCTURE_ALERTING.open_nagios_page(
driver, 'Services', "//table[@class='headertable']")
controller_node = (
@ -385,8 +385,8 @@ class TestFunctionalToolchain(api.ToolchainApi):
lma_devops_node)
url = self.LMA_INFRASTRUCTURE_ALERTING.get_authenticated_nagios_url()
with self.ui_tester.ui_driver(url, "//frame[2]",
"Nagios Core") as driver:
with self.ui_tester.ui_driver(url, "Nagios Core",
"//frame[2]") as driver:
self.LMA_INFRASTRUCTURE_ALERTING.open_nagios_page(
driver, 'Services', "//table[@class='headertable']")
controller_nodes = (
@ -483,8 +483,8 @@ class TestFunctionalToolchain(api.ToolchainApi):
self.helpers.cluster_id, ['controller'])
url = self.LMA_INFRASTRUCTURE_ALERTING.get_authenticated_nagios_url()
with self.ui_tester.ui_driver(url, "//frame[2]",
"Nagios Core") as driver:
with self.ui_tester.ui_driver(url, "Nagios Core",
"//frame[2]") as driver:
self.LMA_INFRASTRUCTURE_ALERTING.open_nagios_page(
driver, 'Services', "//table[@class='headertable']")
self.change_verify_node_service_state(
@ -560,8 +560,8 @@ class TestFunctionalToolchain(api.ToolchainApi):
self.helpers.cluster_id, ['controller'])
url = self.LMA_INFRASTRUCTURE_ALERTING.get_authenticated_nagios_url()
with self.ui_tester.ui_driver(url, "//frame[2]",
"Nagios Core") as driver:
with self.ui_tester.ui_driver(url, "Nagios Core",
"//frame[2]") as driver:
self.LMA_INFRASTRUCTURE_ALERTING.open_nagios_page(
driver, 'Services', "//table[@class='headertable']")
self.change_verify_node_service_state(