forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new tests for artifactregistry.googleapis.com/Repository (Goog…
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
mmv1/third_party/tgc/tests/data/example_artifact_registry_repository.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"name": "//artifactregistry.googleapis.com/projects/{{.Provider.project}}/locations/us-central1/repositories/my-repository", | ||
"ancestry_path": "{{.Ancestry}}/project/{{.Provider.project}}", | ||
"asset_type": "artifactregistry.googleapis.com/Repository", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/artifactregistry/v1/rest", | ||
"discovery_name": "Repository", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/{{.Provider.project}}", | ||
"data": { | ||
"description": "example docker repository", | ||
"format": "DOCKER", | ||
"mode": "STANDARD_REPOSITORY" | ||
} | ||
}, | ||
"ancestors": ["organizations/{{.OrgID}}"] | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
mmv1/third_party/tgc/tests/data/example_artifact_registry_repository.tf
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
terraform { | ||
required_providers { | ||
google = { | ||
source = "hashicorp/google-beta" | ||
version = "~> {{.Provider.version}}" | ||
} | ||
} | ||
} | ||
|
||
provider "google" { | ||
{{if .Provider.credentials }}credentials = "{{.Provider.credentials}}"{{end}} | ||
} | ||
|
||
resource "google_artifact_registry_repository" "my-repo" { | ||
location = "us-central1" | ||
repository_id = "my-repository" | ||
description = "example docker repository" | ||
format = "DOCKER" | ||
} |