-
Notifications
You must be signed in to change notification settings - Fork 15
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 Provider-Defined Function Testing #202
Comments
terraform-plugin-framework v1.5.0 was released today so this will be ready to pick up very shortly after I poke dependabot. |
Latest terraform-plugin-framework contains fix for: * hashicorp/terraform-plugin-framework#914 * hashicorp/terraform-plugin-framework#919
* Adding function tests for framework protocol 5 & 6 and protocol 6 mux providers (#202) * Adding copyright headers (#202) * Linting (#202) * Adding function tests for protocol v5 and protocol v6 providers (#202) * Amending provider defined function tests for number until bug fix on go.cty is released (#202) * Adding function testing for mux providers (#202) * Adding function testing for tf6to5provider (#202) * Adding copyright headers (#202) * Bumping terraform-plugin-framework version to latest (#202) Latest terraform-plugin-framework contains fix for: * hashicorp/terraform-plugin-framework#914 * hashicorp/terraform-plugin-framework#919 * Bumping terraform-plugin-testing to v1.7.0 (#202) * Refactoring to return function.FuncError (#202) * Updates following code review (#202)
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. |
Description
Once terraform-plugin-framework v1.5.0 is released with provider-defined function support and the dependency updated in this repository, it will be great to add "smoke" testing for functions. My suggestions for what would be useful to be added:
Anything beyond this is a bonus. 👍
Here's a quick example I was using when I was double checking the prototype code of everything.
internal/framework6provider/string_function.go
internal/framework6provider/string_function_test.go
(needsTerraformVersionChecks
for 1.8+ 😄 )Apparently I also had a variadic function for prototype checking too (which acted as another "echo" like function):
internal/framework6provider/variadic_function.go
And
internal/framework6provider/variadic_function_test.go
(similar missingTerraformVersionChecks
😄 )The text was updated successfully, but these errors were encountered: