Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase hosting channel #6791

Merged

Conversation

rainshen49
Copy link
Contributor

Add resource google_firebase_hosting_channel

If this PR is for Terraform, I acknowledge that I have:

Release Note Template for Downstream PRs (will be copied)

`google_firebase_hosting_channel`

@rainshen49
Copy link
Contributor Author

This PR is blocked on #6598, putting in draft state for now

@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I've detected that you're a community contributor. @slevenick, a repository maintainer, has been assigned to assist you and help review your changes.

❓ First time contributing? Click here for more details

Your assigned reviewer will help review your code by:

  • Ensuring it's backwards compatible, covers common error cases, etc.
  • Summarizing the change into a user-facing changelog note.
  • Passes tests, either our "VCR" suite, a set of presubmit tests, or with manual test runs.

You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails.

If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox.


Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking this as changes requested to remove from my review queue.

When you're ready for review please re-request review & unmark as draft, thanks!

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 3 files changed, 286 insertions(+))
Terraform Beta: Diff ( 11 files changed, 1654 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2221
Passed tests 1977
Skipped tests: 239
Failed tests: 5

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaseHostingSite_firebasehostingSiteUpdate|TestAccFirebaseHostingSite_firebasehostingSiteFullExample|TestAccFirebaseHostingSite_firebasehostingSiteBasicExample|TestAccFirebaseHostingChannel_firebasehostingChannelFullExample|TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaseHostingSite_firebasehostingSiteUpdate[Debug log]
TestAccFirebaseHostingSite_firebasehostingSiteFullExample[Debug log]
TestAccFirebaseHostingSite_firebasehostingSiteBasicExample[Debug log]
TestAccFirebaseHostingChannel_firebasehostingChannelFullExample[Debug log]
TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample[Debug log]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 156 insertions(+))
Terraform Beta: Diff ( 5 files changed, 851 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 156 insertions(+))
Terraform Beta: Diff ( 5 files changed, 851 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2221
Passed tests 1982
Skipped tests: 239
Failed tests: 0

All tests passed in REPLAYING mode
View the build log

@rainshen49 rainshen49 marked this pull request as ready for review November 7, 2022 20:56
name: 'Channel'
min_version: beta
base_url: projects/{{project}}/sites/{{site_id}}/channels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base url probably shouldn't use project if it isn't used during create or any actual calls

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried omitting the {{project}} field. However, this seems to mean I can no longer use the project field in the terraform config, and therefore can't specify a billing project used for the API call. Is there another way to specify the project to bill?
FWIW, one of the valid import formats is 'projects/{{project}}/sites/{{site_id}}/channels/{{channel_id}}' (see terraform.yaml).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should target using a field called billing_project for this instead. See a similar field here https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_asset_organization_feed#billing_project

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing for me locally:

  1. Create & Get is fine
  2. On import, the X-Goog-User-Project header is gone.

I notice the cloud asset organization example that they have to manually persist the UserProjectOverride https://github.com/rainshen49/magic-modules/blob/ed78e09792d39523a6e6f188849f7e038e3a424d/mmv1/templates/terraform/post_create/cloud_asset_feed.go.erb#L2 and https://github.com/rainshen49/magic-modules/blob/ed78e09792d39523a6e6f188849f7e038e3a424d/mmv1/templates/terraform/pre_create/cloud_asset_feed.go.erb#L4
This looks like a bug in the generator?

See trace
==> Checking that code complies with gofmt requirements...
go vet
go generate  ./...
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google-beta -v -run=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google-beta/version.ProviderVersion=acc"
=== RUN   TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
=== PAUSE TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
=== CONT  TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
2022-11-09T10:07:31.138-0500 [DEBUG] sdk.helper_resource: Starting TestCase: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
2022-11-09T10:07:31.138-0500 [DEBUG] sdk.helper_resource: Calling TestCase PreCheck: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
2022-11-09T10:07:31.138-0500 [DEBUG] sdk.helper_resource: Called TestCase PreCheck: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample
2022-11-09T10:07:31.139-0500 [DEBUG] sdk.helper_resource: Found Terraform CLI: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform
2022-11-09T10:07:32.528-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.528-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.528-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.529-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.601-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:32.601-0500 [DEBUG] sdk.helper_resource: Starting TestSteps: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:32.601-0500 [DEBUG] sdk.helper_resource: Starting TestStep: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:32.602-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.602-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.602-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:32.602-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022/11/09 10:07:32 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:32 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:32 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:32 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:32 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:33 [INFO] Terraform is using this identity: lingkai@google.com
2022-11-09T10:07:33.302-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:33.302-0500 [DEBUG] sdk.helper_resource: Running Terraform CLI plan and apply: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:33.302-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.302-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.302-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.303-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.564-0500 [WARN]  sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=90c75f32-879a-503b-39e0-deadee64ae76 tf_rpc=Configure
2022/11/09 10:07:33 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:33 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:33 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:33 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:33 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:33 [INFO] Terraform is using this identity: lingkai@google.com
2022-11-09T10:07:33.764-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:33.764-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.764-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.764-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.765-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.872-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:33.872-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.872-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.872-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:33.873-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:34.071-0500 [WARN]  sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=ac5a6346-96aa-4a94-324b-1ee69b7c6139 tf_rpc=Configure
2022/11/09 10:07:34 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:34 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:34 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:34 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:34 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:34 [INFO] Terraform is using this identity: lingkai@google.com
2022/11/09 10:07:34 [DEBUG] Creating new Site: map[string]interface {}{}
2022/11/09 10:07:34 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:34 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:34 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:34 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
POST /v1beta1/projects/lingkai-tf-creator/sites?alt=json&siteId=tf-test-site-with-channelpgtkcrskm4 HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Length: 3
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip

{}


2022/11/09 10:07:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:35 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4",
"defaultUrl": "https://tf-test-site-with-channelpgtkcrskm4.web.app",
"type": "USER_SITE"
}


