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

fix unknown status for secrets wrapping unknowns #4377

Merged
merged 4 commits into from
Apr 13, 2020
Merged

Conversation

EvanBoyle
Copy link
Contributor

@EvanBoyle EvanBoyle commented Apr 13, 2020

This manifested as a failed preview due to trying to configure a plugin with an unknown value:

// Convert the inputs to a config map. If any are unknown, do not configure the underlying plugin: instead, leave

Copy link
Member

@pgavlin pgavlin left a comment

Choose a reason for hiding this comment

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

One comment on tests; LGTM otherwise.

@@ -159,3 +159,12 @@ func TestCopy(t *testing.T) {
src["c"] = NewNumberProperty(99.99)
assert.Equal(t, 2, len(dst))
}

func TestSecretUnknown(t *testing.T) {
o := NewOutputProperty(Output{
Copy link
Member

Choose a reason for hiding this comment

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

We should add tests for Computed as well. AFAIK Output values are pretty much unused; we generally use Computed instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@stack72 stack72 merged commit 9d2f40b into master Apr 13, 2020
@pulumi-bot pulumi-bot deleted the evan/secretUnknowns branch April 13, 2020 21:47
@EvanBoyle EvanBoyle restored the evan/secretUnknowns branch April 13, 2020 22:42
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.

None yet

3 participants