consul/agent/rpc/peering
Matt Keeler 49e6c0232d
Panic for unregistered types (#20476)
* Panic when controllers attempt to make invalid requests to the resource service

This will help to catch bugs in tests that could cause infinite errors to be emitted.

* Disable the API GW v2 controller

With the previous commit, this would cause a server to panic due to watching a type which has not yet been created/registered.

* Ensure that a test server gets the full type registry instead of constructing its own

* Skip TestServer_ControllerDependencies

* Fix peering tests so that they use the full resource registry.
2024-02-06 11:23:06 -05:00
..
service.go Various race condition and test fixes. (#20212) 2024-01-16 08:57:43 -06:00
service_ce_test.go Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
service_test.go Panic for unregistered types (#20476) 2024-02-06 11:23:06 -05:00
testing.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
testutil_ce_test.go Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
validate.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
validate_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00