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

fix: Correct version handling for Terraform Plugin Framework and fix acceptance tests #366

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

nieomylnieja
Copy link
Contributor

Motivation

After merging #351 the acceptance tests started failing.
This was due to the fact that Service resource was no longer defined in the old provider, and since the tests were not utilizing the provider multiplexer, the Service resource was effectively undefined.

Summary

  • Fixed version handling for the new provider, the Version variable was moved to main.go.
  • Added multiplexer setup to the tests.
  • Due to an implicit id attribute creation in Terraform SDK v2 and and this error being dropped in old tests, I had to switch old tests to the new terraform-plugin-testing library. Both new and old libraries' APIs were almost identical, so the conversion was seamless, just import changes.

Testing

Run make test/acc with valid Nobl9 credentials.

@n9-machine-user n9-machine-user added bug Something isn't working go Pull requests that update Go code patch Bug fixes and security updates labels Dec 16, 2024
@nieomylnieja nieomylnieja enabled auto-merge (squash) December 17, 2024 10:47
@nieomylnieja nieomylnieja merged commit 3c74d0c into main Dec 17, 2024
5 checks passed
@nieomylnieja nieomylnieja deleted the fix-version-handling-and-acc-tests branch December 17, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code patch Bug fixes and security updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants