Allows to run the tests on multiple operating systems and on the infrastructure that the Cockpit team maintains. `make vm` downloads one of Cockpit's test images (override which one with TEST_OS) and installs rpms build from the local checkout of lorax. The resulting image is placed in `test/images/$TEST_OS`. TEST_OS can be set to any of Cockpit's supported images (default: fedora-30). Run `make check-vm` to run the CLI checks in the VM. The bulk of the work is done in `test/check-cli`, which uses Cockpit's `bots` library to start the VM and run the script in it. Also included is a `test/run` script, which is the entrypoint for Cockpit's test infrastructure.
		
			
				
	
	
		
			22 lines
		
	
	
		
			532 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			532 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/python3
 | |
| 
 | |
| import composertest
 | |
| 
 | |
| 
 | |
| class TestCloud(composertest.ComposerTestCase):
 | |
|     def test_aws(self):
 | |
|         self.runCliTest("/tests/cli/test_build_and_deploy_aws.sh")
 | |
| 
 | |
|     def test_azure(self):
 | |
|         self.runCliTest("/tests/cli/test_build_and_deploy_azure.sh")
 | |
| 
 | |
|     def test_openstack(self):
 | |
|         self.runCliTest("/tests/cli/test_build_and_deploy_openstack.sh")
 | |
| 
 | |
|     def test_vmware(self):
 | |
|         self.runCliTest("/tests/cli/test_build_and_deploy_vmware.sh")
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     composertest.main()
 |