Page MenuHomePhabricator

Implement script to import test data for SecurePoll testing
Closed, ResolvedPublic

Description

It would be helpful for us to be able to import ballots into SecurePoll into an election so that we could do integration testing on STV. Other elections using STV have open results (eg. https://www.opavote.com/results/5154305393819648) and importing the ballots would allow us to compare these vetted results against our own implementation.

It could be a cli script that takes some parameters (file w/ballots, election name, admin name) and then generates an election with those results. The votes do not need to have a unique voter. The entire election can be ballot stuffed and will still be tallied correctly.

Event Timeline

Change 701902 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/SecurePoll@master] [WIP] Add test data injector for STV elections

https://gerrit.wikimedia.org/r/701902

Change 701902 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Add test data injector for STV elections

https://gerrit.wikimedia.org/r/701902