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. |
||
---|---|---|
.. | ||
clusters | ||
endpoints | ||
listeners | ||
rbac | ||
routes | ||
alt-test-leaf-cert.golden | ||
alt-test-leaf-key.golden | ||
alt-test-root-cert.golden | ||
cache-test-leaf-cert.golden | ||
cache-test-leaf-key.golden | ||
db-test-leaf-cert.golden | ||
db-test-leaf-key.golden | ||
test-leaf-cert.golden | ||
test-leaf-key.golden | ||
test-root-cert.golden |