|
4 | 4 | "fmt"
|
5 | 5 | "github.com/zalando/skipper/eskip"
|
6 | 6 | "github.com/zalando/skipper/filters"
|
| 7 | + "github.com/zalando/skipper/predicates" |
7 | 8 | teePredicate "github.com/zalando/skipper/predicates/tee"
|
8 | 9 | "github.com/zalando/skipper/predicates/traffic"
|
9 | 10 | "github.com/zalando/skipper/proxy/backendtest"
|
@@ -45,7 +46,7 @@ func TestLoopbackAndMatchPredicate(t *testing.T) {
|
45 | 46 | registry := make(filters.Registry)
|
46 | 47 | registry.Register(NewTeeLoopback())
|
47 | 48 | p := proxytest.WithRoutingOptions(registry, routing.Options{
|
48 |
| - Predicates: []routing.PredicateSpec{ |
| 49 | + Predicates: []predicates.PredicateSpec{ |
49 | 50 | teePredicate.New(),
|
50 | 51 | traffic.New(),
|
51 | 52 | },
|
@@ -78,7 +79,7 @@ func TestOriginalBackendServeEvenWhenShadowDoesNotReply(t *testing.T) {
|
78 | 79 | registry := make(filters.Registry)
|
79 | 80 | registry.Register(NewTeeLoopback())
|
80 | 81 | p := proxytest.WithRoutingOptions(registry, routing.Options{
|
81 |
| - Predicates: []routing.PredicateSpec{ |
| 82 | + Predicates: []predicates.PredicateSpec{ |
82 | 83 | teePredicate.New(),
|
83 | 84 | traffic.New(),
|
84 | 85 | },
|
@@ -109,7 +110,7 @@ func TestOriginalBackendServeEvenWhenShadowIsDown(t *testing.T) {
|
109 | 110 | registry := make(filters.Registry)
|
110 | 111 | registry.Register(NewTeeLoopback())
|
111 | 112 | p := proxytest.WithRoutingOptions(registry, routing.Options{
|
112 |
| - Predicates: []routing.PredicateSpec{ |
| 113 | + Predicates: []predicates.PredicateSpec{ |
113 | 114 | teePredicate.New(),
|
114 | 115 | traffic.New(),
|
115 | 116 | },
|
@@ -137,7 +138,7 @@ func TestInfiniteLoopback(t *testing.T) {
|
137 | 138 | registry := make(filters.Registry)
|
138 | 139 | registry.Register(NewTeeLoopback())
|
139 | 140 | p := proxytest.WithRoutingOptions(registry, routing.Options{
|
140 |
| - Predicates: []routing.PredicateSpec{ |
| 141 | + Predicates: []predicates.PredicateSpec{ |
141 | 142 | teePredicate.New(),
|
142 | 143 | },
|
143 | 144 | }, routes...)
|
|
0 commit comments