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"
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))
def test_get_inexistent_provider(db_session, providers): with pytest.raises(NotFound): info = adm.get_provider(db_session, "provider_c")