(t *testing.T, e env)
| 330 | } |
| 331 | |
| 332 | func testPerRPCCredentialsViaDialOptions(t *testing.T, e env) { |
| 333 | te := newTest(t, e) |
| 334 | te.tapHandle = authHandle |
| 335 | te.perRPCCreds = testPerRPCCredentials{authdata: authdata} |
| 336 | te.startServer(&testServer{security: e.security}) |
| 337 | defer te.tearDown() |
| 338 | |
| 339 | cc := te.clientConn() |
| 340 | tc := testgrpc.NewTestServiceClient(cc) |
| 341 | ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) |
| 342 | defer cancel() |
| 343 | if _, err := tc.EmptyCall(ctx, &testpb.Empty{}); err != nil { |
| 344 | t.Fatalf("Test failed. Reason: %v", err) |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | func (s) TestPerRPCCredentialsViaCallOptions(t *testing.T) { |
| 349 | for _, e := range listTestEnv() { |
no test coverage detected