-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap resource creation in RepositoryGroup tests
- Loading branch information
1 parent
cebf8a6
commit 54e2a4f
Showing
7 changed files
with
20 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 3 additions & 28 deletions
31
mmv1/templates/terraform/examples/gemini_repository_group_basic.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,11 @@ | ||
resource "google_gemini_repository_group" "example" { | ||
provider = google-beta | ||
location = "us-central1" | ||
coderepositoryindex = "cri-1" | ||
repository_group_id = "test-repository-group-id1" | ||
coderepositoryindex = "{{index $.Vars "cri_id"}}" | ||
repository_group_id = "{{index $.Vars "repository_group_id"}}" | ||
repositories { | ||
resource = "projects/tf-test-project/locations/us-central1/connections/${google_developer_connect_connection.github_conn.connection_id}/gitRepositoryLinks/${google_developer_connect_git_repository_link.conn.git_repository_link_id}" | ||
resource = "{{index $.Vars "repository_resource"}}" | ||
branch_pattern = "main" | ||
} | ||
labels = {"label1": "value1"} | ||
} | ||
|
||
resource "google_developer_connect_git_repository_link" "conn" { | ||
provider = google-beta | ||
git_repository_link_id = "{{index $.Vars "git_repository_link_id"}}" | ||
parent_connection = google_developer_connect_connection.github_conn.connection_id | ||
clone_uri = "https://github.com/CC-R-github-robot/tf-test.git" | ||
location = "us-central1" | ||
annotations = {} | ||
} | ||
|
||
resource "google_developer_connect_connection" "github_conn" { | ||
provider = google-beta | ||
location = "us-central1" | ||
connection_id = "{{index $.Vars "connection_id"}}" | ||
disabled = false | ||
|
||
github_config { | ||
github_app = "DEVELOPER_CONNECT" | ||
app_installation_id = 54180648 | ||
|
||
authorizer_credential { | ||
oauth_token_secret_version = "projects/502367051001/secrets/tf-test-cloudaicompanion-github-oauthtoken-c42e5c/versions/1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters