-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding dialogflow_cx_test_case resource #8879
Adding dialogflow_cx_test_case resource #8879
Conversation
Hello! I am a robot. It looks like you are a: @melinath, 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. Terraform GA: Diff ( 5 files changed, 3066 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample|TestAccDialogflowCXTestCase_update|TestAccFolderIamPolicy_basic |
Rerun these tests in REPLAYING mode to catch issues
|
It's the API, but I'm iffy about if it's worthwhile to have
And thinking about it more, I also don't love
It'd be nicer as
but that's moving even further away from the API and feels like it's inviting a future breaking change. WDYT? |
In terms of "flattening" nested fields to something like:
We don't allow that in the provider any more unless it's to match an existing implementation (for example, a sibling resource that was implemented that way), because there have been too many cases where other nested fields ended up being added later and causing confusion / bugs / extra work. Regarding the display_name fields - if the API requires them to always be equal to the |
Yeah, I figured; oh well. I tested it and it looks like if you provide a |
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 ( 5 files changed, 3057 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample|TestAccDialogflowCXTestCase_update|TestAccSpannerDatabaseIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
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.
A few small changes & questions - this is looking really good
mmv1/third_party/terraform/services/dialogflowcx/resource_dialogflow_cx_test_case_test.go
Show resolved
Hide resolved
mmv1/third_party/terraform/services/dialogflowcx/resource_dialogflow_cx_test_case_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/dialogflowcx/resource_dialogflow_cx_test_case_test.go
Show resolved
Hide resolved
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 ( 5 files changed, 3053 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests:
|
d9c185c
to
79f6078
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 ( 5 files changed, 3053 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDialogflowCXTestCase_update|TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample|TestAccDataSourceGoogleServiceAccountIdToken_impersonation|TestAccFolderIamPolicy_basic |
Rerun these tests in REPLAYING mode to catch issues
|
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.
LGTM
* Adding dialogflow_cx_test_case resource * Making displayName output-only * Using %parent instead of custom import code * Adding comment clarifying why intent + audio are missing * Making tests exercise updating more fields
* Adding dialogflow_cx_test_case resource * Making displayName output-only * Using %parent instead of custom import code * Adding comment clarifying why intent + audio are missing * Making tests exercise updating more fields
Adds a a test_case resource. Fixes hashicorp/terraform-provider-google#15744
Release Note Template for Downstream PRs (will be copied)