open-consul/agent/xds
R.B. Boyer cc4733e60d
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
..
proxysupport
testdata
clusters.go
clusters_test.go
config.go
config_test.go
delta.go
delta_test.go
endpoints.go
endpoints_test.go
envoy_versioning.go
envoy_versioning_test.go
failover_math.go
failover_math_test.go
golden_test.go
listeners.go
listeners_ingress.go
listeners_test.go
naming.go
net_fallback.go
net_linux.go
protocol_trace.go
rbac.go
rbac_test.go
resources.go
response.go
routes.go
routes_test.go
server.go
server_oss.go
testing.go
xds.go
xds_protocol_helpers_test.go
z_xds_packages.go
z_xds_packages_test.go