Skip to content

Commit

Permalink
fix: upgrades sdk@1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Ludden committed May 22, 2023
1 parent 790703c commit 8726933
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/benthosdev/benthos/v4 v4.15.0
github.com/cludden/concourse-go-sdk v1.0.1
github.com/cludden/concourse-go-sdk v1.0.2
github.com/hashicorp/go-multierror v1.1.1
github.com/stretchr/testify v1.8.1
gopkg.in/yaml.v2 v2.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cludden/concourse-go-sdk v1.0.1 h1:vHLHSBdQB51yi/ept4egZCxLdxtcQ7uho/8foC293j0=
github.com/cludden/concourse-go-sdk v1.0.1/go.mod h1:0NAY60+qfsl7tHqpIGYrxkDO0vahoGupCzjooXtBT5Q=
github.com/cludden/concourse-go-sdk v1.0.2 h1:OgTSZq57MIkkWuzWJhA1NGwVtE2HieGrZFvYLnarNoQ=
github.com/cludden/concourse-go-sdk v1.0.2/go.mod h1:Fkis85DM5bQJdosU3RY0lZ2AaAWyYSh+3nSKvRWYaqc=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
github.com/cockroachdb/apd/v2 v2.0.1/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw=
Expand Down
22 changes: 22 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,25 @@ func TestResource(t *testing.T) {
require.Equal("5541858611C514F02FD7E3F34D3FCAD17908D933", testData.Ref)
require.Equal("https://concourse.example.com/builds/1234", testData.URL)
}

func TestVersion(t *testing.T) {
require := require.New(t)

cases := []struct {
name string
version Version
expected string
}{
{
name: "basic",
version: Version{Data: map[string]any{"foo": "bar"}},
expected: `{"foo":"bar"}`,
},
}

for _, c := range cases {
b, err := json.Marshal(&c.version)
require.NoError(err)
require.Equal(c.expected, string(b))
}
}

0 comments on commit 8726933

Please # to comment.