diff --git a/internal/util/cli/credentials_test.go b/internal/util/cli/credentials_test.go index a242f159ad..c64458a70a 100644 --- a/internal/util/cli/credentials_test.go +++ b/internal/util/cli/credentials_test.go @@ -69,7 +69,7 @@ func TestGetGrpcConnection(t *testing.T) { }, { name: "Valid GRPC connection to localhost with insecure connection", - grpcHost: "127.0.0.1", + grpcHost: "localhost", grpcPort: 8090, allowInsecure: true, issuerUrl: "http://localhost:8081", @@ -87,36 +87,6 @@ func TestGetGrpcConnection(t *testing.T) { envToken: "", expectedError: false, }, - { - name: "Valid GRPC connection to remote server with secure connection", - grpcHost: "api.stacklok.com", - grpcPort: 443, - allowInsecure: false, - issuerUrl: "https://auth.stacklok.com", - clientId: "minder-cli", - envToken: "MINDER_AUTH_TOKEN", - expectedError: false, - }, - { - name: "Valid GRPC connection to remote server with insecure connection", - grpcHost: "api.stacklok.com", - grpcPort: 443, - allowInsecure: true, - issuerUrl: "https://auth.stacklok.com", - clientId: "minder-cli", - envToken: "MINDER_AUTH_TOKEN", - expectedError: false, - }, - { - name: "Valid GRPC connection to remote server without passing MINDER_AUTH_TOKEN as an argument", - grpcHost: "api.stacklok.com", - grpcPort: 443, - allowInsecure: false, - issuerUrl: "https://auth.stacklok.com", - clientId: "minder-cli", - envToken: "", - expectedError: false, - }, } for _, tt := range tests {