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

More automated tests #9

Open
1 of 5 tasks
bitwalker opened this issue Sep 27, 2016 · 0 comments
Open
1 of 5 tasks

More automated tests #9

bitwalker opened this issue Sep 27, 2016 · 0 comments
Labels

Comments

@bitwalker
Copy link
Owner

bitwalker commented Sep 27, 2016

The current test suite runs a rather simplistic test, but a decent one:

  • Starts two nodes
  • Connects them together
  • Starts Swarm on both
  • Creates 50 worker processes
  • Disconnects the two nodes, simulating a network partition
  • Checks to see that all 50 procs are registered properly on both sides of the partition
  • Joins the partitions
  • Checks to see that there are only 50 procs in the cluster, and that they are back on the nodes where they belong, and that the registry on both nodes is correct

Tests needed:

  • Basic test as described above
  • The same as the above, but adds/removes registrations from both sides of the partition and then ensures that the conflicts are correctly resolved
  • Same as the above 2, but with 3 nodes, make sure they agree
  • Tests with many short-lived processes, say create 100 processes which exit after 1s to create churn in the tracker, and ensure it does the right thing.
  • Test the original scenario, but brutally kill one of the nodes so that it doesn't have a chance to shut down gracefully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant