As few of the features are not available in Gateway(s) currently, Check if err value is NotImplemented, and log as NA in that case and continue execution. Otherwise log as failure and return
(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error)
| 169 | // As few of the features are not available in Gateway(s) currently, Check if err value is NotImplemented, |
| 170 | // and log as NA in that case and continue execution. Otherwise log as failure and return |
| 171 | func logError(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error) { |
| 172 | // If server returns NotImplemented we assume it is gateway mode and hence log it as info and move on to next tests |
| 173 | // Special case for ComposeObject API as it is implemented on client side and adds specific error details like `Error in upload-part-copy` in |
| 174 | // addition to NotImplemented error returned from server |
| 175 | if isErrNotImplemented(err) { |
| 176 | logIgnored(testName, function, args, startTime, message) |
| 177 | } else { |
| 178 | logFailure(testName, function, args, startTime, alert, message, err) |
| 179 | if !isRunOnFail() { |
| 180 | panic(fmt.Sprintf("Test failed with message: %s, err: %v", message, err)) |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // Log failed test runs, do not call this directly, use logError instead, as that correctly stops the test run |
| 186 | func logFailure(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error) { |
no test coverage detected