diff --git a/pkg/checks/health/health.go b/pkg/checks/health/health.go index 0624573b..4c240f9d 100644 --- a/pkg/checks/health/health.go +++ b/pkg/checks/health/health.go @@ -31,7 +31,6 @@ import ( "github.com/caas-team/sparrow/pkg/api" "github.com/caas-team/sparrow/pkg/checks" "github.com/caas-team/sparrow/pkg/checks/errors" - "github.com/caas-team/sparrow/pkg/checks/oapi" "github.com/caas-team/sparrow/pkg/checks/types" "github.com/getkin/kin-openapi/openapi3" "github.com/prometheus/client_golang/prometheus" @@ -149,7 +148,7 @@ func (h *Health) SetConfig(ctx context.Context, conf any) error { // Schema provides the schema of the data that will be provided // by the health check func (h *Health) Schema() (*openapi3.SchemaRef, error) { - return oapi.OpenapiFromPerfData[map[string]string](map[string]string{}) + return checks.OpenapiFromPerfData[map[string]string](map[string]string{}) } // RegisterHandler dynamically registers a server handler diff --git a/pkg/checks/latency/latency.go b/pkg/checks/latency/latency.go index d326de1a..941be3e9 100644 --- a/pkg/checks/latency/latency.go +++ b/pkg/checks/latency/latency.go @@ -34,7 +34,6 @@ import ( "github.com/caas-team/sparrow/pkg/api" "github.com/caas-team/sparrow/pkg/checks" "github.com/caas-team/sparrow/pkg/checks/errors" - "github.com/caas-team/sparrow/pkg/checks/oapi" "github.com/caas-team/sparrow/pkg/checks/types" ) @@ -147,7 +146,7 @@ func (l *Latency) SetConfig(ctx context.Context, conf any) error { // Schema provides the schema of the data that will be provided // by the latency check func (l *Latency) Schema() (*openapi3.SchemaRef, error) { - return oapi.OpenapiFromPerfData(make(map[string]Result)) + return checks.OpenapiFromPerfData(make(map[string]Result)) } // RegisterHandler registers a server handler diff --git a/pkg/checks/oapi/oapi.go b/pkg/checks/oapi.go similarity index 99% rename from pkg/checks/oapi/oapi.go rename to pkg/checks/oapi.go index 56712019..c88b2000 100644 --- a/pkg/checks/oapi/oapi.go +++ b/pkg/checks/oapi.go @@ -16,7 +16,7 @@ // specific language governing permissions and limitations // under the License. -package oapi +package checks import ( "github.com/caas-team/sparrow/pkg/checks/types" diff --git a/pkg/checks/oapi/oapi_test.go b/pkg/checks/oapi_test.go similarity index 99% rename from pkg/checks/oapi/oapi_test.go rename to pkg/checks/oapi_test.go index 57b4aed1..298da607 100644 --- a/pkg/checks/oapi/oapi_test.go +++ b/pkg/checks/oapi_test.go @@ -16,7 +16,7 @@ // specific language governing permissions and limitations // under the License. -package oapi +package checks import ( "reflect"