Skip to content

Commit

Permalink
Replace principal emails in IAM tests with Owned Test Account creds (#…
Browse files Browse the repository at this point in the history
…5585) (#3953)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jan 4, 2022
1 parent b051c59 commit 9833b03
Show file tree
Hide file tree
Showing 50 changed files with 93 additions and 91 deletions.
2 changes: 2 additions & 0 deletions .changelog/5585.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
2 changes: 1 addition & 1 deletion google-beta/iam_api_gateway_api_config_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ resource "google_api_gateway_api_config_iam_binding" "foo" {
api = google_api_gateway_api_config.api_cfg.api
api_config = google_api_gateway_api_config.api_cfg.api_config_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_api_gateway_api_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ resource "google_api_gateway_api_iam_binding" "foo" {
project = google_api_gateway_api.api.project
api = google_api_gateway_api.api.api_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_api_gateway_gateway_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ resource "google_api_gateway_gateway_iam_binding" "foo" {
region = google_api_gateway_gateway.api_gw.region
gateway = google_api_gateway_gateway.api_gw.gateway_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_apigee_environment_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ resource "google_apigee_environment_iam_binding" "foo" {
org_id = google_apigee_environment.apigee_environment.org_id
env_id = google_apigee_environment.apigee_environment.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ resource "google_artifact_registry_repository_iam_binding" "foo" {
location = google_artifact_registry_repository.my-repo.location
repository = google_artifact_registry_repository.my-repo.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_bigquery_table_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ resource "google_bigquery_table_iam_binding" "foo" {
dataset_id = google_bigquery_table.test.dataset_id
table_id = google_bigquery_table.test.table_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ resource "google_binary_authorization_attestor_iam_binding" "foo" {
project = google_binary_authorization_attestor.attestor.project
attestor = google_binary_authorization_attestor.attestor.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_cloud_run_service_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ resource "google_cloud_run_service_iam_binding" "foo" {
project = google_cloud_run_service.default.project
service = google_cloud_run_service.default.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_cloudfunctions_function_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ resource "google_cloudfunctions_function_iam_binding" "foo" {
region = google_cloudfunctions_function.function.region
cloud_function = google_cloudfunctions_function.function.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_compute_disk_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ resource "google_compute_disk_iam_binding" "foo" {
zone = google_compute_disk.default.zone
name = google_compute_disk.default.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_compute_image_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ resource "google_compute_image_iam_binding" "foo" {
project = google_compute_image.example.project
image = google_compute_image.example.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_compute_instance_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ resource "google_compute_instance_iam_binding" "foo" {
zone = google_compute_instance.default.zone
instance_name = google_compute_instance.default.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_compute_machine_image_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ resource "google_compute_machine_image_iam_binding" "foo" {
project = google_compute_machine_image.image.project
machine_image = google_compute_machine_image.image.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_compute_region_disk_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ resource "google_compute_region_disk_iam_binding" "foo" {
region = google_compute_region_disk.regiondisk.region
name = google_compute_region_disk.regiondisk.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_compute_subnetwork_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ resource "google_compute_subnetwork_iam_binding" "foo" {
region = google_compute_subnetwork.network-with-private-secondary-ip-ranges.region
subnetwork = google_compute_subnetwork.network-with-private-secondary-ip-ranges.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_data_catalog_entry_group_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ resource "google_data_catalog_entry_group" "basic_entry_group" {
resource "google_data_catalog_entry_group_iam_binding" "foo" {
entry_group = google_data_catalog_entry_group.basic_entry_group.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_data_catalog_policy_tag_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ resource "google_data_catalog_policy_tag_iam_binding" "foo" {
provider = google-beta
policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ resource "google_data_catalog_tag_template" "basic_tag_template" {
resource "google_data_catalog_tag_template_iam_binding" "foo" {
tag_template = google_data_catalog_tag_template.basic_tag_template.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_data_catalog_taxonomy_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ resource "google_data_catalog_taxonomy_iam_binding" "foo" {
provider = google-beta
taxonomy = google_data_catalog_taxonomy.basic_taxonomy.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_endpoints_service_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ EOF
resource "google_endpoints_service_iam_binding" "foo" {
service_name = google_endpoints_service.endpoints_service.service_name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_healthcare_consent_store_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ resource "google_healthcare_consent_store_iam_binding" "foo" {
dataset = google_healthcare_consent_store.my-consent.dataset
consent_store_id = google_healthcare_consent_store.my-consent.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_iap_app_engine_service_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ resource "google_iap_app_engine_service_iam_binding" "foo" {
app_id = "${google_app_engine_standard_app_version.version.project}"
service = "${google_app_engine_standard_app_version.version.service}"
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_app_engine_version_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ resource "google_iap_app_engine_version_iam_binding" "foo" {
service = "${google_app_engine_standard_app_version.version.service}"
version_id = "${google_app_engine_standard_app_version.version.version_id}"
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_tunnel_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ resource "google_project_service" "project_service" {
resource "google_iap_tunnel_iam_binding" "foo" {
project = google_project_service.project_service.project
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_tunnel_instance_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ resource "google_iap_tunnel_instance_iam_binding" "foo" {
zone = google_compute_instance.tunnelvm.zone
instance = google_compute_instance.tunnelvm.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_web_backend_service_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ resource "google_iap_web_backend_service_iam_binding" "foo" {
project = google_compute_backend_service.default.project
web_backend_service = google_compute_backend_service.default.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_web_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ resource "google_project_service" "project_service" {
resource "google_iap_web_iam_binding" "foo" {
project = google_project_service.project_service.project
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_web_type_app_engine_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ resource "google_iap_web_type_app_engine_iam_binding" "foo" {
project = google_app_engine_application.app.project
app_id = google_app_engine_application.app.app_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_iap_web_type_compute_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ resource "google_project_service" "project_service" {
resource "google_iap_web_type_compute_iam_binding" "foo" {
project = google_project_service.project_service.project
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
2 changes: 1 addition & 1 deletion google-beta/iam_notebooks_instance_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ resource "google_notebooks_instance_iam_binding" "foo" {
location = google_notebooks_instance.instance.location
instance_name = google_notebooks_instance.instance.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_notebooks_runtime_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ resource "google_notebooks_runtime_iam_binding" "foo" {
location = google_notebooks_runtime.runtime.location
runtime_name = google_notebooks_runtime.runtime.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_privateca_ca_pool_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ resource "google_privateca_ca_pool" "default" {
resource "google_privateca_ca_pool_iam_binding" "foo" {
ca_pool = google_privateca_ca_pool.default.id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_pubsub_topic_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ resource "google_pubsub_topic_iam_binding" "foo" {
project = google_pubsub_topic.example.project
topic = google_pubsub_topic.example.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_runtimeconfig_config_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ resource "google_runtimeconfig_config_iam_binding" "foo" {
project = google_runtimeconfig_config.config.project
config = google_runtimeconfig_config.config.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_secret_manager_secret_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ resource "google_secret_manager_secret_iam_binding" "foo" {
project = google_secret_manager_secret.secret-basic.project
secret_id = google_secret_manager_secret.secret-basic.secret_id
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ resource "google_service_directory_namespace_iam_binding" "foo" {
provider = google-beta
name = google_service_directory_namespace.example.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ resource "google_service_directory_service_iam_binding" "foo" {
provider = google-beta
name = google_service_directory_service.example.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_sourcerepo_repository_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ resource "google_sourcerepo_repository_iam_binding" "foo" {
project = google_sourcerepo_repository.my-repo.project
repository = google_sourcerepo_repository.my-repo.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/iam_storage_bucket_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ resource "google_storage_bucket" "default" {
resource "google_storage_bucket_iam_binding" "foo" {
bucket = google_storage_bucket.default.name
role = "%{role}"
members = ["user:[email protected]", "user:paddy@hashicorp.com"]
members = ["user:[email protected]", "user:gterraformtest1@gmail.com"]
}
`, context)
}
Expand Down
Loading

0 comments on commit 9833b03

Please sign in to comment.