diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2017-09-26 11:42:09 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2017-09-26 11:42:09 +0800 |
commit | c243ba39ed2b4ca2723e62d37d1476fbcb7759b7 (patch) | |
tree | 29d0bd8fc4be532c40284f17cc0a91982aa99ded /tests | |
parent | 4560b872fdfdc0800fd571efc35a0036ab2241b3 (diff) |
Fix unittest
Change-Id: I82086b85da488e183589af7b4adbd6c80835c039
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_deploy.py | 2 | ||||
-rw-r--r-- | tests/unit/test_environment.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/test_deploy.py b/tests/unit/test_deploy.py index 27cb5f5f..0c4ebb6f 100644 --- a/tests/unit/test_deploy.py +++ b/tests/unit/test_deploy.py @@ -121,7 +121,7 @@ def test_create_DaisyDeployment_instance(mock_err_exit, mock_deploy_schema_valid assert (deploy.adapter == 'libvirt' and deploy.pxe_bridge == 'daisy1') else: - assert (deploy.adapter == 'ipmi' and deploy.pxe_bridge == 'br7') + assert (deploy.adapter == 'ipmi' and deploy.pxe_bridge == 'pxebr') expect_dasiy_info['image'] = os.path.join(kwargs['storage_dir'], expect_dasiy_info['image']) assert deploy.daisy_server_info == expect_dasiy_info diff --git a/tests/unit/test_environment.py b/tests/unit/test_environment.py index 5545fc58..250a80a9 100644 --- a/tests/unit/test_environment.py +++ b/tests/unit/test_environment.py @@ -148,7 +148,8 @@ def test_create_daisy_server_vm_BareMetalEnvironment(mocker, tmpdir): BareMetalEnvironmentInst.create_daisy_server_vm() environment.create_vm.assert_called_once_with(BMDEPLOY_DAISY_SERVER_VM, name=daisy_server['name'], - disks=[daisy_server['image']]) + disks=[daisy_server['image']], + physical_bridge=pxe_bridge) tmpdir.remove() |