diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4e65ac..41c9ef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,6 +166,7 @@ jobs: sudo ./nomad agent -dev -log-level=WARN -config e2e-config.hcl & until curl -s --fail http://localhost:4646/v1/agent/health ; do sleep 1; done chmod +x ./poseidon + echo $POSEIDON_AWS_FUNCTIONS ./poseidon & until curl -s --fail http://localhost:7200/api/v1/health ; do sleep 1; done make e2e-test diff --git a/go.mod b/go.mod index 085c4be..5ff452c 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/gorilla/websocket v1.5.0 github.com/hashicorp/nomad v1.3.2 github.com/hashicorp/nomad/api v0.0.0-20220607124903-78553f9aad20 - github.com/influxdata/influxdb-client-go/v2 v2.9.1 + github.com/influxdata/influxdb-client-go/v2 v2.9.2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.0 github.com/stretchr/testify v1.8.0 diff --git a/go.sum b/go.sum index 70958bb..b383afa 100644 --- a/go.sum +++ b/go.sum @@ -252,8 +252,8 @@ github.com/hashicorp/vault/sdk v0.5.0/go.mod h1:UJZHlfwj7qUJG8g22CuxUgkdJouFrBNv github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/influxdata/influxdb-client-go/v2 v2.9.1 h1:5kbH226fmmiV0MMTs7a8L7/ECCKdJWBi1QZNNv4/TkI= -github.com/influxdata/influxdb-client-go/v2 v2.9.1/go.mod h1:x7Jo5UHHl+w8wu8UnGiNobDDHygojXwJX4mx7rXGKMk= +github.com/influxdata/influxdb-client-go/v2 v2.9.2 h1:Ikx1PGrowBjDdrREGfptotebzaLFmAAWv6Wq4hSdvcI= +github.com/influxdata/influxdb-client-go/v2 v2.9.2/go.mod h1:x7Jo5UHHl+w8wu8UnGiNobDDHygojXwJX4mx7rXGKMk= github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf h1:7JTmneyiNEwVBOHSjoMxiWAqB992atOeepeFYegn5RU= github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index bda7403..d0aa82a 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -65,6 +65,7 @@ func TestMain(m *testing.M) { func initAWS() { for i, function := range config.Config.AWS.Functions { + log.WithField("function", function).Warn("Yes, we do have functions.") id := dto.EnvironmentID(tests.DefaultEnvironmentIDAsInteger + i + 1) path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, id.ToString()) request := dto.ExecutionEnvironmentRequest{Image: function} diff --git a/tests/helpers/test_helpers.go b/tests/helpers/test_helpers.go index c1b6553..32dfb01 100644 --- a/tests/helpers/test_helpers.go +++ b/tests/helpers/test_helpers.go @@ -143,6 +143,7 @@ func HTTPDelete(url string, body io.Reader) (response *http.Response, err error) // HTTPPatch sends a Patch Http Request with body to the passed url. func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response, err error) { + //nolint:noctx // we don't need a http.NewRequestWithContext in our tests req, err := httpRequest(http.MethodPatch, url, body) if err != nil { return nil, err @@ -157,6 +158,7 @@ func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response } func HTTPPut(url string, body io.Reader) (response *http.Response, err error) { + //nolint:noctx // we don't need a http.NewRequestWithContext in our tests req, err := httpRequest(http.MethodPut, url, body) if err != nil { return nil, err