-
Notifications
You must be signed in to change notification settings - Fork 232
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
Migrate to plugin-go types #630
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The tfplugin5 package is no longer used; terraform-plugin-go is now the common interface for the Terraform protocol.
Add helpers to convert back and forth between tftypes Types and cty Types directly instead of sending it through JSON first.
schema.Provider.GRPCProvider() returns a gRPC server, for use with terraform-plugin-mux. We move NewGRPCProviderServer() from internal/helper/plugin to prevent an import cycle with helper/schema.
Migrate to plugin-go types
Binary reattach testing now iterates through both ProviderFactories and V5ProviderFactories and spins up a gRPC server for each. Plugin-go protocol v5 providers can thus be tested in the same way as SDKv2 providers.
If the same provider is supplied in both TestCase.ProviderFactories and TestCase.ProtoV5ProviderFactories, the test framework cannot decide which version to use. Error to inform the user that they must set one or the other.
Allow plugin-go provider factories in acc tests
non-tuple cty.Types do not have Length
unalias tfprotov5 package
paddycarver
approved these changes
Nov 2, 2020
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. |
ghost
locked as resolved and limited conversation to collaborators
Dec 3, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.