-
Notifications
You must be signed in to change notification settings - Fork 236
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
Add ExpectedDiffChanges to assert expected diff change type in acceptance test steps #329
Add ExpectedDiffChanges to assert expected diff change type in acceptance test steps #329
Conversation
Changing
Triggers:
|
e5c0395
to
49fd8a4
Compare
auto-configure providers during binary acctests
Borrows some core code from 23acb02cb846fd002e7a0b52904ee88019b33211
Update to tfplugin 5.2, map new protocol fields (v1)
The gofmtcheck.sh script uses the gofmt -s flag for reporting simplication issues, so the fixing command must also include this flag.
Makefile: Update fmt target to include gofmt -s flag
49fd8a4
to
ff160e9
Compare
…up-tmpdirs Binary testing: Fix cleanup of temporary directories
…ons after checking of an optional element has a value
… helper\schema\schema_test.go
… property constraints; updated tests accordingly
…k to their old positions as requested by review in helper/schema/schema.go
RequiredWith schema check and changes in validation for optional schema fields
Co-Authored-By: appilon <[email protected]>
Co-Authored-By: appilon <[email protected]>
Co-Authored-By: appilon <[email protected]>
Co-Authored-By: kmoe <[email protected]>
Add package docs for binary test driver
…n-no-state Binary testing: omit test cleanup when state is empty
… diff change type
ff160e9
to
17dfe9c
Compare
Hello @pdecat, the plugin SDK separating into its own repository unfortunately required duplicating a significant amount of Terraform core code into this repository, as the acceptance test framework used to be driven by this "emulated" version of Terraform that was internalized. As of V1.7 of the SDK we released a new binary based solution #262 that aims to decouple core code from living in this repo (of course in V1 this is opt in, so the current artifacts still exist). The binary solution was shimmed to allow nearly all existing acceptance tests to still pass. In V2 of the SDK, the binary based solution will be the only driver for acceptance tests (and many thousands of lines of code removed). This related issue/comment has a bit more context. We sincerely appreciate your interest and investment in enhancing the testing suite, but unfortunately we aren't investing in the old "driver" anymore. We will be ramping up communications around the new driver and V2 very shortly. Our apologies for not getting the message out sooner. We will make note of this enhancement though and keep it as a datapoint for enhancements to the binary driver and future versions of the SDK. |
Hi @appilon, thanks for the update! Just to clarify, does that mean I can try to submit an equivalent PR on the new upcoming driver, |
@pdecat We would definitely be open to reviewing a proposed enhancement to the acceptance test framework with the binary driver as the backing implementation. You can look at the There is some info on the upcoming V2 on the forum To try and shed a little extra context though, Terraform 0.12+ has switched to a new wire protocol and architecture. The SDK as it is manages to shim itself to talk with TF 0.12, however it's become clear to us it's not a great fit. The acceptance test framework as it is currently uses these legacy systems and types (ie So I wanted to give the heads up that we might be hesitant on enhancements leaning into these types, hard to really say until we see a proposed PR, but I wanted to give the heads up so we don't waste another round of your time if your time is precious on this feature. We sincerely appreciate your contributions to our community 😃 . |
@pdecat ☝️ I updated the last message with some important extra context, hope you saw it. |
Got that, thanks again! |
We have officially moved version2 over to |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This implements @bflad 's solution detailed in #222.
Should also resolve hashicorp/terraform-plugin-testing#61 which sounds exactly the same to me.
Tested with hashicorp/terraform-provider-kubernetes#769
All resource unit tests are disabled, I tried to enable them but get: