consul/agent/proxycfg
R.B. Boyer 2a56e0055b
proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531)
Prior to this PR for the envoy xDS golden tests in the agent/xds package we
were hand-creating a proxycfg.ConfigSnapshot structure in the proper format for
input to the xDS generator. Over time this intermediate structure has gotten
trickier to build correctly for the various tests.

This PR proposes to switch to using the existing mechanism for turning a
structs.NodeService and a sequence of cache.UpdateEvent copies into a
proxycfg.ConfigSnapshot, as that is less error prone to construct and aligns
more with how the data arrives.

NOTE: almost all of this is in test-related code. I tried super hard to craft
correct event inputs to get the golden files to be the same, or similar enough
after construction to feel ok that i recreated the spirit of the original test
cases.
2022-03-07 11:47:14 -06:00
..
connect_proxy.go Fix race of upstreams with same passthrough ip 2022-02-10 17:01:57 -07:00
ingress_gateway.go proxycfg: introduce explicit UpstreamID in lieu of bare string (#12125) 2022-01-20 10:12:04 -06:00
manager.go reset `coalesceTimer` to nil as soon as the event is consumed (#11924) 2022-01-05 12:17:47 -05:00
manager_test.go Fix race of upstreams with same passthrough ip 2022-02-10 17:01:57 -07:00
mesh_gateway.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
mesh_gateway_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
naming.go Ensure passthrough addresses get cleaned up 2022-02-10 17:01:57 -07:00
naming_oss.go proxycfg: introduce explicit UpstreamID in lieu of bare string (#12125) 2022-01-20 10:12:04 -06:00
naming_test.go Ensure passthrough addresses get cleaned up 2022-02-10 17:01:57 -07:00
proxycfg.go Proxy Config Manager (#4729) 2018-10-10 16:55:34 +01:00
snapshot.go Fix race of upstreams with same passthrough ip 2022-02-10 17:01:57 -07:00
state.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
state_test.go Account for upstream targets in another DC. 2022-02-10 17:01:57 -07:00
terminating_gateway.go Store GatewayKey in proxycfg snapshot for re-use 2021-11-01 13:58:53 -06:00
testing.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_connect_proxy.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_ingress_gateway.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_mesh_gateway.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_terminating_gateway.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_tproxy.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
testing_upstreams.go proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531) 2022-03-07 11:47:14 -06:00
upstreams.go Account for upstream targets in another DC. 2022-02-10 17:01:57 -07:00