(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func (s) TestCredsBundlePerRPCCredentials(t *testing.T) { |
| 133 | te := newTest(t, env{name: "creds-bundle", network: "tcp", security: "empty"}) |
| 134 | te.tapHandle = authHandle |
| 135 | te.customDialOptions = []grpc.DialOption{ |
| 136 | grpc.WithCredentialsBundle(&testCredsBundle{t: t, mode: bundlePerRPCOnly}), |
| 137 | } |
| 138 | te.startServer(&testServer{}) |
| 139 | defer te.tearDown() |
| 140 | |
| 141 | cc := te.clientConn() |
| 142 | tc := testgrpc.NewTestServiceClient(cc) |
| 143 | ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) |
| 144 | defer cancel() |
| 145 | if _, err := tc.EmptyCall(ctx, &testpb.Empty{}); err != nil { |
| 146 | t.Fatalf("Test failed. Reason: %v", err) |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | type clientTimeoutCreds struct { |
| 151 | credentials.TransportCredentials |
nothing calls this directly
no test coverage detected