def METHOD_NAME(s3_state_builder, int_params, existing_repo):
    state = s3_state_builder(
        {
            "ls": [
                "/a_repo",
            ],
            "get": {
                "a_repo": {
                    "name": "a_repo",
                    "repository": A_REPO,
                    "ref": A_REPO_SHA,
                    "projectPath": "tf",
                    "delete": False,
                    "account": {
                        "name": "foo",
                        "uid": AWS_UID,
                        "automationToken": {
                            "path": AUTOMATION_TOKEN_PATH,
                            "field": "all",
                            "version": 1,
                            "format": None,
                        },
                    },
                }
            },
        }
    )
    integration = TerraformRepoIntegration(params=int_params)
    existing_state = integration.get_existing_state(state=state)
    assert existing_state == [existing_repo]