Skip to content

Commit d69906a

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Add unit tests for "server start" command."
2 parents 840ffa7 + cfff32a commit d69906a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

openstackclient/tests/compute/v2/test_server.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,26 @@ def test_server_resume_multi_servers(self):
799799
self.run_method_with_servers('resume', 3)
800800

801801

802+
class TestServerStart(TestServer):
803+
804+
def setUp(self):
805+
super(TestServerStart, self).setUp()
806+
807+
# Get the command object to test
808+
self.cmd = server.StartServer(self.app, None)
809+
810+
# Set methods to be tested.
811+
self.methods = {
812+
'start': None,
813+
}
814+
815+
def test_server_start_one_server(self):
816+
self.run_method_with_servers('start', 1)
817+
818+
def test_server_start_multi_servers(self):
819+
self.run_method_with_servers('start', 3)
820+
821+
802822
class TestServerSuspend(TestServer):
803823

804824
def setUp(self):

0 commit comments

Comments
 (0)