From 04006d80d127a88e85304db5aeb2c06674acf2a6 Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Thu, 7 Dec 2017 01:22:07 +0200 Subject: [PATCH] Get rid of http 501 check --- formats_test.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/formats_test.go b/formats_test.go index 6512f03..820c4a3 100644 --- a/formats_test.go +++ b/formats_test.go @@ -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) } }