Skip to content

Commit

Permalink
Get rid of http 501 check
Browse files Browse the repository at this point in the history
  • Loading branch information
denismakogon committed Dec 6, 2017
1 parent c93cb76 commit 04006d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions formats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,9 @@ func callMultiple(times int, t *testing.T, s *SuiteSetup, fnRoute, fnImage,
t.Errorf("Got unexpected error: %v", err)
}
if response.StatusCode != http.StatusOK {
if response.StatusCode == http.StatusNotImplemented {
// FDK should respond with HTTP 501 Not Implemented if specified protocol not implemented in FDK
t.Logf("It seems like given FDK does not support '%v' format. "+
"That's not a reason to fail, continue testing...", fnFormat)
} else {
t.Log(output.String())
t.Errorf("Status code assertion error.\n\tExpected: %v\n\tActual: %v",
200, response.StatusCode)
}
t.Logf("[app: %v] - [route: %v] - [response data : %v]", s.AppName, fnRoute, output.String())
t.Errorf("Status code assertion error.\n\tExpected: %v\n\tActual: %v",
200, response.StatusCode)
}
}

Expand Down

0 comments on commit 04006d8

Please sign in to comment.