Exemplo n.º 1
0
 def test_goto_account(self):
     dashboard_page = DashboardPage(self.client)
     account_page = dashboard_page.goto_account()
     self.assertEqual(account_page.response.status_code, 200)
     match_string = "Account Information for user001"
     self.assertTrue(re.search(match_string, account_page.response.content),
                     "String not found: " + match_string)
Exemplo n.º 2
0
 def test_cluster_history(self):
     dashboard_page = DashboardPage(self.client)
     history_page = dashboard_page.goto_history('1')
     response = history_page.response
     self.assertEqual(response.status_code, 200)
     match_string = "Cluster History for"
     self.assertTrue(re.search(match_string, response.content))
Exemplo n.º 3
0
 def test_cluster_launch(self):
     dashboard_page = DashboardPage(self.client)
     launch_page = dashboard_page.launch('1')
     response = launch_page.response
     self.assertEqual(response.status_code, 200)
     match_string = "The following cluster is launching:"
     self.assertTrue(re.search(match_string, response.content))
Exemplo n.º 4
0
 def test_get_ssh_key(self):
     dashboard_page = DashboardPage(self.client)
     ssh_key = dashboard_page.get_ssh_key()
     match_string = "BEGIN RSA PRIVATE KEY"
     self.assertTrue(re.search(match_string, ssh_key))