summaryrefslogtreecommitdiff
path: root/tempest_horizon/tests/scenario/test_dashboard_basic_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tempest_horizon/tests/scenario/test_dashboard_basic_ops.py')
-rw-r--r--tempest_horizon/tests/scenario/test_dashboard_basic_ops.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tempest_horizon/tests/scenario/test_dashboard_basic_ops.py b/tempest_horizon/tests/scenario/test_dashboard_basic_ops.py
index e4a13d9..a7cd4dd 100644
--- a/tempest_horizon/tests/scenario/test_dashboard_basic_ops.py
+++ b/tempest_horizon/tests/scenario/test_dashboard_basic_ops.py
@@ -17,7 +17,7 @@ from six.moves.urllib import parse
17from six.moves.urllib import request 17from six.moves.urllib import request
18 18
19from tempest import config 19from tempest import config
20from tempest.scenario import manager 20from tempest.lib import decorators
21from tempest import test 21from tempest import test
22 22
23import ssl 23import ssl
@@ -59,7 +59,7 @@ class HorizonHTMLParser(HTMLParser.HTMLParser):
59 self.login = self._find_attr_value(attrs, 'action') 59 self.login = self._find_attr_value(attrs, 'action')
60 60
61 61
62class TestDashboardBasicOps(manager.ScenarioTest): 62class TestDashboardBasicOps(test.BaseTestCase):
63 63
64 """The test suite for dashboard basic operations 64 """The test suite for dashboard basic operations
65 65
@@ -70,6 +70,8 @@ class TestDashboardBasicOps(manager.ScenarioTest):
70 """ 70 """
71 opener = None 71 opener = None
72 72
73 credentials = ['primary']
74
73 @classmethod 75 @classmethod
74 def skip_checks(cls): 76 def skip_checks(cls):
75 super(TestDashboardBasicOps, cls).skip_checks() 77 super(TestDashboardBasicOps, cls).skip_checks()
@@ -133,9 +135,9 @@ class TestDashboardBasicOps(manager.ScenarioTest):
133 return ((sys.version_info[0] == 2 and sys.version_info[2] >= 9) or 135 return ((sys.version_info[0] == 2 and sys.version_info[2] >= 9) or
134 (sys.version_info[0] == 3)) 136 (sys.version_info[0] == 3))
135 137
136 @test.idempotent_id('4f8851b1-0e69-482b-b63b-84c6e76f6c80') 138 @decorators.idempotent_id('4f8851b1-0e69-482b-b63b-84c6e76f6c80')
137 def test_basic_scenario(self): 139 def test_basic_scenario(self):
138 creds = self.os.credentials 140 creds = self.os_primary.credentials
139 self.check_login_page() 141 self.check_login_page()
140 self.user_login(creds.username, creds.password) 142 self.user_login(creds.username, creds.password)
141 self.check_home_page() 143 self.check_home_page()