@ -98,6 +98,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( " heatclient.common.event_utils.get_events " )
@mock.patch ( ' tripleo_common.update.add_breakpoints_cleanup_into_env ' ,
autospec = True )
@ -112,6 +113,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_create_parameters_env ,
mock_breakpoints_cleanup ,
mock_events , mock_stack_network_check ,
mock_ceph_fsid ,
mock_get_undercloud_host_entry , mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
@ -318,6 +320,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' shutil.rmtree ' , autospec = True )
@mock.patch ( ' tripleoclient.utils.get_overcloud_endpoint ' , autospec = True )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
@ -343,7 +346,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_breakpoints_cleanup ,
mock_postconfig , mock_shutil_rmtree ,
mock_invoke_plan_env_wf ,
mock_stack_network_check ,
mock_stack_network_check , mock_ceph_fsid ,
mock_get_undercloud_host_entry , mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
@ -457,6 +460,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.workflows.parameters. '
' check_deprecated_parameters ' , autospec = True )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
@ -477,7 +481,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_create_parameters_env , mock_validate_args ,
mock_breakpoints_cleanup ,
mock_postconfig , mock_deprecated_params , mock_stack_network_check ,
mock_get_undercloud_host_entry , mock_copy ) :
mock_ceph_fsid , mock_ get_undercloud_host_entry , mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
plane_management_fixture = deployment . PlanManagementFixture ( )
@ -547,6 +551,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( " heatclient.common.event_utils.get_events " , autospec = True )
@mock.patch ( ' tripleo_common.update.add_breakpoints_cleanup_into_env ' ,
autospec = True )
@ -561,6 +566,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_deploy_postconfig ,
mock_breakpoints_cleanup ,
mock_events , mock_stack_network_check ,
mock_ceph_fsid ,
mock_get_undercloud_host_entry ,
mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
@ -633,6 +639,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
@mock.patch ( ' tripleoclient.utils.copy_clouds_yaml ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _deploy_postconfig ' , autospec = True )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
@ -641,7 +648,8 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _heat_deploy ' , autospec = True )
def test_environment_dirs ( self , mock_deploy_heat ,
mock_update_parameters , mock_post_config ,
mock_stack_network_check , mock_copy ) :
mock_stack_network_check , mock_ceph_fsid ,
mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
plane_management_fixture = deployment . PlanManagementFixture ( )
@ -698,6 +706,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_copy . assert_called_once ( )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.get_stack ' , autospec = True )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _deploy_postconfig ' , autospec = True )
@ -708,7 +717,8 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
def test_environment_dirs_env ( self , mock_deploy_heat ,
mock_update_parameters , mock_post_config ,
mock_utils_get_stack ,
mock_stack_network_check ) :
mock_stack_network_check ,
mock_ceph_fsid ) :
plane_management_fixture = deployment . PlanManagementFixture ( )
self . useFixture ( plane_management_fixture )
@ -947,13 +957,15 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _heat_deploy ' , autospec = True )
@mock.patch ( ' tempfile.mkdtemp ' , autospec = True )
@mock.patch ( ' shutil.rmtree ' , autospec = True )
def test_answers_file ( self , mock_rmtree , mock_tmpdir ,
mock_heat_deploy , mock_stack_network_check ,
mock_get_undercloud_host_entry , mock_copy ) :
mock_ceph_fsid , mock_get_undercloud_host_entry ,
mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
clients = self . app . client_manager
@ -1034,6 +1046,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _create_parameters_env ' , autospec = True )
@mock.patch ( ' tripleoclient.utils.write_overcloudrc ' )
@ -1046,6 +1059,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_write_overcloudrc ,
mock_create_parameters_env ,
mock_stack_network_check ,
mock_ceph_fsid ,
mock_get_undercloud_host_entry ) :
plane_management_fixture = deployment . PlanManagementFixture ( )
self . useFixture ( plane_management_fixture )
@ -1092,6 +1106,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' _get_undercloud_host_entry ' , autospec = True ,
return_value = ' 192.168.0.1 uc.ctlplane.localhost uc.ctlplane ' )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _deploy_postconfig ' , autospec = True )
@mock.patch ( ' tripleo_common.update.add_breakpoints_cleanup_into_env ' )
@ -1113,6 +1128,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
mock_breakpoints_cleanup ,
mock_deploy_post_config ,
mock_stack_network_check ,
mock_ceph_fsid ,
mock_get_undercloud_host_entry , mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
@ -1477,6 +1493,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
@mock.patch ( ' tripleoclient.v1.overcloud_deploy.DeployOvercloud. '
' _heat_deploy ' , autospec = True )
@mock.patch ( ' tripleoclient.utils.check_stack_network_matches_env_files ' )
@mock.patch ( ' tripleoclient.utils.check_ceph_fsid_matches_env_files ' )
@mock.patch ( ' heatclient.common.template_utils.deep_update ' , autospec = True )
@mock.patch ( ' tripleoclient.workflows.plan_management. '
' create_plan_from_templates ' , autospec = True )
@ -1484,8 +1501,9 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
' list_deployment_plans ' , autospec = True )
def test_config_download_timeout (
self , mock_plan_list , mock_plan_create , mock_hc ,
mock_stack_network_check , mock_hd , mock_overcloudrc ,
mock_get_undercloud_host_entry , mock_copy ) :
mock_stack_network_check , mock_ceph_fsid , mock_hd ,
mock_overcloudrc , mock_get_undercloud_host_entry ,
mock_copy ) :
fixture = deployment . DeploymentWorkflowFixture ( )
self . useFixture ( fixture )
utils_fixture = deployment . UtilsOvercloudFixture ( )