Skip to content

Commit b2bf8e0

Browse files
committed
Add pulumi version to test (will remove later).
1 parent 1d7d7d8 commit b2bf8e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pulumitest/grpcLog_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ import (
66
"github.com/gkampitakis/go-snaps/match"
77
"github.com/gkampitakis/go-snaps/snaps"
88
"github.com/pulumi/providertest/pulumitest"
9+
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"
910
"github.com/stretchr/testify/assert"
1011
)
1112

1213
func TestGrpc(t *testing.T) {
1314
t.Parallel()
1415
test := pulumitest.NewPulumiTest(t, "testdata/yaml_program")
16+
17+
versionCmd := test.CurrentStack().Workspace().PulumiCommand()
18+
version, _, _, err := versionCmd.Run(test.Context(), test.WorkingDir(), nil, nil, nil, nil, "version")
19+
contract.AssertNoErrorf(err, "failed to get pulumi version: %s", version)
20+
t.Logf("pulumi version: %s", version)
21+
1522
test.Up(t)
1623
log := test.GrpcLog(t)
1724
assert.NotEmpty(t, log)

0 commit comments

Comments
 (0)