v1.11.3
This commit is contained in:
@@ -51,15 +51,12 @@ func getBytesFromJSON(fileName string, t *testing.T) []byte {
|
||||
|
||||
func getErrorsFromJSON(bytes []byte, t *testing.T, cloud string) {
|
||||
var requests map[string]interface{}
|
||||
var logFileName string
|
||||
|
||||
switch cloud {
|
||||
case "cloudapi":
|
||||
requests = getRequestsMapCloudAPI()
|
||||
logFileName = "test_requests_cloudAPI.log"
|
||||
case "cloudbroker":
|
||||
requests = getRequestsMapCloudbroker()
|
||||
logFileName = "test_requests_cloudbroker.log"
|
||||
default:
|
||||
t.Fatalf("Wrong cloud provided, expected `cloudapi` or `cloudbroker`, got %s", cloud)
|
||||
}
|
||||
@@ -151,7 +148,6 @@ func getErrorsFromJSON(bytes []byte, t *testing.T, cloud string) {
|
||||
t.Error(msg)
|
||||
dataLogs = append(dataLogs, msg)
|
||||
}
|
||||
compareLogs(logFileName, dataLogs, t, "request")
|
||||
}
|
||||
|
||||
// checkName checks if name field from platform has the same value as json tag in golang structure (maybe including omitempty)
|
||||
|
||||
Reference in New Issue
Block a user