Skip to content
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 "unit-test like" coverage to Configure operations #23

Open
hasheddan opened this issue Aug 5, 2022 · 0 comments
Open

Add "unit-test like" coverage to Configure operations #23

hasheddan opened this issue Aug 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@hasheddan
Copy link

What problem are you facing?

Provider Name: All
Provider Version: All

Resources are currently configured using a Configure hook, which dictates behavior for operations such as late initialization and publishing connection secrets. Currently, this behavior is only exercised via e2e testing, which does not validate that all permutations of the resource in question will work.

How could Official Providers help solve your problem?

Adding unit test coverage to these hooks is a non-trivial operation because they are mostly dependent on what the underlying TF provider hands back at runtime. However, it may be possible to hook into the TF provider tests (example) to do some preliminary validation that fields we depend on are actually expected to be available at runtime. This would not be a comprehensive solution, but it could go a long way towards eliminating small bugs related to unstructured field references.

@hasheddan hasheddan added the enhancement New feature or request label Aug 5, 2022
@jeanduplessis jeanduplessis transferred this issue from another repository Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant