Skip to content

Commit f2f60b6

Browse files
Fix Artifact Registry Repository URI test (#12668) (#20804)
[upstream:44c6e75aa823b949790b64dd06ec200c50465662] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 6216f56 commit f2f60b6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changelog/12668.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/artifactregistry/resource_artifact_registry_repository_generated_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,9 +906,10 @@ resource "google_artifact_registry_repository" "my-repo" {
906906
remote_repository_config {
907907
description = "pull-through cache of another Artifact Registry repository by URL"
908908
common_repository {
909-
uri = "https://us-central1-docker.pkg.dev//tf-test-example-upstream-repo%{random_suffix}"
909+
uri = "https://us-central1-docker.pkg.dev/${data.google_project.project.project_id}/tf-test-example-upstream-repo%{random_suffix}"
910910
}
911911
}
912+
depends_on = [google_artifact_registry_repository.upstream_repo]
912913
}
913914
`, context)
914915
}

website/docs/r/artifact_registry_repository.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,10 @@ resource "google_artifact_registry_repository" "my-repo" {
585585
remote_repository_config {
586586
description = "pull-through cache of another Artifact Registry repository by URL"
587587
common_repository {
588-
uri = "https://us-central1-docker.pkg.dev//example-upstream-repo"
588+
uri = "https://us-central1-docker.pkg.dev/${data.google_project.project.project_id}/example-upstream-repo"
589589
}
590590
}
591+
depends_on = [google_artifact_registry_repository.upstream_repo]
591592
}
592593
```
593594
<div class = "oics-button" style="float: right; margin: 0 0 -15px">

0 commit comments

Comments
 (0)