2022/11/09 10:07:35 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:35 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:35 [DEBUG] Finished creating Site "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4": map[string]interface {}{"defaultUrl":"https://tf-test-site-with-channelpgtkcrskm4.web.app", "name":"projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4", "type":"USER_SITE"}
2022/11/09 10:07:35 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:35 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:35 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:35 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4",
"defaultUrl": "https://tf-test-site-with-channelpgtkcrskm4.web.app",
"type": "USER_SITE"
}


2022/11/09 10:07:35 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:35 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:35 [DEBUG] Creating new Channel: map[string]interface {}{}
2022/11/09 10:07:35 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:35 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:35 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
POST /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels?alt=json&channelId=tf-test-channel-basicpgtkcrskm4 HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Length: 3
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip

{}


2022/11/09 10:07:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:36 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4",
"url": "https://tf-test-site-with-channelpgtkcrskm4--tf-test-channel-b-rc2x3rqi.web.app",
"createTime": "2022-11-09T15:07:36.094311307Z",
"updateTime": "2022-11-09T15:07:36.094311307Z",
"retainedReleaseCount": 10
}


2022/11/09 10:07:35 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:35 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:35 [DEBUG] Finished creating Channel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": map[string]interface {}{"createTime":"2022-11-09T15:07:36.094311307Z", "name":"sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4", "retainedReleaseCount":10, "updateTime":"2022-11-09T15:07:36.094311307Z", "url":"https://tf-test-site-with-channelpgtkcrskm4--tf-test-channel-b-rc2x3rqi.web.app"}
2022/11/09 10:07:35 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:35 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:35 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:36 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:36 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4",
"url": "https://tf-test-site-with-channelpgtkcrskm4--tf-test-channel-b-rc2x3rqi.web.app",
"createTime": "2022-11-09T15:07:36.094311307Z",
"updateTime": "2022-11-09T15:07:36.094311307Z",
"retainedReleaseCount": 10
}


2022/11/09 10:07:36 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:36 [DEBUG] Retry Transport: Returning after 1 attempts
2022-11-09T10:07:36.093-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:36.094-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.094-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.094-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.094-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.213-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:36.214-0500 [DEBUG] sdk.helper_resource: Running Terraform CLI plan to check for perpetual differences: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:36.214-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.214-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.214-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.214-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.493-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=631d78db-7882-17d5-922f-3d2903e9358f tf_rpc=Configure
2022/11/09 10:07:36 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:36 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:36 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:36 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:36 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:36 [INFO] Terraform is using this identity: lingkai@google.com
2022-11-09T10:07:36.684-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:36.684-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.684-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.684-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.685-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.795-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:36.795-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.795-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.795-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:36.796-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:37.070-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=4d5a49ef-be75-7dae-8eb1-59b42b2757b5 tf_rpc=Configure
2022/11/09 10:07:37 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:37 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:37 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:37 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:37 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:37 [INFO] Terraform is using this identity: lingkai@google.com
2022/11/09 10:07:37 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:37 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:37 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:37 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:37 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:37 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4",
"defaultUrl": "https://tf-test-site-with-channelpgtkcrskm4.web.app",
"type": "USER_SITE"
}


2022/11/09 10:07:37 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:37 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:37 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:37 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:37 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:37 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:37 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:37 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"name": "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4",
"url": "https://tf-test-site-with-channelpgtkcrskm4--tf-test-channel-b-rc2x3rqi.web.app",
"createTime": "2022-11-09T15:07:36.094311307Z",
"updateTime": "2022-11-09T15:07:36.094311307Z",
"retainedReleaseCount": 10
}


2022/11/09 10:07:37 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:37 [DEBUG] Retry Transport: Returning after 1 attempts
2022-11-09T10:07:37.817-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:37.818-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:37.818-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:37.818-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:37.818-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.136-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=b63d9026-47a2-09cd-b8cf-d48860221f4c tf_rpc=Configure
2022/11/09 10:07:38 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:38 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:38 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:38 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:38 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:38 [INFO] Terraform is using this identity: lingkai@google.com
2022-11-09T10:07:38.330-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.330-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.330-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.330-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.331-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.435-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Finished TestStep: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=1 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Starting TestStep: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.436-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.534-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.580-0500 [DEBUG] sdk.helper_resource: Running Terraform CLI init and import: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.580-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.580-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.580-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.581-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.614-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:38.615-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.615-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.615-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.615-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:38.807-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=f2577c2c-bdd9-0e52-f414-13793b957cb6 tf_rpc=Configure
2022/11/09 10:07:38 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:38 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:38 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:38 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:38 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:39 [INFO] Terraform is using this identity: lingkai@google.com
2022/11/09 10:07:39 [DEBUG] matching ID sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4 to regex sites/(?P<site_id>[^/]+)/channels/(?P<channel_id>[^/]+).
2022/11/09 10:07:39 [DEBUG] importing site_id = tf-test-site-with-channelpgtkcrskm4
2022/11/09 10:07:39 [DEBUG] importing channel_id = tf-test-channel-basicpgtkcrskm4
2022/11/09 10:07:39 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:39 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:39 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:39 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
Accept-Encoding: gzip


2022/11/09 10:07:39 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 403 Forbidden
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:39 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 403,
"message": "Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/764086051850",
"service": "firebasehosting.googleapis.com"
}
}
]
}
}


2022/11/09 10:07:39 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 403 with body: HTTP/2.0 403 Forbidden
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:39 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 403,
"message": "Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/764086051850",
"service": "firebasehosting.googleapis.com"
}
}
]
}
}
2022/11/09 10:07:39 [DEBUG] Retry Transport: Returning after 1 attempts
2022-11-09T10:07:39.318-0500 [ERROR] sdk.proto: Response contains error diagnostic: tf_proto_version=5.2 tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=f0411ce6-c01d-70db-fb83-6be26c167b76 tf_resource_type=google_firebase_hosting_channel tf_rpc=ReadResource diagnostic_detail="" diagnostic_severity=ERROR
diagnostic_summary=
| Error when reading or editing FirebaseHostingChannel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.
| Details:
| [
| {
| "@type": "type.googleapis.com/google.rpc.ErrorInfo",
| "domain": "googleapis.com",
| "metadata": {
| "consumer": "projects/764086051850",
| "service": "firebasehosting.googleapis.com"
| },
| "reason": "SERVICE_DISABLED"
| }
| ]

2022-11-09T10:07:39.323-0500 [WARN] sdk.helper_resource: Error running Terraform CLI command: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
error=
| exit status 1
|
| Error: Error when reading or editing FirebaseHostingChannel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.
| Details:
| [
| {
| "@type": "type.googleapis.com/google.rpc.ErrorInfo",
| "domain": "googleapis.com",
| "metadata": {
| "consumer": "projects/764086051850",
| "service": "firebasehosting.googleapis.com"
| },
| "reason": "SERVICE_DISABLED"
| }
| ]
|
|

2022-11-09T10:07:39.323-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:39.325-0500 [ERROR] sdk.helper_resource: Error running import: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
error=
| exit status 1
|
| Error: Error when reading or editing FirebaseHostingChannel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.
| Details:
| [
| {
| "@type": "type.googleapis.com/google.rpc.ErrorInfo",
| "domain": "googleapis.com",
| "metadata": {
| "consumer": "projects/764086051850",
| "service": "firebasehosting.googleapis.com"
| },
| "reason": "SERVICE_DISABLED"
| }
| ]
|
|

provider_test.go:315: Step 2/2 error running import: exit status 1
    
    Error: Error when reading or editing FirebaseHostingChannel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.
    Details:
    [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "domain": "googleapis.com",
        "metadata": {
          "consumer": "projects/764086051850",
          "service": "firebasehosting.googleapis.com"
        },
        "reason": "SERVICE_DISABLED"
      }
    ]

2022-11-09T10:07:39.325-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.325-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.325-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.325-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.436-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:39.437-0500 [DEBUG] sdk.helper_resource: Creating sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.437-0500 [DEBUG] sdk.helper_resource: Created sdkv2 provider instance: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.437-0500 [DEBUG] sdk.helper_resource: Starting sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.437-0500 [DEBUG] sdk.helper_resource: Started sdkv2 provider instance server: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349 tf_provider_addr=registry.terraform.io/hashicorp/google-beta
2022-11-09T10:07:39.691-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=9d6ef1d7-783e-23a5-8c70-d07bc5307982 tf_rpc=Configure
2022/11/09 10:07:39 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:39 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:39 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:39 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:39 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:39 [INFO] Terraform is using this identity: lingkai@google.com
2022-11-09T10:07:39.973-0500 [WARN] sdk.helper_schema: Previously configured provider being re-configured. This can cause issues in concurrent testing if the configurations are not equal.: tf_provider_addr=registry.terraform.io/hashicorp/google-beta tf_req_id=46157d2b-d892-71aa-250b-e00818fb52ab tf_rpc=Configure
2022/11/09 10:07:39 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:39 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:39 [INFO] Authenticating using DefaultClient...
2022/11/09 10:07:39 [INFO] -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]
2022/11/09 10:07:39 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:40 [INFO] Terraform is using this identity: lingkai@google.com
2022/11/09 10:07:40 [DEBUG] Deleting Channel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4"
2022/11/09 10:07:40 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:40 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:40 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:40 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
DELETE /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:40 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:40 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{}


2022/11/09 10:07:40 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:40 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:40 [DEBUG] Finished deleting Channel "sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4": map[string]interface {}{}
2022/11/09 10:07:40 [DEBUG] Deleting Site "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4"
2022/11/09 10:07:40 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:40 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:40 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:40 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
DELETE /v1beta1/projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
X-Goog-User-Project: lingkai-tf-creator
Accept-Encoding: gzip


2022/11/09 10:07:41 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:41 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{}


2022/11/09 10:07:41 [DEBUG] Retry Transport: Stopping retries, last request was successful
2022/11/09 10:07:41 [DEBUG] Retry Transport: Returning after 1 attempts
2022/11/09 10:07:41 [DEBUG] Finished deleting Site "projects/lingkai-tf-creator/sites/tf-test-site-with-channelpgtkcrskm4": map[string]interface {}{}
2022-11-09T10:07:41.165-0500 [DEBUG] sdk.helper_resource: Stopping providers: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022-11-09T10:07:41.166-0500 [DEBUG] sdk.helper_resource: Calling TestCase CheckDestroy: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
2022/11/09 10:07:41 [DEBUG] Waiting for state to become: [success]
2022/11/09 10:07:41 [DEBUG] Retry Transport: starting RoundTrip retry loop
2022/11/09 10:07:41 [DEBUG] Retry Transport: request attempt 0
2022/11/09 10:07:41 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1beta1/sites/tf-test-site-with-channelpgtkcrskm4/channels/tf-test-channel-basicpgtkcrskm4?alt=json HTTP/1.1
Host: firebasehosting.googleapis.com
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Type: application/json
Accept-Encoding: gzip


2022/11/09 10:07:41 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 403 Forbidden
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:41 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 403,
"message": "Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/764086051850",
"service": "firebasehosting.googleapis.com"
}
}
]
}
}


