-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logic for subgroup branching #151
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"scripts": { | ||
"base": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{"action": "branch", "actor": "alice", "members": ["bob", "charlie", "diana", "eliza"]} | ||
], | ||
|
||
"with_extensions": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{"action": "branch", "actor": "alice", "members": ["bob", "charlie", "diana", "eliza"], | ||
"extensions": [{"extension_type": 3, "extension_data": "AAAA"}, {"extension_type": 5, "extension_data": "AA=="} ]} | ||
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if there's a way to check that extensions have been injected? Maybe an RPC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
], | ||
|
||
"external_tree": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{"action": "branch", "actor": "alice", "members": ["bob", "charlie", "diana", "eliza"], "externalTree": true} | ||
], | ||
|
||
"force_path": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{"action": "branch", "actor": "alice", "members": ["bob", "charlie", "diana", "eliza"], "forcePath": true} | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"scripts": { | ||
"change_ciphersuite": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "bob", | ||
"welcomer": "charlie", | ||
"members": ["diana", "eliza"], | ||
"changeCiphersuite": true | ||
} | ||
], | ||
|
||
"change_group_id": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "bob", | ||
"welcomer": "charlie", | ||
"members": ["diana", "eliza"], | ||
"changeGroupID": true | ||
} | ||
], | ||
|
||
"change_extensions": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "bob", | ||
"welcomer": "charlie", | ||
"members": ["diana", "eliza"], | ||
"extensions": [ | ||
{"extension_type": 3, "extension_data": "AAAA"}, | ||
{"extension_type": 5, "extension_data": "AA=="} | ||
] | ||
} | ||
], | ||
|
||
"all_same_actor": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "alice", | ||
"welcomer": "alice", | ||
"members": ["bob", "charlie", "diana", "eliza"], | ||
"changeGroupID": true | ||
} | ||
], | ||
|
||
"external_tree": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "bob", | ||
"welcomer": "charlie", | ||
"members": ["diana", "eliza"], | ||
"changeGroupID": true, | ||
"externalTree": true | ||
} | ||
], | ||
|
||
"force_path": [ | ||
{"action": "createGroup", "actor": "alice"}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "bob", "members": []}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "charlie", "members": ["bob"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "diana", "members": ["bob", "charlie"]}, | ||
{"action": "externalJoin", "actor": "alice", "joiner": "eliza", "members": ["bob", "charlie", "diana"]}, | ||
{ | ||
"action": "reinit", | ||
"proposer": "alice", | ||
"committer": "bob", | ||
"welcomer": "charlie", | ||
"members": ["diana", "eliza"], | ||
"changeGroupID": true, | ||
"forcePath": true | ||
} | ||
] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about other combinations: with extensions and external tree etc. (there are 8 combinations)? Probably doesn't matter much, just for completeness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#155