There was an error while loading. Please reload this page.
2 parents 906c492 + 4062d59 commit 0fa9228Copy full SHA for 0fa9228
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 TestServerUnlock(TestServer):
783
+
784
+ def setUp(self):
785
+ super(TestServerUnlock, self).setUp()
786
787
+ # Get the command object to test
788
+ self.cmd = server.UnlockServer(self.app, None)
789
790
+ # Set methods to be tested.
791
+ self.methods = {
792
+ 'unlock': None,
793
+ }
794
795
+ def test_server_unlock_one_server(self):
796
+ self.run_method_with_servers('unlock', 1)
797
798
+ def test_server_unlock_multi_servers(self):
799
+ self.run_method_with_servers('unlock', 3)
800
801
802
class TestServerUnpause(TestServer):
803
804
def setUp(self):
0 commit comments