-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add a new resource TargetSite. #11669
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
Add a new resource TargetSite. #11669
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
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.
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
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.
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
[Solved] First, I tried to set Second, I changed to set I checked Debug log to get requests and corresponding responses:
|
…tion, then all 6 requests can return successfully.
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.
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
…nly field with ignore_read.
…to fix id-missing error during ImportResourceState.
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
1 similar comment
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
…_read_extra; Add update API.
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 12 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
- 'project' | ||
custom_code: !ruby/object:Provider::Terraform::CustomCode | ||
post_create: templates/terraform/post_create/set_computed_name.erb | ||
post_update: templates/terraform/post_update/set_computed_name.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.
I don't think we need this post_update as well. It should work only after create because the name should never change
Does it work if you remove this?
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.
Hi Sam, I tested locally, after removing this post_update
, the update test couldn't pass because the resource name changed.
I ran cli TF_LOG=DEBUG make testacc TEST=./google/services/discoveryengine TESTARGS='-run=TestAccDiscoveryEngineTargetSite_discoveryengineTargetsiteBasicExample_update' > output.log
to dump out debugging log, and got results: https://screenshot.googleplex.com/4izdznRcKyJGs9j
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.
Double confirmed with the API owner, we plan not to support udpate operation because:
- Update API is not used by UI (Pantheon);
- Update API has not been fully tested, and now we expect the customer to do delete-then-recreate for an update.
Thus, for this newly supported resource TargetSite
, we will support 4 APIs: get, list, create, delete
I will do the following things:
- remove this
post_update
custom code and update test - mark this resource as immutable
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 12 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
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.
One small change required, I think just remove exactly_one_of
name: 'quotaFailure' | ||
description: | | ||
Site verification state indicating the ownership and validity. | ||
exactly_one_of: |
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.
This should just be required: true
?
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.
But the parent object is output: true, so exactly_one_of doesn't make sense 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.
Thanks, removed exactly_one_of
.
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 12 Click here to see the affected service packages
View the build log |
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_discovery_engine_target_site" "primary" {
failure_reason {
quota_failure {
total_required_quota = # value needed
}
}
site_verification_info {
site_verification_state = # value needed
verify_time = # value needed
}
}
|
Tests analyticsTotal tests: 12 Click here to see the affected service packages
View the build log |
Add a new resource
TargetSite
to productDiscovery Engine
.Release Note Template for Downstream PRs (will be copied)