def test_intall_gdeploy_exception2():
    with patch.object(ansible_module_runner.AnsibleRunner,
                      'run',
                      side_effect=ansible_module_runner.
                      AnsibleExecutableGenerationFailed):  # noqa
        with pytest.raises(FlowExecutionFailedError):
            utils.install_gdeploy()
Example #2
0
def test_intall_gdeploy_exception2():
    with patch.object(ansible_module_runner.AnsibleRunner, 'run',
                      side_effect=ansible_module_runner.AnsibleExecutableGenerationFailed):  # noqa
        with pytest.raises(FlowExecutionFailedError):
            utils.install_gdeploy()
Example #3
0
def test_install_gdeploy_exception():
    with patch.object(ansible_module_runner, 'AnsibleRunner',
                      side_effect=ansible_module_runner.AnsibleModuleNotFound):
        with pytest.raises(ansible_module_runner.AnsibleModuleNotFound):
            utils.install_gdeploy()
Example #4
0
def test_install_gdeploy():
    NS.publisher_id = "node_context"
    with pytest.raises(FlowExecutionFailedError):
        utils.install_gdeploy()
def test_install_gdeploy_exception():
    with patch.object(ansible_module_runner,
                      'AnsibleRunner',
                      side_effect=ansible_module_runner.AnsibleModuleNotFound):
        with pytest.raises(ansible_module_runner.AnsibleModuleNotFound):
            utils.install_gdeploy()
def test_install_gdeploy():
    NS.publisher_id = "node_context"
    with pytest.raises(FlowExecutionFailedError):
        utils.install_gdeploy()