This commit is contained in:
rsafronov 2017-03-02 15:48:36 -05:00
parent 05526e4a66
commit d5ede33f88

View file

@ -136,6 +136,7 @@ func TestHeaderAnnotations(t *testing.T) {
for _, test := range tests {
data[authURL] = test.url
data[authHeaders] = test.headers
data[authMethod] = "GET"
i, err := NewParser().Parse(ing)
if test.expErr {
@ -145,9 +146,11 @@ func TestHeaderAnnotations(t *testing.T) {
continue
}
t.Log(i)
u, ok := i.(*External)
if !ok {
t.Errorf("%v: expected an External type", test.title)
continue
}
if !reflect.DeepEqual(u.ResponseHeaders, test.parsedHeaders) {