Skip to content

Commit

Permalink
deps: update module github.com/hetznercloud/hcloud-go/v2 to v2.16.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 5, 2024
1 parent da1e19c commit 9e773f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions builder/hcloud/step_create_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func TestStepCreateServer(t *testing.T) {
Want: func(t *testing.T, req *http.Request) {
payload := decodeJSONBody(t, req.Body, &schema.ServerCreateRequest{})
assert.Equal(t, "dummy-server", payload.Name)
assert.Equal(t, int64(114690387), int64(payload.Image.(float64)))
assert.Equal(t, int64(114690387), payload.Image.ID)
assert.Equal(t, "nbg1", payload.Location)
assert.Equal(t, "cpx11", payload.ServerType)
assert.Equal(t, "cpx11", payload.ServerType.Name)
assert.True(t, payload.PublicNet.EnableIPv4)
assert.True(t, payload.PublicNet.EnableIPv6)
assert.Nil(t, payload.Networks)
Expand Down Expand Up @@ -119,9 +119,9 @@ func TestStepCreateServer(t *testing.T) {
Want: func(t *testing.T, req *http.Request) {
payload := decodeJSONBody(t, req.Body, &schema.ServerCreateRequest{})
assert.Equal(t, "dummy-server", payload.Name)
assert.Equal(t, int64(114690387), int64(payload.Image.(float64)))
assert.Equal(t, int64(114690387), payload.Image.ID)
assert.Equal(t, "nbg1", payload.Location)
assert.Equal(t, "cpx11", payload.ServerType)
assert.Equal(t, "cpx11", payload.ServerType.Name)
assert.Equal(t, int64(986532), payload.Firewalls[0].Firewall)
},
Status: 201,
Expand Down Expand Up @@ -189,9 +189,9 @@ func TestStepCreateServer(t *testing.T) {
Want: func(t *testing.T, req *http.Request) {
payload := decodeJSONBody(t, req.Body, &schema.ServerCreateRequest{})
assert.Equal(t, "dummy-server", payload.Name)
assert.Equal(t, int64(114690387), int64(payload.Image.(float64)))
assert.Equal(t, int64(114690387), payload.Image.ID)
assert.Equal(t, "nbg1", payload.Location)
assert.Equal(t, "cpx11", payload.ServerType)
assert.Equal(t, "cpx11", payload.ServerType.Name)
assert.Equal(t, []int64{12}, payload.Networks)
},
Status: 201,
Expand Down Expand Up @@ -287,9 +287,9 @@ func TestStepCreateServer(t *testing.T) {
Want: func(t *testing.T, req *http.Request) {
payload := decodeJSONBody(t, req.Body, &schema.ServerCreateRequest{})
assert.Equal(t, "dummy-server", payload.Name)
assert.Equal(t, int64(114690387), int64(payload.Image.(float64)))
assert.Equal(t, int64(114690387), payload.Image.ID)
assert.Equal(t, "nbg1", payload.Location)
assert.Equal(t, "cpx11", payload.ServerType)
assert.Equal(t, "cpx11", payload.ServerType.Name)
assert.Nil(t, payload.Networks)
assert.NotNil(t, payload.PublicNet)
assert.Equal(t, int64(1), payload.PublicNet.IPv4ID)
Expand Down Expand Up @@ -393,9 +393,9 @@ func TestStepCreateServer(t *testing.T) {
Want: func(t *testing.T, req *http.Request) {
payload := decodeJSONBody(t, req.Body, &schema.ServerCreateRequest{})
assert.Equal(t, "dummy-server", payload.Name)
assert.Equal(t, int64(114690387), int64(payload.Image.(float64)))
assert.Equal(t, int64(114690387), payload.Image.ID)
assert.Equal(t, "nbg1", payload.Location)
assert.Equal(t, "cpx11", payload.ServerType)
assert.Equal(t, "cpx11", payload.ServerType.Name)
assert.Nil(t, payload.Networks)
assert.NotNil(t, payload.PublicNet)
assert.Equal(t, int64(1), payload.PublicNet.IPv4ID)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
require (
github.com/hashicorp/hcl/v2 v2.22.0
github.com/hashicorp/packer-plugin-sdk v0.5.4
github.com/hetznercloud/hcloud-go/v2 v2.15.0
github.com/hetznercloud/hcloud-go/v2 v2.16.0
github.com/mitchellh/mapstructure v1.5.0
github.com/stretchr/testify v1.9.0
github.com/zclconf/go-cty v1.15.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ github.com/hashicorp/vault/api v1.14.0 h1:Ah3CFLixD5jmjusOgm8grfN9M0d+Y8fVR2SW0K
github.com/hashicorp/vault/api v1.14.0/go.mod h1:pV9YLxBGSz+cItFDd8Ii4G17waWOQ32zVjMWHe/cOqk=
github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
github.com/hetznercloud/hcloud-go/v2 v2.15.0 h1:6mpMJ/RuX1woZj+MCJdyKNEX9129KDkEIDeeyfr4GD4=
github.com/hetznercloud/hcloud-go/v2 v2.15.0/go.mod h1:h8sHav+27Xa+48cVMAvAUMELov5h298Ilg2vflyTHgg=
github.com/hetznercloud/hcloud-go/v2 v2.16.0 h1:s5wZFMX6/hZxONbD19pZ+JWvGaf2I7zH+f/Cem2ICAQ=
github.com/hetznercloud/hcloud-go/v2 v2.16.0/go.mod h1:h8sHav+27Xa+48cVMAvAUMELov5h298Ilg2vflyTHgg=
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 h1:IPJ3dvxmJ4uczJe5YQdrYB16oTJlGSC/OyZDqUk9xX4=
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869/go.mod h1:cJ6Cj7dQo+O6GJNiMx+Pa94qKj+TG8ONdKHgMNIyyag=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
Expand Down

0 comments on commit 9e773f5

Please sign in to comment.