mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-23 05:59:28 -06:00
need to populate policies in the tests
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user