diff --git a/internal/definednet/host_test.go b/internal/definednet/host_test.go index a3c263c..6ec9c5e 100644 --- a/internal/definednet/host_test.go +++ b/internal/definednet/host_test.go @@ -17,7 +17,7 @@ var _ = Describe("creating hosts", func() { ghttp.VerifyJSONRepresenting(map[string]any{ "networkID": "network-id", "roleID": "role-id", - "name": "host.smaily.testing", + "name": "host.defined.test", "ipAddress": "10.0.0.1", "staticAddresses": []string{"127.0.0.1:8484", "172.16.0.1:8484"}, "listenPort": 8484, @@ -31,7 +31,7 @@ var _ = Describe("creating hosts", func() { Expect(definednet.CreateHost(ctx, client, definednet.CreateHostRequest{ NetworkID: "network-id", RoleID: "role-id", - Name: "host.smaily.testing", + Name: "host.defined.test", IPAddress: "10.0.0.1", StaticAddresses: []string{"127.0.0.1:8484", "172.16.0.1:8484"}, ListenPort: 8484, @@ -49,7 +49,7 @@ var _ = Describe("creating hosts", func() { "ID": Equal("host-id"), "NetworkID": Equal("network-id"), "RoleID": Equal("role-id"), - "Name": Equal("host.smaily.testing"), + "Name": Equal("host.defined.test"), "IPAddress": Equal("10.0.0.1"), "StaticAddresses": HaveExactElements("127.0.0.1:8484", "172.16.0.1:8484"), "ListenPort": Equal(8484), @@ -84,7 +84,7 @@ var _ = Describe("getting hosts", func() { "ID": Equal("host-id"), "NetworkID": Equal("network-id"), "RoleID": Equal("role-id"), - "Name": Equal("host.smaily.testing"), + "Name": Equal("host.defined.test"), "IPAddress": Equal("10.0.0.1"), "StaticAddresses": HaveExactElements("127.0.0.1:8484", "172.16.0.1:8484"), "ListenPort": Equal(8484), @@ -102,7 +102,7 @@ var _ = Describe("updating hosts", func() { ghttp.VerifyRequest(http.MethodPut, "/v2/hosts/host-id"), ghttp.VerifyJSONRepresenting(map[string]any{ "roleID": "role-id", - "name": "host.smaily.testing", + "name": "host.defined.test", "staticAddresses": []string{"127.0.0.1:8484", "172.16.0.1:8484"}, "listenPort": 8484, "tags": []string{"tag:one", "tag:two"}, @@ -113,7 +113,7 @@ var _ = Describe("updating hosts", func() { Expect(definednet.UpdateHost(ctx, client, definednet.UpdateHostRequest{ ID: "host-id", RoleID: "role-id", - Name: "host.smaily.testing", + Name: "host.defined.test", StaticAddresses: []string{"127.0.0.1:8484", "172.16.0.1:8484"}, ListenPort: 8484, Tags: []string{"tag:one", "tag:two"}, @@ -128,7 +128,7 @@ var _ = Describe("updating hosts", func() { "ID": Equal("host-id"), "NetworkID": Equal("network-id"), "RoleID": Equal("role-id"), - "Name": Equal("host.smaily.testing"), + "Name": Equal("host.defined.test"), "IPAddress": Equal("10.0.0.1"), "StaticAddresses": HaveExactElements("127.0.0.1:8484", "172.16.0.1:8484"), "ListenPort": Equal(8484), @@ -149,7 +149,7 @@ var hostJSONResponse = `{ "isLighthouse": true, "isRelay": true, "listenPort": 8484, - "name": "host.smaily.testing", + "name": "host.defined.test", "networkID": "network-id", "organizationID": "org-id", "roleID": "role-id",