From 36e9326dab19839b363f60ca92f771f10637df37 Mon Sep 17 00:00:00 2001 From: freddygv Date: Mon, 12 Apr 2021 17:04:33 -0600 Subject: [PATCH] Fixup wildcard ent assertion --- agent/proxycfg/state_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/proxycfg/state_test.go b/agent/proxycfg/state_test.go index f4c36d5ed..7ffc6f23d 100644 --- a/agent/proxycfg/state_test.go +++ b/agent/proxycfg/state_test.go @@ -1640,7 +1640,9 @@ func TestState_WatchesAndUpdates(t *testing.T) { // Centrally configured upstream defaults should be stored so that upstreams from intentions can inherit them require.Len(t, snap.ConnectProxy.UpstreamConfig, 1) - require.Contains(t, snap.ConnectProxy.UpstreamConfig, "*") + + wc := structs.NewServiceName(structs.WildcardSpecifier, structs.WildcardEnterpriseMeta()) + require.Contains(t, snap.ConnectProxy.UpstreamConfig, wc.String()) }, }, // Valid snapshot after roots, leaf, and intentions