Skip to content

Conversation

austinvalle
Copy link
Member

This PR has a couple changes:

  • A new state check that can be used to assert resource identity data
  • Implements part of the managed resource identity protocol in the internal/testing/testprovider and SDK
    • The one portion of this missing is UpgradeResourceIdentity RPC, which we only need to implement if we plan on testing it in this repo, which I'm not 100% sure we need to.
  • Adds the tfversion.Version1_12_0 package variable

@austinvalle austinvalle added the enhancement New feature or request label Mar 25, 2025
@austinvalle austinvalle added this to the v1.13.0 milestone Mar 25, 2025
@austinvalle austinvalle requested a review from a team as a code owner March 25, 2025 15:58
Comment on lines +123 to +124
// TODO: This should be replaced by the `ValueType` method from plugin-go:
// https://github.com/hashicorp/terraform-plugin-go/pull/497
Copy link
Member Author

@austinvalle austinvalle Mar 25, 2025

Choose a reason for hiding this comment

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

hashicorp/terraform-plugin-go#497 will let us resolve this in a follow-up PR

Comment on lines +152 to +153
// TODO: This should be replaced by the `ValueType` method from plugin-go:
// https://github.com/hashicorp/terraform-plugin-go/pull/497
Copy link
Member Author

@austinvalle austinvalle Mar 25, 2025

Choose a reason for hiding this comment

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

hashicorp/terraform-plugin-go#497 will let us resolve this in a follow-up PR

@bbasata bbasata self-requested a review March 25, 2025 17:55
bbasata
bbasata previously approved these changes Mar 25, 2025
Copy link
Collaborator

@bbasata bbasata left a comment

Choose a reason for hiding this comment

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

:shipit:

One suggestion in line comments.

@austinvalle austinvalle force-pushed the av/resource-identity-checks branch from 9e31baf to 4a7dff2 Compare March 25, 2025 19:48
Copy link
Collaborator

@bbasata bbasata left a comment

Choose a reason for hiding this comment

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

:shipit: :shipit: :shipit:

@austinvalle
Copy link
Member Author

I'm going to merge this so we can utilize the testprovider changes in other PRs. I believe we're going to also introduce an object-level ExpectIdentity so you can assert the entire identity at once. That will come in a separate PR

@austinvalle austinvalle merged commit a5a8d6a into main Mar 25, 2025
40 checks passed
@austinvalle austinvalle deleted the av/resource-identity-checks branch March 25, 2025 21:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants