need to populate policies in the tests

This commit is contained in:
A.Unger
2021-11-18 11:53:04 +01:00
parent c22d3fc24d
commit c427e623ef

View File

@@ -14,6 +14,7 @@ type matchertest struct {
func TestPrefixRouteMatcher(t *testing.T) {
cfg := config.DefaultConfig()
cfg.Policies = config.DefaultPolicies()
p := NewMultiHostReverseProxy(Config(cfg))
table := []matchertest{
@@ -33,6 +34,7 @@ func TestPrefixRouteMatcher(t *testing.T) {
func TestQueryRouteMatcher(t *testing.T) {
cfg := config.DefaultConfig()
cfg.Policies = config.DefaultPolicies()
p := NewMultiHostReverseProxy(Config(cfg))
table := []matchertest{
@@ -60,6 +62,7 @@ func TestQueryRouteMatcher(t *testing.T) {
func TestRegexRouteMatcher(t *testing.T) {
cfg := config.DefaultConfig()
cfg.Policies = config.DefaultPolicies()
p := NewMultiHostReverseProxy(Config(cfg))
table := []matchertest{