mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 15:31:03 +00:00
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
1 changed files with 20 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue