operator: fix gRPC dialing over UDS (#3201)

* operator: add test for gRPC connection over UDS
This commit is contained in:
Markus Rudy 2024-06-25 10:11:57 +02:00 committed by GitHub
parent e0c5acf2f3
commit 3db3db3bf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 73 additions and 7 deletions

View file

@ -1,4 +1,5 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "upgrade",
@ -13,3 +14,15 @@ go_library(
"@org_golang_google_grpc//credentials/insecure",
],
)
go_test(
name = "upgrade_test",
srcs = ["upgrade_test.go"],
embed = [":upgrade"],
deps = [
"//internal/versions/components",
"//upgrade-agent/upgradeproto",
"@com_github_stretchr_testify//require",
"@org_golang_google_grpc//:grpc",
],
)