Add unit tests for "server resume" command.
Change-Id: I8961e72b6901a52612cf62f52c02b6c2ff3dcd94 Implements: blueprint osc-unit-test-framework-improvement
This commit is contained in:
		@@ -779,6 +779,26 @@ class TestServerResize(TestServer):
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TestServerResume(TestServer):
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
        super(TestServerResume, self).setUp()
 | 
			
		||||
 | 
			
		||||
        # Get the command object to test
 | 
			
		||||
        self.cmd = server.ResumeServer(self.app, None)
 | 
			
		||||
 | 
			
		||||
        # Set methods to be tested.
 | 
			
		||||
        self.methods = {
 | 
			
		||||
            'resume': None,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    def test_server_resume_one_server(self):
 | 
			
		||||
        self.run_method_with_servers('resume', 1)
 | 
			
		||||
 | 
			
		||||
    def test_server_resume_multi_servers(self):
 | 
			
		||||
        self.run_method_with_servers('resume', 3)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TestServerSuspend(TestServer):
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user