def METHOD_NAME(api_data):
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    assert not cluster.global_git_repo_revision
    set_on_tenant = api_data.copy()
    set_on_tenant["tenant"]["globalGitRepoRevision"] = "v1.2.3"
    cluster = Cluster(set_on_tenant["cluster"], set_on_tenant["tenant"])
    assert cluster.global_git_repo_revision == "v1.2.3"
    set_on_cluster = api_data.copy()
    set_on_cluster["cluster"]["globalGitRepoRevision"] = "v3.2.1"
    cluster = Cluster(set_on_cluster["cluster"], set_on_cluster["tenant"])
    assert cluster.global_git_repo_revision == "v3.2.1"
    set_on_both = api_data.copy()
    set_on_both["cluster"]["globalGitRepoRevision"] = "v2.3.1"
    set_on_both["tenant"]["globalGitRepoRevision"] = "v1.2.3"
    cluster = Cluster(set_on_both["cluster"], set_on_both["tenant"])
    assert cluster.global_git_repo_revision == "v2.3.1"