From db1678208deee804e50fab8907b093234efb23ae Mon Sep 17 00:00:00 2001 From: afeiszli Date: Wed, 11 May 2022 12:11:47 -0400 Subject: [PATCH 1/2] fixing test --- controllers/node_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/node_test.go b/controllers/node_test.go index e17fe3bf..6c3cddf4 100644 --- a/controllers/node_test.go +++ b/controllers/node_test.go @@ -25,7 +25,7 @@ func TestCreateEgressGateway(t *testing.T) { assert.EqualError(t, err, "could not find any records") }) t.Run("Non-linux node", func(t *testing.T) { - createnode := models.Node{PublicKey: "DM5qhLAE20PG9BbfBCger+Ac9D2NDOwCtY1rbYDLf34=", Name: "testnode", Endpoint: "10.0.0.1", MacAddress: "01:02:03:04:05:06", Password: "password", Network: "skynet", OS: "freebsd"} + createnode := models.Node{PublicKey: "DM5qhLAE20PG9BbfBCger+Ac9D2NDOwCtY1rbYDLf34=", Name: "testnode", Endpoint: "10.0.0.1", MacAddress: "01:02:03:04:05:06", Password: "password", Network: "skynet", OS: "windows"} err := logic.CreateNode(&createnode) assert.Nil(t, err) gateway.NodeID = createnode.ID From ccee46e58f61fd606d73f204a75855d79e845e54 Mon Sep 17 00:00:00 2001 From: afeiszli Date: Wed, 11 May 2022 12:15:54 -0400 Subject: [PATCH 2/2] fixing test --- controllers/node_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/node_test.go b/controllers/node_test.go index 6c3cddf4..bfb24eea 100644 --- a/controllers/node_test.go +++ b/controllers/node_test.go @@ -31,7 +31,7 @@ func TestCreateEgressGateway(t *testing.T) { gateway.NodeID = createnode.ID node, err := logic.CreateEgressGateway(gateway) assert.Equal(t, models.Node{}, node) - assert.EqualError(t, err, "freebsd is unsupported for egress gateways") + assert.EqualError(t, err, "windows is unsupported for egress gateways") }) t.Run("Success", func(t *testing.T) { deleteAllNodes()