Merge pull request #10003 from hashicorp/proxycfg-tproxy-ent-fixup

Fixup wildcard ent assertion
This commit is contained in:
Freddy 2021-04-13 09:56:05 -06:00 committed by GitHub
commit 86bd47c7a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 // Centrally configured upstream defaults should be stored so that upstreams from intentions can inherit them
require.Len(t, snap.ConnectProxy.UpstreamConfig, 1) 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 // Valid snapshot after roots, leaf, and intentions