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

Enable features in mock monitor #4272

Merged
merged 1 commit into from
Apr 3, 2020
Merged

Conversation

mikhailshilkov
Copy link
Member

Enables secret support in mock-based tests. Go and C# seem to be fine as-is.

Fixes #4145

@@ -4,6 +4,9 @@ CHANGELOG
## HEAD (unreleased)
- Fix handling of `nil` values in Outputs in Go.
[#4268](https://github.com/pulumi/pulumi/pull/4268)

- Fix handling of secret values in mock-based tests.
[#4272](https://github.com/pulumi/pulumi/pull/4272)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any tests that validate mocks working with secrets?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had the same question but it looks like we don't have any tests for mocks. Probably worth adding them for all languages / methods / parameter permutations, but sounds a bit out of the scope for this issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did add tests for Python mocks recently - #4074.

But happy to split out a new issue on getting test coverage broadly on mocking.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I missed that one. Now I augmented the Python test to use a secret. Also created #4276 to add tests for other runtimes.

@mikhailshilkov mikhailshilkov merged commit 6d32d57 into master Apr 3, 2020
@pulumi-bot pulumi-bot deleted the mikhailshilkov/mock-secrets branch April 3, 2020 06:33
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.

Mock resource monitor does not support secrets
2 participants