Skip to content

Adding ToolVersion to Dialogflow CX#15945

Merged
slevenick merged 5 commits intoGoogleCloudPlatform:mainfrom
shang-jason:df-toolVersion
Jan 16, 2026
Merged

Adding ToolVersion to Dialogflow CX#15945
slevenick merged 5 commits intoGoogleCloudPlatform:mainfrom
shang-jason:df-toolVersion

Conversation

@shang-jason
Copy link
Contributor

`google_dialogflow_cx_tool_version`

@github-actions github-actions bot requested a review from slevenick December 12, 2025 20:31
@github-actions
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@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.

@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 50
Passed tests: 44
Skipped tests: 0
Affected tests: 6

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample
  • TestAccDialogflowCXTestCase_update
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionDataStoreExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionFunctionExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionOpenApiExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionDataStoreExample [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionFunctionExample [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionOpenApiExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample [Error message] [Debug log]
TestAccDialogflowCXTestCase_update [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test


resource "google_integration_connectors_connection" "integration_connector" {
provider = google-beta
name = "terraform-df-cx-tool-connection"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a variable set through the template like {{index $.Vars "agent_name"}} up above. This lets us add random suffixes to these to ensure they can be run in parallel.

Same for the dataset & table ids below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@github-actions
Copy link

@shang-jason, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days.

Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 7, 2026
@github-actions github-actions bot requested a review from slevenick January 7, 2026 19:39
@shang-jason shang-jason marked this pull request as draft January 7, 2026 19:40
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 7, 2026
@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 50
Passed tests: 48
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample
  • TestAccDialogflowCXTestCase_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample [Error message] [Debug log]
TestAccDialogflowCXTestCase_update [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 50
Passed tests: 44
Skipped tests: 0
Affected tests: 6

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample
  • TestAccDialogflowCXTestCase_update
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionDataStoreExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionFunctionExample
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionOpenApiExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionDataStoreExample [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionFunctionExample [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionOpenApiExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample [Error message] [Debug log]
TestAccDialogflowCXTestCase_update [Error message] [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 50
Passed tests: 47
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample
  • TestAccDialogflowCXTestCase_update
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample [Error message] [Debug log]
TestAccDialogflowCXTestCase_update [Error message] [Debug log]
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 50
Passed tests: 47
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample
  • TestAccDialogflowCXTestCase_update
  • TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDialogflowCXToolVersion_dialogflowcxToolVersionConnectorExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXTestCase_dialogflowcxTestCaseFullExample [Error message] [Debug log]
TestAccDialogflowCXTestCase_update [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@shang-jason shang-jason marked this pull request as ready for review January 7, 2026 21:20
@github-actions
Copy link

@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@github-actions
Copy link

@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Generally this looks good, one question about the parent field though, I think it should be required

The tool to create a Version for.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.
url_param_only: true
immutable: true
Copy link
Contributor

Choose a reason for hiding this comment

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

required: true also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@github-actions github-actions bot requested a review from slevenick January 16, 2026 20:22
@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 5 files changed, 3152 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 3838 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 988 insertions(+))
Open in Cloud Shell: Diff ( 12 files changed, 593 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_dialogflow_cx_tool_version (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_dialogflow_cx_tool_version" "primary" {
  tool {
    connector_spec {
      end_user_auth_config {
        oauth2_auth_code_config {
          oauth_token = # value needed
        }
        oauth2_jwt_bearer_config {
          client_key = # value needed
          issuer     = # value needed
          subject    = # value needed
        }
      }
    }
    open_api_spec {
      authentication {
        api_key_config {
          api_key                    = # value needed
          key_name                   = # value needed
          request_location           = # value needed
          secret_version_for_api_key = # value needed
        }
        bearer_token_config {
          secret_version_for_token = # value needed
          token                    = # value needed
        }
        service_agent_auth_config {
          service_agent_auth = # value needed
        }
      }
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 52
Passed tests: 50
Skipped tests: 2
Affected tests: 0

Click here to see the affected service packages
  • dialogflowcx

🟢 All tests passed!

View the build log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants