コード例 #1
0
def test_get_provider(db_session, providers):
    info = adm.get_provider(db_session, "provider_a")
    assert info["name"] == "provider_a"
    assert info["backend"] == "cleversafe"
    assert info["service"] == "storage"
コード例 #2
0
def get_cloud_provider(providername):
    """
    Retriev the information related to a cloud provider
    Returns a json object.
    """
    return jsonify(admin.get_provider(current_session, providername))
コード例 #3
0
def test_get_inexistent_provider(db_session, providers):
    with pytest.raises(NotFound):
        info = adm.get_provider(db_session, "provider_c")