# vim: ft=sh et : # # This test is mostly concerned with ignoring invalid packets. # We're expecting heartbeat packets. ticket: state ST_LEADER leader local current_term 500 # defaults message: header.cmd OP_HEARTBEAT ticket.term 500 #header.from booth_conf->site[2].site_id header.from local->site_id header.result 0 message0: # bad result code header.result 243521741 outgoing0: state ST_LEADER message1: # bad sender header.from 71 outgoing1: state ST_LEADER message2: # bad version header.version 512 outgoing2: state ST_LEADER message3: # bad magic header.version 31 outgoing3: state ST_LEADER message4: # bad length header.length 16 outgoing4: state ST_LEADER message5: # bad ticket ID ticket.id "gibtsnich" outgoing5: state ST_LEADER message100: # should work ticket.term 510 # no outgoing message finally: state ST_FOLLOWER current_term 510