Commit Graph

29 Commits

Author SHA1 Message Date
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Easwar Swaminathan 912765f749
xds: move bootstrap config generating utility package to testutils (#5713) 2022-10-17 09:34:01 -07:00
Easwar Swaminathan 9c3e589d3e
rls: delegate pick to child policy as long as it is not in TransientFailure (#5656) 2022-09-15 15:55:46 -07:00
Easwar Swaminathan 60a3a7e969
cleanup: fixes for issues surfaced by vet (#5617) 2022-09-02 14:09:10 -07:00
Abirdcfly c351f37ddc
chore: remove duplicate word in comments (#5616) 2022-08-30 14:01:37 -07:00
Easwar Swaminathan fe592260bf
clusterresolver: deflake eds_impl tests (#5562) 2022-08-29 16:23:12 -07:00
Doug Fawley c56f196d25
internal/fakegrpclb: don't listen on all adapters (#5592) 2022-08-18 08:06:30 -07:00
Easwar Swaminathan 6f34b7ad15
xdsclient: NACK endpoint resource if load_balancing_weight is specified and is zero (#5568) 2022-08-05 15:12:37 -07:00
Easwar Swaminathan 946dde008f
xdsclient: NACK endpoint resources with zero weight (#5560) 2022-08-03 16:46:34 -07:00
Easwar Swaminathan a6dcb714b2
xdsclient: don't reset version info after stream restart (#5422) 2022-07-06 10:31:02 -07:00
Doug Fawley 3e7b97febc
xds/priority: bug fix and minor behavior change (#5417) 2022-06-17 11:14:31 -07:00
Doug Fawley 70a80552d5
xds/priority: clean up tests (#5387) 2022-05-31 15:44:42 -07:00
Easwar Swaminathan c0e35731fa
xds: move e2e tests into grpc/test/xds directory (#5363) 2022-05-24 11:13:30 -07:00
Zach Reyes e583b196ce
xds: Add RLS in xDS e2e test (#5281) 2022-04-04 14:38:37 -07:00
Easwar Swaminathan 42cadc171d
test: cleanup balancer switching tests (#5271) 2022-03-30 12:58:41 -07:00
Easwar Swaminathan 50f82701b5
rls: control channel implementation (#5046) 2021-12-15 09:37:05 -08:00
Easwar Swaminathan 714ba8d517
xds: move balancergroup and weightedtarget our of xds directory (#4966) 2021-11-09 11:59:10 -08:00
Easwar Swaminathan 1163cfabe9
xds: move LocalTCPListener to internal/testutils (#4920) 2021-11-01 14:32:55 -07:00
Easwar Swaminathan 6d465fe912
grpclb: move restartableListener to testutils (#4919) 2021-11-01 11:04:24 -07:00
Easwar Swaminathan fab5982df2
xds: server-side listener network filter validation (#4312) 2021-04-09 16:49:25 -07:00
Doug Fawley b88744b832
xds: add ConfigSelector to support RouteAction timeouts (#3991) 2020-11-17 13:22:28 -08:00
Easwar Swaminathan 866de13d56
meshca: CertificateProvider plugin implementation. (#3871) 2020-09-29 17:40:30 -07:00
Easwar Swaminathan d25c71b543
testutils: Add a context parameter to the Receive() method. (#3835) 2020-08-27 13:55:15 -07:00
Easwar Swaminathan b0ac601168
rls: LB policy with only control channel handling (#3496) 2020-04-28 10:47:24 -07:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
lzhfromustc da2bec01b9 test & testutils: prevent goroutine leaks in test functions (#3133) 2019-11-01 14:51:58 -07:00
Easwar Swaminathan a5396fd45c
Remove call to proto.Clone() in http2Server.WriteStatus. (#2842)
* Expose a method from the internal package to get to the raw
  StatusProto wrapped by the status error, and use it from
  http2Server.WriteStatus().
* Add a helper method in internal/testutils to compare two status errors
  and update test code to use that instead of reflect.DeepEqual()
2019-06-10 15:03:12 -07:00
Doug Fawley a88340f3c8 internal: add testutils package comment (#2414) 2018-10-30 16:29:06 -07:00
Jean de Klerk 04c0c4d299
internal: fix client send preface problems (#2380)
internal: fix client send preface problems

This CL fixes three problems:

- In clientconn_state_transitions_test.go, sometimes tests would flake because there's not enough buffer to send client side settings, causing the connection to unpredictably enter TRANSIENT FAILURE. Each time we set up a server to send SETTINGS, we should also set up the server to read. This allows the client to successfully send its SETTINGS, unflaking the test.

- In clientconn.go, we incorrectly transitioned into TRANSIENT FAILURE when creating an http2client returned an error. This should be handled in the outer resetTransport main reset loop. The reason this became a problem is that the outer resetTransport has very specific conditions around when to transition into TRANSIENT FAILURE that the egregious transition did not have. So, it could transition into TRANSIENT FAILURE after failing to dial, even if it was trying to connect to a non-final address in the list of addresses.

- In clientconn.go, we incorrectly stay in CONNECTING after `createTransport` when a server sends its connection preface but the client is not able to send its connection preface. This CL causes the addrconn to correctly enter TRANSIENT FAILURE when `createTransport` fails, even if a server preface was received. It does so by making ac.successfulHandshake to consider both server preface received as well as client preface sent.
2018-10-18 14:31:34 -07:00