Group 19: Failed tests
Repository: https://git.rwth-aachen.de/pdevant/sqa-group19
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.BuyTicketTest
-------------------------------------------------------------------------------
Tests run: 132, Failures: 32, Errors: 0, Skipped: 0, Time elapsed: 29.991 s <<< FAILURE! - in de.rwth.swc.sqa.BuyTicketTest
invalid_student_ticket{String, String}[3] Time elapsed: 0.158 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_student_ticket(BuyTicketTest.java:179)
invalid_student_ticket{String, String}[4] Time elapsed: 0.049 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_student_ticket(BuyTicketTest.java:179)
valid_senior{String}[3] Time elapsed: 0.043 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <400>.
at de.rwth.swc.sqa.BuyTicketTest.valid_senior(BuyTicketTest.java:119)
valid_ticket{int, int, int, String}[5] Time elapsed: 0.077 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[6] Time elapsed: 0.047 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[7] Time elapsed: 0.052 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[8] Time elapsed: 0.058 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[9] Time elapsed: 0.051 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[10] Time elapsed: 0.044 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[11] Time elapsed: 0.048 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[12] Time elapsed: 0.056 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[17] Time elapsed: 0.041 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[18] Time elapsed: 0.042 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[19] Time elapsed: 0.043 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[20] Time elapsed: 0.046 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[21] Time elapsed: 0.054 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[22] Time elapsed: 0.039 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[23] Time elapsed: 0.037 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[24] Time elapsed: 0.039 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[29] Time elapsed: 0.039 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[30] Time elapsed: 0.044 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[31] Time elapsed: 0.044 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[32] Time elapsed: 0.039 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[33] Time elapsed: 0.04 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[34] Time elapsed: 0.04 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[35] Time elapsed: 0.04 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
valid_ticket{int, int, int, String}[36] Time elapsed: 0.036 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <201> but was <500>.
at de.rwth.swc.sqa.BuyTicketTest.valid_ticket(BuyTicketTest.java:98)
invalid_senior{String}[1] Time elapsed: 0.034 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_senior(BuyTicketTest.java:239)
invalid_senior{String}[2] Time elapsed: 0.032 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_senior(BuyTicketTest.java:239)
invalid_senior{String}[3] Time elapsed: 0.029 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_senior(BuyTicketTest.java:239)
invalid_zone_duration_combination{String}[1] Time elapsed: 0.031 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_zone_duration_combination(BuyTicketTest.java:138)
invalid_zone_duration_combination{String}[2] Time elapsed: 0.031 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalid_zone_duration_combination(BuyTicketTest.java:138)
-
invalid_student_ticket
: Check their test. Why is it invalid? #42 (closed) -
valid_senior
: Ticket was recognized as invalid. Why? : they have discount card set to true for a 1h ticket, it is their fault -
valid_ticket
: Should never return a500
. Definetly a bug. #39 (closed) -
invalid_senior
: Check their invalid senior. Why is it invalid? #41 (closed) -
invalid_zone_duration_combination
: Have a look at their combination : they say that 1y and 30d tickets are not allowed to have any zone information in the buying request, we are lenient and ignore what the zone says in those cases #43 (closed)
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.CustomerAddDiscountCardTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.662 s <<< FAILURE! - in de.rwth.swc.sqa.CustomerAddDiscountCardTest
discount_card_has_id_test Time elapsed: 2.077 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.CustomerAddDiscountCardTest.discount_card_has_id_test(CustomerAddDiscountCardTest.java:71)
-
discount_card_has_id_test
We ignore any set ID. Should be clarified. #38 (closed)
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.ValidateTicketTest
-------------------------------------------------------------------------------
Tests run: 29, Failures: 10, Errors: 4, Skipped: 0, Time elapsed: 2.548 s <<< FAILURE! - in de.rwth.swc.sqa.ValidateTicketTest
validation_ok{int, int, int}[3] Time elapsed: 0.079 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.validation_ok(ValidateTicketTest.java:189)
validation_ok{int, int, int}[6] Time elapsed: 0.083 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.validation_ok(ValidateTicketTest.java:189)
validation_ok{int, int, int}[9] Time elapsed: 0.1 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.validation_ok(ValidateTicketTest.java:189)
mismatch_student Time elapsed: 0.086 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <200>.
at de.rwth.swc.sqa.ValidateTicketTest.mismatch_student(ValidateTicketTest.java:394)
invalid_zone{String, String}[1] Time elapsed: 0.034 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <201> but was: <400>
at de.rwth.swc.sqa.ValidateTicketTest.invalid_zone(ValidateTicketTest.java:313)
invalid_zone{String, String}[2] Time elapsed: 0.029 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <201> but was: <400>
at de.rwth.swc.sqa.ValidateTicketTest.invalid_zone(ValidateTicketTest.java:313)
invalid_zone{String, String}[3] Time elapsed: 0.03 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <201> but was: <400>
at de.rwth.swc.sqa.ValidateTicketTest.invalid_zone(ValidateTicketTest.java:313)
mismatch_disabled Time elapsed: 0.114 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <200>.
at de.rwth.swc.sqa.ValidateTicketTest.mismatch_disabled(ValidateTicketTest.java:435)
date_parse_error_is_400 Time elapsed: 0.082 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.date_parse_error_is_400(ValidateTicketTest.java:513)
ticket_doesnt_exist Time elapsed: 0.031 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.ticket_doesnt_exist(ValidateTicketTest.java:353)
-
validation_ok
: Check their valid tickets : in their test customer birth date and birth date in ticket don't match -
mismatch_student
: Check the missmatch "direction". Ticket is not a student but person is seems fine. #44 (closed) -
invalid_zone
: Check why the zone should be valid : that is not the problem, their ValidFrom string is messed up ("2022-05-054T10:38:59") -
mismatch_disabled
: Check the missmatch "direction". Ticket is not for disabled but person is seems fine. #44 (closed) -
date_parse_error_is_400
: Check status code. Invalid format should indeed be400
#45 (closed) -
ticket_doesnt_exist
: Returning a403
seems correct. : it is
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.CustomerCreationTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.533 s <<< FAILURE! - in de.rwth.swc.sqa.CustomerCreationTest
when_id_set_in_request Time elapsed: 0.044 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <400> but was: <201>
at de.rwth.swc.sqa.CustomerCreationTest.when_id_set_in_request(CustomerCreationTest.java:47)
-
when_id_set_in_request
: Should be clarified. #38 (closed)
Edited by Roman Vuskov