There was an error while loading. Please reload this page.
1 parent 4062d59 commit c176987Copy full SHA for c176987
1 file changed
openstackclient/tests/compute/v2/test_server.py
@@ -779,6 +779,26 @@ def test_server_resize_revert(self):
779
)
780
781
782
+class TestServerSuspend(TestServer):
783
+
784
+ def setUp(self):
785
+ super(TestServerSuspend, self).setUp()
786
787
+ # Get the command object to test
788
+ self.cmd = server.SuspendServer(self.app, None)
789
790
+ # Set methods to be tested.
791
+ self.methods = {
792
+ 'suspend': None,
793
+ }
794
795
+ def test_server_suspend_one_server(self):
796
+ self.run_method_with_servers('suspend', 1)
797
798
+ def test_server_suspend_multi_servers(self):
799
+ self.run_method_with_servers('suspend', 3)
800
801
802
class TestServerUnlock(TestServer):
803
804
def setUp(self):
0 commit comments