diff --git a/internal/datasource/host/process_test.go b/internal/datasource/host/process_test.go index 3e4a054fa3..51c4579962 100644 --- a/internal/datasource/host/process_test.go +++ b/internal/datasource/host/process_test.go @@ -1,9 +1,15 @@ +// Copyright (c) F5, Inc. +// +// This source code is licensed under the Apache License, Version 2.0 license found in the +// LICENSE file in the root directory of this source tree. + package host import ( + "testing" + "github.com/nginx/agent/v3/internal/model" "github.com/stretchr/testify/assert" - "testing" ) func TestProcess_GetNginxProcesses(t *testing.T) { diff --git a/internal/plugin/process_monitor_plugin_test.go b/internal/plugin/process_monitor_plugin_test.go index 59a2b508a6..afe008c4c0 100644 --- a/internal/plugin/process_monitor_plugin_test.go +++ b/internal/plugin/process_monitor_plugin_test.go @@ -7,10 +7,11 @@ package plugin import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "testing" "time" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/stretchr/testify/require" "github.com/nginx/agent/v3/internal/bus" diff --git a/internal/plugin/resource_plugin.go b/internal/plugin/resource_plugin.go index 2fddb8824a..33ad1e1bd3 100644 --- a/internal/plugin/resource_plugin.go +++ b/internal/plugin/resource_plugin.go @@ -7,10 +7,11 @@ package plugin import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "log/slog" "sync" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/internal/bus" "github.com/nginx/agent/v3/internal/config" diff --git a/internal/plugin/resource_plugin_test.go b/internal/plugin/resource_plugin_test.go index c53a59c25c..4615e2b05e 100644 --- a/internal/plugin/resource_plugin_test.go +++ b/internal/plugin/resource_plugin_test.go @@ -7,9 +7,10 @@ package plugin import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "testing" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/internal/bus" "github.com/nginx/agent/v3/internal/model" diff --git a/internal/service/instance/agent_instance_service.go b/internal/service/instance/agent_instance_service.go index 0fff838e15..7d54a8e61c 100644 --- a/internal/service/instance/agent_instance_service.go +++ b/internal/service/instance/agent_instance_service.go @@ -7,10 +7,11 @@ package instance import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "log/slog" "os" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/internal/config" "google.golang.org/protobuf/types/known/structpb" diff --git a/internal/service/instance/agent_instance_service_test.go b/internal/service/instance/agent_instance_service_test.go index 1976d6f7bc..71080f3ee3 100644 --- a/internal/service/instance/agent_instance_service_test.go +++ b/internal/service/instance/agent_instance_service_test.go @@ -7,9 +7,10 @@ package instance import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "testing" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/test/types" "github.com/stretchr/testify/assert" ) diff --git a/internal/service/instance/data_plane_instance_service.go b/internal/service/instance/data_plane_instance_service.go index 57ffb87249..b115f86770 100644 --- a/internal/service/instance/data_plane_instance_service.go +++ b/internal/service/instance/data_plane_instance_service.go @@ -7,6 +7,7 @@ package instance import ( "context" + "github.com/nginx/agent/v3/internal/datasource/host" "github.com/nginx/agent/v3/api/grpc/mpi/v1" diff --git a/internal/service/instance/nginx_instance_service.go b/internal/service/instance/nginx_instance_service.go index aae57a1881..d7bb28a70b 100644 --- a/internal/service/instance/nginx_instance_service.go +++ b/internal/service/instance/nginx_instance_service.go @@ -10,13 +10,14 @@ import ( "bytes" "context" "fmt" - "github.com/nginx/agent/v3/internal/datasource/host" "log/slog" "os" "path" "regexp" "strings" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/internal/datasource/host/exec" process "github.com/nginx/agent/v3/internal/datasource/nginx" diff --git a/internal/service/instance/nginx_instance_service_test.go b/internal/service/instance/nginx_instance_service_test.go index a16d533c19..92f7184593 100644 --- a/internal/service/instance/nginx_instance_service_test.go +++ b/internal/service/instance/nginx_instance_service_test.go @@ -9,12 +9,13 @@ import ( "bytes" "context" "fmt" - "github.com/nginx/agent/v3/internal/datasource/host" "path/filepath" "sort" "strings" "testing" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/test/helpers" "github.com/stretchr/testify/require" diff --git a/internal/service/instance_service.go b/internal/service/instance_service.go index 9473e542ac..40cbe0aebc 100644 --- a/internal/service/instance_service.go +++ b/internal/service/instance_service.go @@ -7,9 +7,10 @@ package service import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "sync" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/internal/config" "github.com/nginx/agent/v3/internal/service/instance" diff --git a/internal/service/instance_service_test.go b/internal/service/instance_service_test.go index 0699cfac7b..6a64ec712b 100644 --- a/internal/service/instance_service_test.go +++ b/internal/service/instance_service_test.go @@ -7,9 +7,10 @@ package service import ( "context" - "github.com/nginx/agent/v3/internal/datasource/host" "testing" + "github.com/nginx/agent/v3/internal/datasource/host" + "github.com/nginx/agent/v3/api/grpc/mpi/v1" "github.com/nginx/agent/v3/test/protos" "github.com/nginx/agent/v3/test/types"