You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request to add a description of how to test a beta-only field of the resource generated by mmv1. It took time for me to understand how to test a beta-only field. Updating a doc would help developers to define a new beta field in the future.
In the above PR#6565, I needed to add a test for a beta-only field. I spent time reading the mmv1 code, and I understood adding min_version: beta to !ruby/object:Provider::Terraform::Examples generates a test in the beta provider, but not in the ga provider.
Therefore, I ended up defining two examples to test the beta-only field. One is without the beta-only field, which works for the ga and beta providers. Another is with the beta-only field, which works for the beta provider.
I'm not sure if this strategy is the best approach, but that'd be great if a doc in the magic-module repo has the description of how to test the beta-only field.
The text was updated successfully, but these errors were encountered:
Background
This is a feature request to add a description of how to test a beta-only field of the resource generated by mmv1. It took time for me to understand how to test a beta-only field. Updating a doc would help developers to define a new beta field in the future.
What kind of contribution is this issue about?
Related PR(s), if any:
Details
In the above PR#6565, I needed to add a test for a beta-only field. I spent time reading the mmv1 code, and I understood adding
min_version: beta
to!ruby/object:Provider::Terraform::Examples
generates a test in the beta provider, but not in the ga provider.Therefore, I ended up defining two examples to test the beta-only field. One is without the beta-only field, which works for the ga and beta providers. Another is with the beta-only field, which works for the beta provider.
I'm not sure if this strategy is the best approach, but that'd be great if a doc in the magic-module repo has the description of how to test the beta-only field.
The text was updated successfully, but these errors were encountered: