Merge pull request #184 from openHPI/dependabot/go_modules/github.com/influxdata/influxdb-client-go/v2-2.9.2
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -166,6 +166,7 @@ jobs:
|
|||||||
sudo ./nomad agent -dev -log-level=WARN -config e2e-config.hcl &
|
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
|
until curl -s --fail http://localhost:4646/v1/agent/health ; do sleep 1; done
|
||||||
chmod +x ./poseidon
|
chmod +x ./poseidon
|
||||||
|
echo $POSEIDON_AWS_FUNCTIONS
|
||||||
./poseidon &
|
./poseidon &
|
||||||
until curl -s --fail http://localhost:7200/api/v1/health ; do sleep 1; done
|
until curl -s --fail http://localhost:7200/api/v1/health ; do sleep 1; done
|
||||||
make e2e-test
|
make e2e-test
|
||||||
|
2
go.mod
2
go.mod
@@ -9,7 +9,7 @@ require (
|
|||||||
github.com/gorilla/websocket v1.5.0
|
github.com/gorilla/websocket v1.5.0
|
||||||
github.com/hashicorp/nomad v1.3.2
|
github.com/hashicorp/nomad v1.3.2
|
||||||
github.com/hashicorp/nomad/api v0.0.0-20220607124903-78553f9aad20
|
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/mitchellh/mapstructure v1.5.0
|
||||||
github.com/sirupsen/logrus v1.9.0
|
github.com/sirupsen/logrus v1.9.0
|
||||||
github.com/stretchr/testify v1.8.0
|
github.com/stretchr/testify v1.8.0
|
||||||
|
4
go.sum
4
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-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 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I=
|
||||||
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
|
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.2 h1:Ikx1PGrowBjDdrREGfptotebzaLFmAAWv6Wq4hSdvcI=
|
||||||
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/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 h1:7JTmneyiNEwVBOHSjoMxiWAqB992atOeepeFYegn5RU=
|
||||||
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo=
|
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=
|
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
||||||
|
@@ -65,6 +65,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
func initAWS() {
|
func initAWS() {
|
||||||
for i, function := range config.Config.AWS.Functions {
|
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)
|
id := dto.EnvironmentID(tests.DefaultEnvironmentIDAsInteger + i + 1)
|
||||||
path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, id.ToString())
|
path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, id.ToString())
|
||||||
request := dto.ExecutionEnvironmentRequest{Image: function}
|
request := dto.ExecutionEnvironmentRequest{Image: function}
|
||||||
|
@@ -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.
|
// 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) {
|
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)
|
req, err := httpRequest(http.MethodPatch, url, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
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) {
|
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)
|
req, err := httpRequest(http.MethodPut, url, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user