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

Improve resource ref unit tests. #5960

Merged
merged 3 commits into from
Dec 16, 2020
Merged

Improve resource ref unit tests. #5960

merged 3 commits into from
Dec 16, 2020

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Dec 16, 2020

  • Add component ref coverage to the existing test
  • Add coverage for a downlevel SDK communicating with an engine that
    supports resource refs
  • Add coverage for a downlevel engine communicating with an SDK that
    supports resource refs

As part of improving coverage, these changes add a knob to explicitly
disable resource refs in the engine without the use of the environment
variable. The environment variable is now only read by the CLI.

I believe that these changes also fix #5939, which I needed to
address in order for the tests to pass.

Contributes to #5943.

- Add component ref coverage to the existing test
- Add coverage for a downlevel SDK communicating with an engine that
  supports resource refs
- Add coverage for a downlevel engine communicating with an SDK that
  supports resource refs

As part of improving coverage, these changes add a knob to explicitly
disable resource refs in the engine without the use of the environment
variable. The environment variable is now only read by the CLI.

Contributes to #5943.
@pgavlin
Copy link
Member Author

pgavlin commented Dec 16, 2020

@justinvp , I think that these changes obviate #5952. I'll add additional SDK-specific tests as a follow-up.

@justinvp
Copy link
Member

I think that these changes obviate #5952. I'll add additional SDK-specific tests as a follow-up.

Thanks! Since I'm OOF until Jan, I'm going to close out #5952 and assign #5939 to you.

@pgavlin
Copy link
Member Author

pgavlin commented Dec 16, 2020

Ping. I'd love to get these changes in ASAP to unblock other testing.

@pgavlin pgavlin merged commit 9b6a7a4 into master Dec 16, 2020
@pulumi-bot pulumi-bot deleted the pgavlin/resourceRefTests branch December 16, 2020 20:38
@pgavlin pgavlin restored the pgavlin/resourceRefTests branch December 17, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preview fails when resource refs are enabled
3 participants