Move opentracing configuration for location to go (#4965)
This commit is contained in:
parent
a4f3467f9b
commit
7ff49b25d6
6 changed files with 70 additions and 44 deletions
|
|
@ -74,9 +74,7 @@ func TestIngressAnnotationOpentracingSetTrue(t *testing.T) {
|
|||
if !ok {
|
||||
t.Errorf("expected a Config type")
|
||||
}
|
||||
if !openTracing.Set {
|
||||
t.Errorf("expected annotation value to be set")
|
||||
}
|
||||
|
||||
if !openTracing.Enabled {
|
||||
t.Errorf("expected annotation value to be true, got false")
|
||||
}
|
||||
|
|
@ -95,9 +93,7 @@ func TestIngressAnnotationOpentracingSetFalse(t *testing.T) {
|
|||
if !ok {
|
||||
t.Errorf("expected a Config type")
|
||||
}
|
||||
if !openTracing.Set {
|
||||
t.Errorf("expected annotation value to be set")
|
||||
}
|
||||
|
||||
if openTracing.Enabled {
|
||||
t.Errorf("expected annotation value to be false, got true")
|
||||
}
|
||||
|
|
@ -111,11 +107,8 @@ func TestIngressAnnotationOpentracingUnset(t *testing.T) {
|
|||
ing.SetAnnotations(data)
|
||||
|
||||
val, _ := NewParser(&resolver.Mock{}).Parse(ing)
|
||||
openTracing, ok := val.(*Config)
|
||||
_, ok := val.(*Config)
|
||||
if !ok {
|
||||
t.Errorf("expected a Config type")
|
||||
}
|
||||
if openTracing.Set {
|
||||
t.Errorf("expected annotation value to be unset")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue