Add unit tests for "server start" command.
Change-Id: I19060419a17b8e081e8f51c08959f24b84e7e570 Implements: blueprint osc-unit-test-framework-improvement
This commit is contained in:
parent
9f38df9208
commit
cfff32aed6
@ -799,6 +799,26 @@ class TestServerResume(TestServer):
|
||||
self.run_method_with_servers('resume', 3)
|
||||
|
||||
|
||||
class TestServerStart(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerStart, self).setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.StartServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'start': None,
|
||||
}
|
||||
|
||||
def test_server_start_one_server(self):
|
||||
self.run_method_with_servers('start', 1)
|
||||
|
||||
def test_server_start_multi_servers(self):
|
||||
self.run_method_with_servers('start', 3)
|
||||
|
||||
|
||||
class TestServerSuspend(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user