mirror of https://github.com/grpc/grpc-go.git
correct a test case name
This commit is contained in:
parent
79d0eb30c0
commit
1fedb82059
|
|
@ -77,7 +77,7 @@ var (
|
|||
service_account_creds: large_unary with service account auth;
|
||||
jwt_token_creds: large_unary with jwt token auth;
|
||||
per_rpc_creds: large_unary with per rpc token;
|
||||
oauth2_token_creds: large_unary with oauth2 token auth;
|
||||
oauth2_auth_token: large_unary with oauth2 token auth;
|
||||
cancel_after_begin: cancellation after metadata has been sent but before payloads are sent;
|
||||
cancel_after_first_response: cancellation after receiving 1st message from the server.`)
|
||||
)
|
||||
|
|
@ -519,7 +519,7 @@ func main() {
|
|||
grpclog.Fatalf("Failed to create JWT credentials: %v", err)
|
||||
}
|
||||
opts = append(opts, grpc.WithPerRPCCredentials(jwtCreds))
|
||||
} else if *testCase == "oauth2_token_creds" {
|
||||
} else if *testCase == "oauth2_auth_token" {
|
||||
opts = append(opts, grpc.WithPerRPCCredentials(oauth.NewOauthAccess(getToken())))
|
||||
}
|
||||
}
|
||||
|
|
@ -564,7 +564,7 @@ func main() {
|
|||
grpclog.Fatalf("TLS is not enabled. TLS is required to execute per_rpc_creds test case.")
|
||||
}
|
||||
doPerRPCCreds(tc)
|
||||
case "oauth2_token_creds":
|
||||
case "oauth2_auth_token":
|
||||
if !*useTLS {
|
||||
grpclog.Fatalf("TLS is not enabled. TLS is required to execute oauth2_token_creds test case.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue