Skip to content
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

Generate passive client tests #356

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Generate passive client tests #356

wants to merge 2 commits into from

Conversation

bifurcation
Copy link
Contributor

@bifurcation bifurcation commented Aug 1, 2023

Currently, we can validate passive client tests, but not generate them. This PR adds logic to generate passive client tests for a few scenarios:

  • Join via Welcome
  • Join via Welcome with an external ratchet tree
  • Handle a Commit sent as PublicMessage
  • Handle a Commit sent as PrivateMessage
  • Handle a Commit with a Proposal included by reference
  • Handle an external commit
  • Handle 100 random commits

Right now, the 100 random commits just cover Add, Update, Remove, and PSK. In principle, we could include GCE, but it would be a slight hassle.

Each scenario also includes an application data protection test at each epoch.

The generation code in the interop runner dumps all of the scenarios into one file. We could add a command line flag to select out individual scenarios, as we have now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant