def METHOD_NAME(api_data):
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    with pytest.raises(click.ClickException) as err:
        _ = cluster.config_repo_url
    assert " > API did not return a repository URL for tenant 't-foo'" in str(err)
    api_data["tenant"]["gitRepo"] = {
        "url": "ssh://git@example.com/tenant.git",
    }
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    assert cluster.config_repo_url == "ssh://git@example.com/tenant.git"