[TEST] made catch request more accurate in REST tests runner

Excluded 404, 403 and 409 status codes from the catch request as they have their own specific catch codes
This commit is contained in:
javanna 2014-05-12 14:29:56 +02:00 committed by Luca Cavanna
parent 64c43c6dc0
commit 9361305177
1 changed files with 1 additions and 1 deletions

View File

@ -131,6 +131,6 @@ public class DoSection implements ExecutableSection {
catches.put("missing", tuple("404", equalTo(404)));
catches.put("conflict", tuple("409", equalTo(409)));
catches.put("forbidden", tuple("403", equalTo(403)));
catches.put("request", tuple("4xx|5xx", greaterThanOrEqualTo(400)));
catches.put("request", tuple("4xx|5xx", allOf(greaterThanOrEqualTo(400), not(equalTo(404)), not(equalTo(409)), not(equalTo(403)))));
}
}