From 5388e255506fc4f090c648af51a5ed575dab780a Mon Sep 17 00:00:00 2001 From: Guinevere Saenger Date: Tue, 7 Nov 2023 15:20:01 -0800 Subject: [PATCH] Unsecret Outputs for Labels tests --- examples/go.mod | 3 ++- examples/go.sum | 5 ++++- examples/labels-combinations-go/main.go | 4 ++-- examples/labels-combinations-go/step1/main.go | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 772d788791..70cf7d3c85 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0 - github.com/pulumi/pulumi-gcp/sdk/v7 v7.0.0-00010101000000-000000000000 + github.com/pulumi/pulumi-gcp/sdk/v7 v7.0.0-alpha.0 github.com/pulumi/pulumi/pkg/v3 v3.91.1 github.com/pulumi/pulumi/sdk/v3 v3.91.1 github.com/stretchr/testify v1.8.4 @@ -115,6 +115,7 @@ require ( github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.18 // indirect diff --git a/examples/go.sum b/examples/go.sum index e3bd60b201..0fe016eaea 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1116,8 +1116,9 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= @@ -1366,6 +1367,7 @@ github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1456,6 +1458,7 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= diff --git a/examples/labels-combinations-go/main.go b/examples/labels-combinations-go/main.go index c4d678f83a..5dc6e7c5aa 100644 --- a/examples/labels-combinations-go/main.go +++ b/examples/labels-combinations-go/main.go @@ -54,13 +54,13 @@ func main() { return err } - ctx.Export("bucket", bucket.PulumiLabels.ApplyT(func(x interface{}) string { + ctx.Export("bucket", pulumi.Unsecret(bucket.PulumiLabels.ApplyT(func(x interface{}) string { b, err := json.Marshal(x.(map[string]string)) if err != nil { panic(err) } return string(b) - })) + }))) return nil }) diff --git a/examples/labels-combinations-go/step1/main.go b/examples/labels-combinations-go/step1/main.go index 74f8aeedae..fa5f517567 100644 --- a/examples/labels-combinations-go/step1/main.go +++ b/examples/labels-combinations-go/step1/main.go @@ -54,13 +54,13 @@ func main() { return err } - ctx.Export("bucket", bucket.PulumiLabels.ApplyT(func(x interface{}) string { + ctx.Export("bucket", pulumi.Unsecret(bucket.PulumiLabels.ApplyT(func(x interface{}) string { b, err := json.Marshal(x.(map[string]string)) if err != nil { panic(err) } return string(b) - })) + }))) return nil })