-
Notifications
You must be signed in to change notification settings - Fork 626
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: makes allowed_idps type to set #2094
Conversation
Signed-off-by: keita <keitap@gmail.com>
changelog detected ✅ |
Signed-off-by: keita <keitap@gmail.com>
the change looks reasonable. can you please add test coverage for this change? |
@jacobbednarz It was tested by |
the fact that the test was previously passing before you made your changes suggests it is not sufficient. for sufficient test coverage, I should be able to run the test before your fix demonstrating the problem having the test fail, then apply your fix and have the test pass. in this case, you'll need to expertise the update with differently or ordered keys and have terraform not show a diff. if you check out other tests for |
@jacobbednarz thank you! I will work on it😀 |
Signed-off-by: keita <keitap@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacobbednarz I have added a test but have not been able to run it on my end.
I understand that I need to set proper environment variables in order to run acceptance tests. Is there any easiest way to run acceptance tests on my local? Unfortunately, I don't have any unused domain that can register to Cloudflare ZT.
internal/provider/resource_cloudflare_access_application_test.go
Outdated
Show resolved
Hide resolved
thanks @keitap ! 🏆 |
acceptance tests are all passing here
|
This functionality has been released in v3.31.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
@jacobbednarz Thank you for merging. Tests are passed but |
Because order of cloudflare_access_application.allowed_idps is not stable, each time terraform plan shows diff. To avoid this, allowed_idps should be set type rather than list.
It might be Cloudflare API doesn't care an order of IDPs.
For example, after I apply a plan below, rerun apply, it shows same diff.