-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Firebase hosting channel #6791
Conversation
This PR is blocked on #6598, putting in draft state for now |
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 detailsYour assigned reviewer will help review your code by:
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. |
There was a problem hiding this 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!
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 286 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaseHostingSite_firebasehostingSiteUpdate|TestAccFirebaseHostingSite_firebasehostingSiteFullExample|TestAccFirebaseHostingSite_firebasehostingSiteBasicExample|TestAccFirebaseHostingChannel_firebasehostingChannelFullExample|TestAccFirebaseHostingChannel_firebasehostingChannelBasicExample |
Tests passed during RECORDING mode: All tests passed |
25e86f9
to
51e62b2
Compare
51e62b2
to
3595cde
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 156 insertions(+)) |
3595cde
to
059b2cd
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 156 insertions(+)) |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
name: 'Channel' | ||
min_version: beta | ||
base_url: projects/{{project}}/sites/{{site_id}}/channels |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
- Create & Get is fine
- 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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
- Documentation says so
- The integration tests passed, meaning the environment variable is set there.
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.
There was a problem hiding this comment.
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.
059b2cd
to
38a1b87
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 1 file changed, 152 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 153 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccComputeForwardingRule_update|TestAccFirebaseHostingChannel_firebasehostingChannelUpdate |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 149 insertions(+)) |
19f3d96
to
8660edd
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 151 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaseHostingChannel_firebasehostingChannelUpdate |
Tests failed during RECORDING mode: Please fix these to complete your PR |
8660edd
to
e7b95f5
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 151 insertions(+)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease |
e7b95f5
to
0f99764
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 142 insertions(+)) |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
Friendly ping @slevenick I think this PR is in good shape for a review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Firebase Hosting Channels * Use references site_id * Add handwritten update test * Use billing_project instead of project * Remove dependence on a project
* Firebase Hosting Channels * Use references site_id * Add handwritten update test * Use billing_project instead of project * Remove dependence on a project
* Firebase Hosting Channels * Use references site_id * Add handwritten update test * Use billing_project instead of project * Remove dependence on a project
Add resource google_firebase_hosting_channel
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)