Automation API Go SDK: Expsoe the version in the UpdateSummary struct. (#6339)

This commit is contained in:
Ringo De Smet 2021-02-16 21:16:41 +01:00 committed by GitHub
parent 0fe4978a7a
commit bcd14d8060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,9 @@ CHANGELOG
## HEAD (Unreleased)
- [automation/go] Exposing the version in the UpdateSummary struct.
[#6339](https://github.com/pulumi/pulumi/pull/6339)
- [CLI] Add pagination options to `pulumi stack history` (`--page`, `--page-size`). These replace the `--limit` flag.
[#6292](https://github.com/pulumi/pulumi/pull/6292)

View file

@ -758,6 +758,7 @@ func TestNewStackInlineSource(t *testing.T) {
assert.True(t, res.Outputs["exp_secret"].Secret)
assert.Equal(t, "update", res.Summary.Kind)
assert.Equal(t, "succeeded", res.Summary.Result)
assert.Greater(t, res.Summary.Version, 0)
// -- pulumi preview --

View file

@ -626,6 +626,7 @@ func (s *Stack) Import(ctx context.Context, state apitype.UntypedDeployment) err
// UpdateSummary provides a summary of a Stack lifecycle operation (up/preview/refresh/destroy).
type UpdateSummary struct {
Version int `json:"version"`
Kind string `json:"kind"`
StartTime string `json:"startTime"`
Message string `json:"message"`