diff --git a/unit-tests/002_bad_packets.txt b/unit-tests/002_bad_packets.txt index b00c497..c370254 100644 --- a/unit-tests/002_bad_packets.txt +++ b/unit-tests/002_bad_packets.txt @@ -1,34 +1,68 @@ # vim: ft=sh et : # # This test is mostly concerned with ignoring invalid packets. # We're expecting catchup queries. ticket: state ST_INIT last_ack_ballot 1 new_ballot 2012 # defaults message: header.cmd CMR_CATCHUP ticket.ballot 99 ticket.prev_ballot 98 message0: "bad result code" header.from booth_conf->site[2].site_id header.result 243521741 outgoing0: state ST_INIT message1: "bad sender" header.from 71 - header.result 0 outgoing1: state ST_INIT + + +message2: "bad version" + header.version 512 + +outgoing2: + state ST_INIT + + +message3: "bad magic" + header.version 31 + +outgoing3: + state ST_INIT + +message4: "bad length" + header.length 16 + +outgoing4: + state ST_INIT + + +message5: "bad ticket ID" + ticket.id "gibtsnich" + +outgoing5: + state ST_INIT + + +message100: "should work" + +outgoing100: + state ST_STABLE + ticket.ballot 99 +