def METHOD_NAME(api_data):
    # The `api_data` test fixtures includes a catalog repo url. Clear it here to test
    # the error case.
    del api_data["cluster"]["gitRepo"]
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    with pytest.raises(click.ClickException) as err:
        _ = cluster.catalog_repo_url
    assert " > API did not return a repository URL for cluster 'c-bar'" in str(err)
    api_data["cluster"]["gitRepo"] = {
        "url": "ssh://git@example.com/catalog.git",
    }
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    assert cluster.catalog_repo_url == "ssh://git@example.com/catalog.git"