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

Add rpc wallet endpoint tests and update version check #4268

Closed

Conversation

ghubstan
Copy link
Contributor

This commit includes the following changes:

  • New tests for methods lockwallet, unlockwallet,
    removewalletpassword, and setwalletpassword.

  • New getbalance method error handing tests to verify
    error message correctness when wallet is locked.

  • Update to getversion method test -- now expects 1.3.4.

  • Check for new [params] column header in help text.

This PR replaces 4243, which had not been kept in sync with commits to tested methods in 4214 .

This commit includes the following changes:

 * New tests for methods 'lockwallet', 'unlockwallet',
   'removewalletpassword', and 'setwalletpassword'.

 * New 'getbalance' method error handing tests to verify
   error message correctness when wallet is locked/unlocked.

 * Update to 'getversion' method test -- now expects 1.3.4.

 * Minor change to help output tests, showing how to check
   correctness of each line of output.
@ghubstan
Copy link
Contributor Author

To run the test suite:

(1) Clone and Build

  $ git clone -b add-wallet-protect-method-tests https://github.com/ghubstan/bisq.git add-wallet-protect-method-tests

  $ cd add-wallet-protect-method-tests

  $ ./gradlew clean build -x test

(2) Run the server on Linux or OSX:

  $ ./bisq-daemon --apiPassword=xyz --appDataDir=/tmp/newbisqdatadir

(3) Let the server initialize (sync) for 2+ minutes.

(4) Run the bats test suite:

  $ bats cli/test.sh

All tests should pass.

@sqrrm
Copy link
Member

sqrrm commented May 25, 2020

@ghubstan I will leave this for @cbeams to review unless you have an urgent need for me to look at it.

@ghubstan
Copy link
Contributor Author

@sqrrm , not urgent and not a problem... @cbeams asked me get others (not maintainers) to review this, and there's no rush for them either.

@sqrrm
Copy link
Member

sqrrm commented Jun 4, 2020

@ghubstan If you could find someone else that's interested in this project to do reviews and for you to bounce ideas I think that would be ideal. I follow it but not in detail so it's hard to do the reviews.

@ghubstan
Copy link
Contributor Author

Closing, will be replaced by new PR off less stale main branch.

@ghubstan
Copy link
Contributor Author

Replaced by 4296

@cbeams
Copy link
Contributor

cbeams commented Jun 13, 2020 via email

@cbeams
Copy link
Contributor

cbeams commented Jun 13, 2020 via email

@ghubstan ghubstan deleted the add-wallet-protect-method-tests branch July 15, 2020 21:51
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.

3 participants