sparse-intern-71089
06/27/2019, 10:10 PMwhite-balloon-205
pulumi.secret
should work here.worried-engineer-33884
06/27/2019, 10:17 PMpulumi.secret
, but I want to assert that in my testworried-engineer-33884
06/27/2019, 10:18 PMit("is a secret", function(done) {
infra.someOutput.isSecretOutput().then(isSecret => {
assert.ok(isSecret);
done();
});
});
worried-engineer-33884
06/27/2019, 10:20 PMwhite-balloon-205
pulumi.isSecretOutput
is something that should be able to be exposed publicly.
Note that you can still use this in the meantime - with something like:
(pulumi as any).isSecretOutput(o)
Or for easier usage:
const isSecretOutput: (o: Output<any>) => Promise<boolean> = (pulumi as any).isSecretOutput;
Opened https://github.com/pulumi/pulumi/issues/2886.worried-engineer-33884
06/27/2019, 10:41 PM