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 failing import acceptance test #112

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Conversation

minamijoyo
Copy link
Owner

@minamijoyo minamijoyo commented Nov 25, 2022

While implementing #111, we noticed that the import acceptance test for the tfexec package failed.
#111 (comment)

After investigation, I found that the time provider was significantly rewritten in v0.9.0 to migrate to the new terraform-plugin-framework.
hashicorp/terraform-provider-time#112

As a result, the implementation of import for the time_static resource now implicitly sets the triggers attribute to an empty map {} instead of null.

I’m not sure if this change was intentional or not, though; we can simply accept this change because there is no essential difference as long as the import success with no change.

@minamijoyo minamijoyo force-pushed the fix-testacc-for-import branch 2 times, most recently from 1e58103 to 7e25d4b Compare November 25, 2022 13:54
While implementing #111, we noticed that the import acceptance test for
the `tfexec` package failed.
#111 (comment)

After investigation, I found that the time provider was significantly
rewritten in v0.9.0 to migrate to the new `terraform-plugin-framework`.
hashicorp/terraform-provider-time#112

As a result, the implementation of import for the `time_static` resource
now implicitly sets the `triggers` attribute to an empty map `{}`
instead of `null`.

I’m not sure if this change was intentional or not, though; we can
simply accept this change because there is no essential difference as
long as the import success with no change.
@minamijoyo minamijoyo force-pushed the fix-testacc-for-import branch from 7e25d4b to be84cff Compare November 25, 2022 13:55
@minamijoyo minamijoyo changed the title test import Fix failing import acceptance test Nov 25, 2022
@minamijoyo minamijoyo merged commit a49ce27 into master Nov 25, 2022
@minamijoyo minamijoyo deleted the fix-testacc-for-import branch November 25, 2022 14:13
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.

1 participant