Commit 8e28c96b authored by Jérome Perrin's avatar Jérome Perrin

wip broken tests

parent 7b183636
...@@ -478,30 +478,25 @@ class TestViews(unittest.TestCase): ...@@ -478,30 +478,25 @@ class TestViews(unittest.TestCase):
"Restart</a></td></tr>" "Restart</a></td></tr>"
}) })
def test_runInstanceProfile(self): def test_runInstanceProfile(self):
self.assertEqual(self.client.get('/runInstanceProfile').status_code, 200) self.assertEqual(self.client.get('/runInstanceProfile').status_code, 200)
self.assertEqual(self.client.post('/runInstanceProfile').status_code, 200) self.assertEqual(self.client.post('/runInstanceProfile').status_code, 200)
def test_removeInstance(self): def test_removeInstance(self):
self.assertEqual(self.client.get('/removeInstance').status_code, 200) self.assertEqual(self.client.get('/removeInstance').status_code, 200)
def test_viewLog(self): def test_viewLog(self):
self.assertEqual(self.client.get('/viewLog').status_code, 200) self.assertEqual(self.client.get('/viewLog').status_code, 200)
def test_getFileLog(self): def test_getFileLog(self):
self.assertEqual(self.client.post('/getFileLog').status_code, 200) self.assertEqual(self.client.post('/getFileLog').status_code, 200)
def test_stopAllPartition(self): def test_stopAllPartition(self):
self.assertEqual(self.client.post('/stopAllPartition').status_code, 302) self.assertEqual(self.client.post('/stopAllPartition').status_code, 302)
def test_tailProcess(self):
self.assertEqual(
self.client.post('/tailProcess/name/slappart1:service').status_code,
200)
# TODO: test other important views
def test_tailProcess(self):
self.assertEqual(
self.client.post('/tailProcess/name/slappart1:service').status_code,
200)
if __name__ == '__main__': # TODO: test other important views
random.seed()
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment