test fix
This commit is contained in:
parent
05526e4a66
commit
d5ede33f88
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,7 @@ func TestHeaderAnnotations(t *testing.T) {
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
data[authURL] = test.url
|
data[authURL] = test.url
|
||||||
data[authHeaders] = test.headers
|
data[authHeaders] = test.headers
|
||||||
|
data[authMethod] = "GET"
|
||||||
|
|
||||||
i, err := NewParser().Parse(ing)
|
i, err := NewParser().Parse(ing)
|
||||||
if test.expErr {
|
if test.expErr {
|
||||||
|
@ -145,9 +146,11 @@ func TestHeaderAnnotations(t *testing.T) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t.Log(i)
|
||||||
u, ok := i.(*External)
|
u, ok := i.(*External)
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Errorf("%v: expected an External type", test.title)
|
t.Errorf("%v: expected an External type", test.title)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if !reflect.DeepEqual(u.ResponseHeaders, test.parsedHeaders) {
|
if !reflect.DeepEqual(u.ResponseHeaders, test.parsedHeaders) {
|
||||||
|
|
Loading…
Reference in a new issue