2022/11/09 10:07:41 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 403 with body: HTTP/2.0 403 Forbidden
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Wed, 09 Nov 2022 15:07:41 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"error": {
"code": 403,
"message": "Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the firebasehosting.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/764086051850",
"service": "firebasehosting.googleapis.com"
}
}
]
}
}
2022/11/09 10:07:41 [DEBUG] Retry Transport: Returning after 1 attempts
2022-11-09T10:07:41.220-0500 [DEBUG] sdk.helper_resource: Called TestCase CheckDestroy: test_name=TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample test_step_number=2 test_terraform_path=/usr/local/bin/terraform test_working_directory=/var/folders/xm/1zhf8gcs09s90pdtqs350skh00r_5v/T/plugintest672185349
--- FAIL: TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample (10.09s)
FAIL
FAIL github.com/hashicorp/terraform-provider-google-beta/google-beta 11.053s
FAIL

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, on import we wouldn't have access to the value set in the config.

Do we need to have the billing project set to be able to query the resource?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a commit to use the billing_project field so we can see the error here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I found that the import action uses the GOOGLE_BILLING_PROJECT environment variable instead of the one specified in the terraform config. After setting it to the same project, it worked! I think project works the same way, but just that I always have GOOGLE_PROJECT env variable set, thus the discrepancy in local test behavior.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the import action only work when the environment variable is set? We could do something similar to the cloudasset resources that use a custom import to only set the name to the import ID: https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/templates/terraform/custom_import/cloud_asset_feed.go.erb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it only works when the environment variable is set. I've tried only setting the name like cloud_asset_feed.go.erb but failed with missing site_id and channel_id, so I think at least the generated import code was correct there.

I believe we should use the environment variable GOOGLE_BILLING_PROJECT because:

  1. Documentation says so
  2. The integration tests passed, meaning the environment variable is set there.
  3. project actually behaves the same way during import, in particular, the value is supplied form environment variable https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/utils/import.go#L80

Alternatively, we can introduce a fallback to set billing_project to project, but not sure if it's recommended.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that we don't need a billing_project field at all, since it should be either in the environment or set as part of the provider. Added a commit passing locally, see if tests are happy here.

mmv1/products/firebasehosting/api.yaml Show resolved Hide resolved
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 152 insertions(+))
Terraform Beta: Diff ( 5 files changed, 843 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2227
Passed tests 1986
Skipped tests: 240
Failed tests: 1

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 153 insertions(+))
Terraform Beta: Diff ( 6 files changed, 1039 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2229
Passed tests 1987
Skipped tests: 240
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccComputeForwardingRule_update|TestAccFirebaseHostingChannel_firebasehostingChannelUpdate

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeForwardingRule_update[Debug log]
TestAccFirebaseHostingChannel_firebasehostingChannelUpdate[Debug log]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 149 insertions(+))
Terraform Beta: Diff ( 6 files changed, 1006 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 151 insertions(+))
Terraform Beta: Diff ( 6 files changed, 1010 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

rainshen49 added a commit to rainshen49/magic-modules that referenced this pull request Nov 10, 2022
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2238
Passed tests 1996
Skipped tests: 241
Failed tests: 1

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaseHostingChannel_firebasehostingChannelUpdate

@modular-magician
Copy link
Collaborator

Tests failed during RECORDING mode:
TestAccFirebaseHostingChannel_firebasehostingChannelUpdate[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 151 insertions(+))
Terraform Beta: Diff ( 6 files changed, 1010 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2238
Passed tests 1996
Skipped tests: 241
Failed tests: 1

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 142 insertions(+))
Terraform Beta: Diff ( 6 files changed, 985 insertions(+), 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

rainshen49 added a commit to rainshen49/magic-modules that referenced this pull request Nov 11, 2022
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2246
Passed tests 2005
Skipped tests: 241
Failed tests: 0

All tests passed in REPLAYING mode
View the build log

@rainshen49
Copy link
Contributor Author

Friendly ping @slevenick I think this PR is in good shape for a review.

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@slevenick slevenick merged commit 5fa8435 into GoogleCloudPlatform:main Nov 16, 2022
@rainshen49 rainshen49 deleted the firebase-hosting-channel branch November 16, 2022 17:53
googlerjk pushed a commit to googlerjk/magic-modules that referenced this pull request Nov 22, 2022
* Firebase Hosting Channels

* Use references site_id

* Add handwritten update test

* Use billing_project instead of project

* Remove dependence on a project
googlerjk pushed a commit to googlerjk/magic-modules that referenced this pull request Nov 25, 2022
* Firebase Hosting Channels

* Use references site_id

* Add handwritten update test

* Use billing_project instead of project

* Remove dependence on a project
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Dec 6, 2022
* Firebase Hosting Channels

* Use references site_id

* Add handwritten update test

* Use billing_project instead of project

* Remove dependence on a project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants