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

Guanyu/rewrite/scenariotest #79

Merged
merged 20 commits into from
May 4, 2022
Merged

Guanyu/rewrite/scenariotest #79

merged 20 commits into from
May 4, 2022

Conversation

JBGYZ
Copy link
Contributor

@JBGYZ JBGYZ commented Apr 7, 2022

  1. Finished scenario test with http
  2. added 2 fields in getelectioninfo response

@JBGYZ JBGYZ requested review from nkcr and emduc April 7, 2022 12:43
@CLAassistant
Copy link

CLAassistant commented Apr 7, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ JBGYZ
❌ Guanyu Zhang


Guanyu Zhang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@emduc emduc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a quick pass on it since I am starting to try and solve this shuffle problem, this new version will definitely be helpful thank you :)

I know it wasn't the case in the original scenario test but it could be nice to have the test be generic in the number of nodes and votes, similarly to what is done in integration_test.go. It should not be too difficult to implement (just a matter of having for eg arrays of addresses instead of addr1 addr2 and addr3) but might take some time.
edit: actually that might be more annoying since we need to launch the nodes seperately

Depending on who merges first, the problem of signed request will also arise since the proxy will soon require the requests to be signed.

proxyArray := [3]string{proxyAddr1, proxyAddr2, proxyAddr3}

// ###################################### CREATE SIMPLE ELECTION ######
create_election_js := `{"Configuration":{"MainTitle":"electionTitle","Scaffold":[{"ID":"YWE=","Title":"subject1","Order":null,"Subjects":null,"Selects":[{"ID":"YmI=","Title":"Select your favorite snacks","MaxN":3,"MinN":0,"Choices":["snickers","mars","vodka","babibel"]}],"Ranks":[],"Texts":null},{"ID":"ZGQ=","Title":"subject2","Order":null,"Subjects":null,"Selects":null,"Ranks":null,"Texts":[{"ID":"ZWU=","Title":"dissertation","MaxN":1,"MinN":1,"MaxLength":3,"Regex":"","Choices":["write yes in your language"]}]}]},"AdminID":"adminId"}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to add some returns so that we can read the content of the configuration easily

@coveralls
Copy link

coveralls commented Apr 29, 2022

Pull Request Test Coverage Report for Build 2264717034

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.04%) to 64.11%

Files with Coverage Reduction New Missed Lines %
services/dkg/pedersen/handler.go 2 86.88%
Totals Coverage Status
Change from base Build 2262797249: -0.04%
Covered Lines: 3101
Relevant Lines: 4837

💛 - Coveralls

@giogio21 giogio21 marked this pull request as ready for review April 29, 2022 13:36
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@nkcr nkcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@giogio21 giogio21 merged commit b4c3875 into main May 4, 2022
@giogio21 giogio21 deleted the guanyu/rewrite/scenariotest branch May 4, 2022 16:39
ineiti pushed a commit that referenced this pull request Oct 10, 2024
Automated form list tests
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.

6 participants