From b9a2e0f94c3627124316cfd6632508478550fc64 Mon Sep 17 00:00:00 2001 From: Thomas Eckert Date: Thu, 5 Oct 2023 14:01:19 -0400 Subject: [PATCH] Add intention to cluster peered golden test --- agent/xds/listeners_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/agent/xds/listeners_test.go b/agent/xds/listeners_test.go index 9a03fa04627f..052bfcf80192 100644 --- a/agent/xds/listeners_test.go +++ b/agent/xds/listeners_test.go @@ -1076,7 +1076,7 @@ func TestListenersFromSnapshot(t *testing.T) { roots, _ := proxycfg.TestCerts(t) return proxycfg.TestConfigSnapshotTerminatingGateway(t, true, nil, []proxycfg.UpdateEvent{ { - CorrelationID: "peer-trust-bundle:", + CorrelationID: "peer-trust-bundle:web", Result: &pbpeering.TrustBundleListByServiceResponse{ Bundles: []*pbpeering.PeeringTrustBundle{ { @@ -1093,6 +1093,15 @@ func TestListenersFromSnapshot(t *testing.T) { }, }, }, + { + CorrelationID: "service-intentions:web", + Result: structs.SimplifiedIntentions{ + { + SourceName: "*", + DestinationName: "web", + }, + }, + }, }) }, },