Skip to content
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

[TF-13376] Refactor registry module delete method #1267

Merged

Conversation

laurenolivia
Copy link
Contributor

@laurenolivia laurenolivia commented Feb 28, 2024

Description

The Registry Module Delete API deprecated and replaced three endpoints (see docs). This ticket is a follow-on, after refactoring the API calls in go-tfe (PR) and releasing those changes in v1.45.0.

Remember to:

Testing plan

  1. Create two registry module resources
  2. Make Name attr for both resources identical
  3. Make Provider attr for both resources different
  4. Delete one registry module
  5. Verify the resource was deleted

External links

Include any links here that might be helpful for people reviewing your PR. If there are none, feel free to delete this section.

Output from acceptance tests

Please run applicable acceptance tests locally and include the output here. See testing.md to learn how to run acceptance tests.

If you are an external contributor, your contribution(s) will first be reviewed before running them against the project's CI pipeline.

$ TESTARGS="-run TestAccTFEWorkspace" make testacc

...

@laurenolivia laurenolivia requested a review from a team as a code owner February 28, 2024 17:36
@laurenolivia laurenolivia force-pushed the laurenolivia/refactor-registry-module-delete-method branch from b333f45 to 0c6472d Compare February 29, 2024 17:13
Copy link
Contributor

@sebasslash sebasslash left a comment

Choose a reason for hiding this comment

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

Apologies, blocking following a pending discussion. ⬇️

@laurenolivia laurenolivia force-pushed the laurenolivia/refactor-registry-module-delete-method branch 5 times, most recently from 2cca617 to 9e482a3 Compare March 5, 2024 20:43
Copy link
Contributor

@sebasslash sebasslash left a comment

Choose a reason for hiding this comment

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

Great work 👍

internal/provider/resource_tfe_registry_module_test.go Outdated Show resolved Hide resolved
@laurenolivia laurenolivia force-pushed the laurenolivia/refactor-registry-module-delete-method branch from 4614117 to 0a4c3df Compare March 8, 2024 10:08
Copy link
Contributor

@sebasslash sebasslash left a comment

Choose a reason for hiding this comment

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

Almost there! Small issue with the error check ⬇️

@laurenolivia laurenolivia force-pushed the laurenolivia/refactor-registry-module-delete-method branch from 0a4c3df to de58ded Compare March 12, 2024 22:31
Copy link
Contributor

@sebasslash sebasslash left a comment

Choose a reason for hiding this comment

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

Apologies. I completely missed the !.

@laurenolivia laurenolivia merged commit fa124c5 into main Mar 12, 2024
9 checks passed
@laurenolivia laurenolivia deleted the laurenolivia/refactor-registry-module-delete-method branch March 12, 2024 22:45
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.

5 participants