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

end2endtest refactoring #874

Merged
merged 2 commits into from
Apr 24, 2023
Merged

end2endtest refactoring #874

merged 2 commits into from
Apr 24, 2023

Commits on Apr 24, 2023

  1. e2etest: general refactor

    e2etest: refactor operations structure (VochainTest interface)
    
    * implement VochainTest interface to separate Setup, Run and Teardown
    * populate ops var (now a map[string]operation) in init() of each file
    * rename operations
     * anonvoting -> anonelection
     * tokentransactions -> tokentxs
     * vtest -> plaintextelection
    * new test encryptedelection
    
    * apiclient: add SecretUntilTheEnd support to apiclient.Vote()
      * New methods WaitUntilElectionKeys, ElectionKeys,
        prepareVoteEnvelope, prepareVotePackageBytes
    
    * ci: update tests_to_run
     * add e2etest_plaintextelection
     * add e2etest_encryptedelection
     * run new end2endtests concurrently
     * drop legacy vochaintests
    
    * fix: tokentxs WaitUntilNextBlock before checking resulting state
    altergui committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    25284d8 View commit details
    Browse the repository at this point in the history
  2. e2etest: more refactoring

    * add helper methods
    * helpers remove unnecessary code
    * main, add election base struct and remove code that already exists in helpers
    * update getFaucetPackage calls
    * use helper methods in plaintext test
    * remove unnecessary code
    * update generateProofs
    * update plaintextelection
    * update generateProofs for correctly support anonymous voting proofs
    * port anonelection to use helpers
    * port encryptedelection to use helpers
    * cleaning
    * main sort imports
    * wait longer in some places
    * improve approach in Setup with a flexible setupElection
    mariajdab authored and altergui committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    4d3ef33 View commit details
    Browse the repository at this point in the history