Skip to content

Commit

Permalink
provider: Drop smaily branding from test data (#13)
Browse files Browse the repository at this point in the history
Replace `smaily.testing` with `defined.test`.
  • Loading branch information
janartodesk authored Oct 22, 2024
1 parent 4e68bc1 commit 38f5f45
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/definednet/host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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),
Expand Down Expand Up @@ -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),
Expand All @@ -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"},
Expand All @@ -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"},
Expand All @@ -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),
Expand All @@ -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",
Expand Down

0 comments on commit 38f5f45

Please sign in to comment.