From c3f2efe0b182293c781e8630e46bc86fa6433112 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 7 May 2024 18:31:08 -0700 Subject: [PATCH] Make workforce pool provider extra attributes tests and examples follow intended use case better. (#10616) (#18043) [upstream:5a59431a4003eb0534aa0740dd8820a7f4606766] Signed-off-by: Modular Magician --- ..._workforce_pool_provider_generated_test.go | 12 +++++----- ...source_iam_workforce_pool_provider_test.go | 22 +++++++++---------- .../iam_workforce_pool_provider.html.markdown | 12 +++++----- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_generated_test.go b/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_generated_test.go index b107a42d834..2516f32cc1c 100644 --- a/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_generated_test.go +++ b/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_generated_test.go @@ -353,8 +353,8 @@ resource "google_iam_workforce_pool_provider" "example" { "google.subject" = "assertion.sub" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" web_sso_config { response_type = "CODE" assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS" @@ -366,7 +366,7 @@ resource "google_iam_workforce_pool_provider" "example" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value { @@ -421,8 +421,8 @@ resource "google_iam_workforce_pool_provider" "example" { "google.subject" = "assertion.sub" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -434,7 +434,7 @@ resource "google_iam_workforce_pool_provider" "example" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value { diff --git a/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go b/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go index 027ca52a036..9e4fb4987be 100644 --- a/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go +++ b/google/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go @@ -443,8 +443,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" { "google.subject" = "assertion.sub" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -457,7 +457,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value { @@ -493,8 +493,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" { "google.subject" = "false" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -507,7 +507,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com/new" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0/" client_id = "new-client-id" client_secret { value { @@ -543,8 +543,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" { "google.subject" = "false" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -580,8 +580,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" { "google.subject" = "false" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -594,7 +594,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value { diff --git a/website/docs/r/iam_workforce_pool_provider.html.markdown b/website/docs/r/iam_workforce_pool_provider.html.markdown index 8b054486ecb..e99c0e25e69 100644 --- a/website/docs/r/iam_workforce_pool_provider.html.markdown +++ b/website/docs/r/iam_workforce_pool_provider.html.markdown @@ -170,8 +170,8 @@ resource "google_iam_workforce_pool_provider" "example" { "google.subject" = "assertion.sub" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" web_sso_config { response_type = "CODE" assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS" @@ -183,7 +183,7 @@ resource "google_iam_workforce_pool_provider" "example" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value { @@ -212,8 +212,8 @@ resource "google_iam_workforce_pool_provider" "example" { "google.subject" = "assertion.sub" } oidc { - issuer_uri = "https://accounts.thirdparty.com" - client_id = "client-id" + issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/" + client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery" client_secret { value { plain_text = "client-secret" @@ -225,7 +225,7 @@ resource "google_iam_workforce_pool_provider" "example" { } } extra_attributes_oauth2_client { - issuer_uri = "https://accounts.thirdparty.com" + issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0" client_id = "client-id" client_secret { value {