def setUp(self): super(VerifyCommandsTestCase, self).setUp() self.verify = verify.VerifyCommands() self.image1 = mock.Mock() self.image1.name = "cirros-1" self.image1.id = "fake_image_id_1" self.image2 = mock.Mock() self.image2.id = "fake_image_id_2" self.image2.name = "cirros-2" self.flavor1 = mock.Mock() self.flavor2 = mock.Mock() self.flavor1.id = "fake_flavor_id_1" self.flavor2.id = "fake_flavor_id_2" self.flavor1.ram = 128 self.flavor2.ram = 64
def setUp(self): super(VerifyCommandsTestCase, self).setUp() self.verify = verify.VerifyCommands() self.fake_api = fakes.FakeAPI() self.deployment_name = "Some Deploy" self.deployment_uuid = "some-deploy-uuid" self.verifier_name = "My Verifier" self.verifier_uuid = "my-verifier-uuid" self.verifier_type = "OldSchoolTestTool" self.verifier_platform = "OpenStack" self.verification_uuid = "uuuiiiiddd" self.verifier_data = { "uuid": self.verifier_uuid, "name": self.verifier_name, "type": self.verifier_type, "platform": self.verifier_platform, "description": "The best tool in the world", "created_at": "2016-01-01T17:00:03", "updated_at": "2016-01-01T17:01:05", "status": "installed", "source": "https://example.com", "version": "master", "system_wide": False, "extra_settings": {}, "manager.repo_dir": "./verifiers/repo", "manager.venv_dir": "./verifiers/.venv" } self.verification_data = { "uuid": self.verification_uuid, "verifier_uuid": self.verifier_uuid, "deployment_uuid": self.deployment_uuid, "tags": ["bar", "foo"], "status": "success", "created_at": "2016-01-01T17:00:03", "updated_at": "2016-01-01T17:01:05", "tests_count": 2, "tests_duration": 4, "success": 1, "skipped": 0, "expected_failures": 0, "unexpected_success": 0, "failures": 1, "run_args": { "load_list": ["test_1", "test_2"], "skip_list": ["test_3"], "concurrency": "3" }, "tests": { "test_1": { "name": "test_1", "status": "success", "duration": 2, "tags": [] }, "test_2": { "name": "test_2", "status": "fail", "duration": 2, "traceback": "Some traceback" } }, "test_2": { "name": "test_2", "status": "fail", "duration": 2, "traceback": "Some traceback" } } self.results_data = { "totals": { "tests_count": 2, "tests_duration": 4, "success": 1, "skipped": 0, "expected_failures": 0, "unexpected_success": 0, "failures": 1 }, "tests": { "test_1": { "name": "test_1", "status": "success", "duration": 2, "tags": [] } }, "test_2": { "name": "test_2", "status": "fail", "duration": 4, "tags": [] } }
def setUp(self): super(VerifyCommandsTestCase, self).setUp() self.verify = verify.VerifyCommands() self.fake_api = fakes.FakeAPI()