Skip to content

Commit

Permalink
Remove remote server connection from tests -- sometimes, the connecti…
Browse files Browse the repository at this point in the history
…on dial seems to stall
  • Loading branch information
evankanderson committed Jan 30, 2025
1 parent 5f939c3 commit 9a90f47
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions internal/util/cli/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9a90f47

Please sign in to comment.