Ejemplo n.º 1
0
 def test_install(self, mock_load_config, mock_generate_environment,
                  mock_run_instack, mock_run_orc, mock_configure_ssh_keys,
                  mock_run_command, mock_check_hostname,
                  mock_configure_logging):
     fake_env = mock.MagicMock()
     mock_generate_environment.return_value = fake_env
     undercloud.install('.')
     mock_generate_environment.assert_called_with('.')
     mock_run_instack.assert_called_with(fake_env)
     mock_run_orc.assert_called_with(fake_env)
     mock_run_command.assert_called_with(
         ['sudo', 'rm', '-f', '/tmp/svc-map-services'], None, 'rm')
Ejemplo n.º 2
0
 def test_install(self, mock_load_config, mock_generate_environment,
                  mock_run_instack, mock_run_orc, mock_configure_ssh_keys,
                  mock_run_command, mock_check_hostname,
                  mock_configure_logging):
     fake_env = mock.MagicMock()
     mock_generate_environment.return_value = fake_env
     undercloud.install('.')
     mock_generate_environment.assert_called_with('.')
     mock_run_instack.assert_called_with(fake_env)
     mock_run_orc.assert_called_with(fake_env)
     mock_run_command.assert_called_with(
         ['sudo', 'rm', '-f', '/tmp/svc-map-services'], None, 'rm')
Ejemplo n.º 3
0
 def test_install(
     self,
     mock_load_config,
     mock_generate_environment,
     mock_run_instack,
     mock_run_orc,
     mock_configure_ssh_keys,
     mock_run_command,
     mock_check_hostname,
 ):
     fake_env = mock.MagicMock()
     mock_generate_environment.return_value = fake_env
     undercloud.install(".")
     mock_generate_environment.assert_called_with(".")
     mock_run_instack.assert_called_with(fake_env)
     mock_run_orc.assert_called_with(fake_env)
     mock_run_command.assert_called_with(["sudo", "rm", "-f", "/tmp/svc-map-services"], None, "rm")