mirror of https://github.com/status-im/consul.git
2a56e0055b
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. |
||
---|---|---|
.. | ||
connect-proxy-lb-in-resolver.envoy-1-20-x.golden | ||
connect-proxy-with-chain-and-overrides.envoy-1-20-x.golden | ||
connect-proxy-with-chain-and-router.envoy-1-20-x.golden | ||
connect-proxy-with-chain-and-splitter.envoy-1-20-x.golden | ||
connect-proxy-with-chain-external-sni.envoy-1-20-x.golden | ||
connect-proxy-with-chain.envoy-1-20-x.golden | ||
connect-proxy-with-grpc-router.envoy-1-20-x.golden | ||
defaults.envoy-1-20-x.golden | ||
ingress-defaults-no-chain.envoy-1-20-x.golden | ||
ingress-http-multiple-services.envoy-1-20-x.golden | ||
ingress-lb-in-resolver.envoy-1-20-x.golden | ||
ingress-splitter-with-resolver-redirect.envoy-1-20-x.golden | ||
ingress-with-chain-and-router-header-manip.envoy-1-20-x.golden | ||
ingress-with-chain-and-router.envoy-1-20-x.golden | ||
ingress-with-chain-and-splitter.envoy-1-20-x.golden | ||
ingress-with-chain-external-sni.envoy-1-20-x.golden | ||
ingress-with-chain.envoy-1-20-x.golden | ||
ingress-with-grpc-router.envoy-1-20-x.golden | ||
ingress-with-sds-listener-level-wildcard.envoy-1-20-x.golden | ||
ingress-with-sds-listener-level.envoy-1-20-x.golden | ||
ingress-with-sds-service-level-mixed-tls.envoy-1-20-x.golden | ||
ingress-with-sds-service-level.envoy-1-20-x.golden | ||
splitter-with-resolver-redirect.envoy-1-20-x.golden | ||
terminating-gateway-lb-config.envoy-1-20-x.golden |