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

cmswww: Add testrun command. #1179

Merged
merged 7 commits into from
May 13, 2020
Merged

cmswww: Add testrun command. #1179

merged 7 commits into from
May 13, 2020

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Apr 30, 2020

This requires #1104.

This diff adds a testrun command to cmswww.

The command runs through the DCC process and the DCC vote process. Its
meant to help with testing PRs and serve an informal reference
implementation to document how some of the cms processes work. It can be
expanded in the future to include other CMS routes.

$ cmswww testrun admin@example.com password
Running pre-testrun validation
Running testDCC
  create existing contractors
  create a user to be the nominee
  create a DCC for the nominee: 8b5c987f5822613da6d3eef4f8ed8fe2350aab6b17f9a609bdd6c099a0a5a511
  comment on the DCC
  support the DCC
  approve the DCC
  create a user to be the nominee
  create a DCC for the nominee: 5e58d92a3d2804a3bb4d38438cab16ff7e03933949f1b438919bf47e09257f94
  oppose the DCC
  reject the DCC
testDCC success!
Running testDCCVote
  create existing contractors
  submitting invoices for contractors
  marking invoices as approved and paid
  create a user to be the nominee
  create a DCC for the nominee: b5983733a411bf2b5a8e1ab5ea1cc1ac59b6e8d3bc980e3b5eacc417a0547f13
  support/oppose DCC
  start DCC vote
  cast DCC votes
testDCCVote success!
testrun complete!

This diff adds a testrun command to cmswww.

The command runs through the DCC process and the DCC vote process. Its
meant to help with testing PRs and serve an informal reference
implementation to document how some of the cms processes work. It can be
expanded in the future to include other CMS routes.

```
$ cmswww testrun admin@example.com password
Running pre-testrun validation
Running testDCC
  create existing contractors
  create a user to be the nominee
  create a DCC for the nominee
  comment on the DCC
  support the DCC
  approve the DCC
  create a user to be the nominee
  create a DCC for the nominee
  oppose the DCC
  reject the DCC
testDCC success!
Running testDCCVote
  create existing contractors
  create a user to be the nominee
  create a DCC for the nominee
  cast DCC votes
testDCCVote success!
testrun complete!
```
Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

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

Great tool! This will definitely make testing a lot easier for various complicated routes in the future.

@alexlyp
Copy link
Member

alexlyp commented May 13, 2020

Just needs a quick conflict resolution then is good to go in.

@lukebp lukebp merged commit ce4f26d into decred:master May 13, 2020
@lukebp lukebp deleted the testrun branch June 16, 2020 23:10
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.

2 participants