diff --git a/internal/pkg/imports/imports_linux.go b/internal/pkg/imports/imports_linux.go index f608436..3458031 100644 --- a/internal/pkg/imports/imports_linux.go +++ b/internal/pkg/imports/imports_linux.go @@ -65,7 +65,6 @@ import ( _ "google.golang.org/grpc/credentials" _ "google.golang.org/grpc/health/grpc_health_v1" _ "gopkg.in/yaml.v2" - _ "io/ioutil" _ "net" _ "net/url" _ "os" diff --git a/main.go b/main.go index 91dc0e6..a5d7dc2 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,6 @@ import ( "context" "crypto/tls" "fmt" - "io/ioutil" "net" "net/url" "os" @@ -243,7 +242,7 @@ func main() { ) server := grpc.NewServer(options...) responderEndpoint.Register(server) - tmpDir, err := ioutil.TempDir("", config.Name) + tmpDir, err := os.MkdirTemp("", config.Name) if err != nil { logrus.Fatalf("error creating tmpDir %+v", err) } @@ -298,7 +297,7 @@ func main() { clientinfo.NewNetworkServiceEndpointRegistryClient(), registrysendfd.NewNetworkServiceEndpointRegistryClient(), ), - registryclient.WithAuthorizeNSRegistryClient(registryauthorize.NewNetworkServiceRegistryClient()), + registryclient.WithAuthorizeNSERegistryClient(registryauthorize.NewNetworkServiceEndpointRegistryClient()), ) nse := getNseEndpoint(config, listenOn) nse, err = nseRegistryClient.Register(ctx, nse) diff --git a/suite_setup_test.go b/suite_setup_test.go index bb1bf56..81af61f 100644 --- a/suite_setup_test.go +++ b/suite_setup_test.go @@ -117,6 +117,8 @@ func (f *TestSuite) SetupSuite() { registryServer := registrychain.NewNetworkServiceEndpointRegistryServer( grpcmetadata.NewNetworkServiceEndpointRegistryServer(), registrybegin.NewNetworkServiceEndpointRegistryServer(), + updatepath.NewNetworkServiceEndpointRegistryServer(spiffejwt.TokenGeneratorFunc(source, f.config.MaxTokenLifetime)), + authorize.NewNetworkServiceEndpointRegistryServer(), expire.NewNetworkServiceEndpointRegistryServer(f.ctx, time.Minute), registryrecvfd.NewNetworkServiceEndpointRegistryServer(), memrg,