-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 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
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 |
---|---|---|
|
@@ -498,6 +498,24 @@ func Test_ComputeTerraformImportForResource(t *testing.T) { | |
SupportsImport: true, | ||
}, | ||
}, | ||
{ | ||
name: "For google_tags_tag_key_iam_member.tailscale_services_tag_user", | ||
terraformResource: parser.TerraformResource{ | ||
Address: "google_tags_tag_key_iam_member.tailscale_services_tag_user", | ||
Type: "google_tags_tag_key_iam_member", | ||
AttributeValues: map[string]any{ | ||
"id": "tagKeys/123456789012345/projects/project/roles/customTailscaleRole/serviceAccount:[email protected]", | ||
"member": "serviceAccount:[email protected]", | ||
"role": "projects/project/roles/customTailscaleRole", | ||
"tag_key": "tagKeys/123456789012345", | ||
}, | ||
}, | ||
expected: TerraformImport{ | ||
ResourceAddress: "google_tags_tag_key_iam_member.tailscale_services_tag_user", | ||
ResourceID: "tagKeys/123456789012345 projects/project/roles/customTailscaleRole serviceAccount:[email protected]", | ||
SupportsImport: true, | ||
}, | ||
}, | ||
{ | ||
name: "For google_privateca_ca_pool_iam_member.pool", | ||
terraformResource: parser.TerraformResource{ | ||
|
@@ -777,6 +795,23 @@ func Test_ComputeTerraformImportForResource(t *testing.T) { | |
SupportsImport: true, | ||
}, | ||
}, | ||
{ | ||
name: "For google_secret_manager_secret.gcp_connector_secret", | ||
terraformResource: parser.TerraformResource{ | ||
Address: "google_secret_manager_secret.gcp_connector_secret", | ||
Type: "google_secret_manager_secret", | ||
AttributeValues: map[string]any{ | ||
"id": "projects/project/secrets/a-secret-key", | ||
"name": "projects/1234567890/secrets/a-secret-key", | ||
"project": "us-shared-prod", | ||
}, | ||
}, | ||
expected: TerraformImport{ | ||
ResourceAddress: "google_secret_manager_secret.gcp_connector_secret", | ||
ResourceID: "projects/1234567890/secrets/a-secret-key", | ||
SupportsImport: true, | ||
}, | ||
}, | ||
{ | ||
name: "For google_storage_bucket_iam_member", | ||
terraformResource: parser.TerraformResource{ | ||
|