Skip to content

Commit

Permalink
test: validate action endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Jun 21, 2024
1 parent 6f3454b commit ad3a8a7
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 54 deletions.
13 changes: 11 additions & 2 deletions e2e/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ package e2e
import (
"context"
"github.com/steadybit/action-kit/go/action_kit_test/e2e"
actValidate "github.com/steadybit/action-kit/go/action_kit_test/validate"
"github.com/steadybit/discovery-kit/go/discovery_kit_api"
"github.com/steadybit/discovery-kit/go/discovery_kit_test/validate"
disValidate "github.com/steadybit/discovery-kit/go/discovery_kit_test/validate"
"github.com/steadybit/extension-kit/extlogging"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -49,11 +50,19 @@ func TestWithMinikube(t *testing.T) {
Name: "validate discovery",
Test: validateDiscovery,
},
{
Name: "validate Actions",
Test: validateActions,
},
})
}

func validateDiscovery(t *testing.T, _ *e2e.Minikube, e *e2e.Extension) {
assert.NoError(t, validate.ValidateEndpointReferences("/", e.Client))
assert.NoError(t, disValidate.ValidateEndpointReferences("/", e.Client))
}

func validateActions(t *testing.T, _ *e2e.Minikube, e *e2e.Extension) {
assert.NoError(t, actValidate.ValidateEndpointReferences("/", e.Client))
}

func testDiscovery(t *testing.T, m *e2e.Minikube, e *e2e.Extension) {
Expand Down
34 changes: 17 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/steadybit/extension-datadog

go 1.22.0

toolchain go1.22.2
toolchain go1.22.1

require (
github.com/DataDog/datadog-api-client-go/v2 v2.26.0
Expand All @@ -15,44 +15,44 @@ require (
github.com/rs/zerolog v1.33.0
github.com/steadybit/action-kit/go/action_kit_api/v2 v2.9.0
github.com/steadybit/action-kit/go/action_kit_sdk v1.1.9
github.com/steadybit/action-kit/go/action_kit_test v1.2.14
github.com/steadybit/action-kit/go/action_kit_test v1.2.15
github.com/steadybit/discovery-kit/go/discovery_kit_api v1.5.2
github.com/steadybit/discovery-kit/go/discovery_kit_commons v0.1.0
github.com/steadybit/discovery-kit/go/discovery_kit_sdk v1.0.6
github.com/steadybit/discovery-kit/go/discovery_kit_sdk v1.0.7
github.com/steadybit/discovery-kit/go/discovery_kit_test v1.1.2
github.com/steadybit/event-kit/go/event_kit_api v1.3.1
github.com/steadybit/extension-kit v1.8.14
github.com/steadybit/extension-kit v1.8.15
github.com/stretchr/testify v1.9.0
go.uber.org/automaxprocs v1.5.3
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
)

require (
github.com/DataDog/zstd v1.5.5 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/cilium/ebpf v0.14.0 // indirect
github.com/cilium/ebpf v0.15.0 // indirect
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/elastic/go-sysinfo v1.14.0 // indirect
github.com/elastic/go-windows v1.0.1 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/getkin/kin-openapi v0.124.0 // indirect
github.com/getkin/kin-openapi v0.125.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-resty/resty/v2 v2.13.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/invopop/yaml v0.2.0 // indirect
github.com/invopop/yaml v0.3.1 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand All @@ -70,7 +70,7 @@ require (
github.com/perimeterx/marshmallow v1.1.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/procfs v0.13.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -79,20 +79,20 @@ require (
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/zmwangx/debounce v1.0.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.19.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
howett.net/plist v1.0.1 // indirect
k8s.io/api v0.30.0 // indirect
k8s.io/apimachinery v0.30.0 // indirect
k8s.io/client-go v0.30.0 // indirect
k8s.io/api v0.30.2 // indirect
k8s.io/apimachinery v0.30.2 // indirect
k8s.io/client-go v0.30.2 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
Expand Down
Loading

0 comments on commit ad3a8a7

Please sign in to comment.