Closed VenelinMartinov closed 2 weeks ago
https://github.com/pulumi/pulumi-terraform-bridge/blob/master/pkg/tests/cross-tests/input_check.go#L132 already using it. Whatever is most convenient.
Yeah, absolutely, it's where I adapted this from.
I was wondering if we should abstract the part about bridging a TF provider and hooking it up to pulumiTest for wider use in the bridge.
Yes, it would. We have a few ProgramTest tests but rebuilding the underlying provider is a bit of a hassle. But it would be really useful to have a quick stencil way to define a quick schema, program in one place and exercise it end to end, under Pulumi and/or TF, with debugging attached by default. Streamlining this would help contributors adding integration tests.
Attention: Patch coverage is 78.47222%
with 31 lines
in your changes missing coverage. Please review.
Project coverage is 61.27%. Comparing base (
a167cca
) to head (aa2be4b
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This refactors the cross-tests to expose an integration test module
pulCheck
for use outside of cross-tests.It allows us to easily write integration tests where we specify a TF schema, which gets bridged and use the pulumiTest framework for the test itself.