Skip to content

Conversation

@pierskarsenbarg
Copy link

Changes

The catalog Update operation was using the Name field to identify the catalog to be updated, but when the catalog name should be changed, it looks like the API requires using the NewName field instead. This fixes the bug where attempting to rename a catalog would silently fail because the old name was always used.

Also adds a unit test (TestUpdateCatalogName) that reproduces and verifies the fix for this issue.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework
  • has entry in NEXT_CHANGELOG.md file

The catalog Update operation was using the Name field to identify the catalog to be updated, but when the catalog name should be changed, the API requires using the NewName field instead. This fixes the bug where attempting to rename a catalog would silently fail because the old name was always used.

Also adds a unit test (TestUpdateCatalogName) that reproduces and verifies the fix for this issue.
@pierskarsenbarg pierskarsenbarg requested review from a team as code owners November 10, 2025 10:59
@pierskarsenbarg pierskarsenbarg requested review from renaudhartert-db and removed request for a team November 10, 2025 11:00
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 5205
  • Commit SHA: 5563dbba3e5d7faa1115bb0d3ed8c1229cd40a4e

Checks will be approved automatically on success.

Copy link
Contributor

@renaudhartert-db renaudhartert-db left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @pierskarsenbarg! While the API allows for renaming, the operation is often problematic in TF as it mutates the identity of the resource and makes the apply non-idempotent (i.e. applying twice in a row will fail). We currently do not intend to support renaming in TF for UC resources.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants