forked from jjzhang/booth
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
680e8f1
commit 3d7826e
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# vim: ft=sh et : | ||
# | ||
# Testing crmv1 groups | ||
|
||
|
||
ticket: | ||
name "tick1" | ||
state ST_LEADER | ||
current_term 40 | ||
leader local | ||
# may keep ticket all the time | ||
term_duration 3000 | ||
# but shall start renewal now | ||
term_expires time(0) + 1000 | ||
req_sent_at time(0) - 10 | ||
|
||
|
||
gdb0: | ||
call parse_extprog("test `set|grep ^BOOTH|wc -l` -ge 5", booth_conf->ticket+0) | ||
|
||
outgoing0: | ||
header.cmd OP_HEARTBEAT | ||
|
||
|
||
testgrp: | ||
ext_verifier 'test "$BOOTH_TICKET" == "tick1"' | ||
# cause re-query of the verifier | ||
req_sent_at time(0) - 10 | ||
|
||
# | ||
#gdb1: | ||
# break ticket_broadcast_proposed_state § commands § bt § c § end | ||
|
||
|
||
outgoing1: | ||
header.cmd OP_HEARTBEAT | ||
|
||
|
||
# now say that we may not have it anymore. | ||
ticket2: | ||
ext_verifier 'test "$BOOTH_TICKET" == "tick2FOO"' | ||
# cause re-query of the verifier | ||
req_sent_at time(0) - 10 | ||
|
||
finally: | ||
state ST_LEADER | ||
leader local |