コード例 #1
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()
コード例 #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()
コード例 #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()
コード例 #4
0
def test_install_gdeploy():
    NS.publisher_id = "node_context"
    with pytest.raises(FlowExecutionFailedError):
        utils.install_gdeploy()
コード例 #5
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()
コード例 #6
0
def test_install_gdeploy():
    NS.publisher_id = "node_context"
    with pytest.raises(FlowExecutionFailedError):
        utils.install_gdeploy()