Beispiel #1
0
def test_get_configured_provider_auth():
    config = {
        "url": "https://127.0.0.2",
    }
    with patch.dict(xen.__opts__, {"providers": {"my-xen-cloud": {"xen": config}}}):
        result = xen.get_configured_provider()
        assert config == result
Beispiel #2
0
def test_get_configured_provider_bad():
    with patch.dict(xen.__opts__, {"providers": {}}):
        result = xen.get_configured_provider()
        assert not result