Add unit tests for "server unpause" command.
Change-Id: Ia74d9875b8aa413b84d0077d22adb75b866a5701 Implements: blueprint osc-unit-test-framework-improvement
This commit is contained in:
parent
569ff3dcd8
commit
7886fdd3de
@ -759,6 +759,26 @@ class TestServerResize(TestServer):
|
||||
)
|
||||
|
||||
|
||||
class TestServerUnpause(TestServer):
|
||||
|
||||
def setUp(self):
|
||||
super(TestServerUnpause, self).setUp()
|
||||
|
||||
# Get the command object to test
|
||||
self.cmd = server.UnpauseServer(self.app, None)
|
||||
|
||||
# Set methods to be tested.
|
||||
self.methods = {
|
||||
'unpause': None,
|
||||
}
|
||||
|
||||
def test_server_unpause_one_server(self):
|
||||
self.run_method_with_servers('unpause', 1)
|
||||
|
||||
def test_server_unpause_multi_servers(self):
|
||||
self.run_method_with_servers('unpause', 3)
|
||||
|
||||
|
||||
class TestServerGeneral(testtools.TestCase):
|
||||
OLD = {
|
||||
'private': [
|
||||
|
Loading…
x
Reference in New Issue
Block a user