Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

258 manual testing #308

Merged
merged 6 commits into from
Feb 7, 2019
Merged

258 manual testing #308

merged 6 commits into from
Feb 7, 2019

Conversation

piotr-iohk
Copy link
Contributor

@piotr-iohk piotr-iohk commented Feb 5, 2019

#

Overview

  • I have added 3 manual testing scenarios for Support batch import of addresses through the API #258. The procedures include batch import of addresses while wallet is restoring and importing large number of addresses.
  • I have added simple helper bash scripts to facilitate generating large number of addresses and building curl request for doing batch import of those addresses

Comments

I have added and executed scenarios -> https://github.com/input-output-hk/cardano-wallet/blob/258_manual_testing/test/manual/258/scenarios.md

Some notes:

  • I was able to import addresses during wallet restoration.
  • I was able to import 50k addresses while wallet was during restoration and synced.
  • Import of 50k addresses took ~7-9 minutes on my machine (Ubuntu Linux, SSD drive, 16GB RAM, Intel Core i5 with 8 cores )
  • All of the failures that I have encountered (i.e. addresses not imported) where expected. They where either for addresses that were already on the wallet or addresses that belonged to different wallet.

@@ -27,6 +27,7 @@ cabal.project.local~
### Cardano ###

test_keystore.*
state-staging
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added this as the recently updated procedure of starting a node with cardano-wallet creates state-staging directory. (https://github.com/input-output-hk/cardano-wallet/wiki/Building-Running-and-Testing-a-wallet-node)

…odify and add new scripts to aid manual steps
# -a --account=INT An optional parent account index [default: 2147483648]
# -n --number=INT number of addresses to generate [default: 10]
# -p --port=INT Port the server is listening to [default: 8090]
# -c --client=FILEPATH TLS client certificate expected by the server [default: ../../../state-staging/tls/client/client.pem]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed default TLS client path to be in-line with https://github.com/input-output-hk/cardano-wallet/wiki/Building-Running-and-Testing-a-wallet-node, as most likely scenario for those scripts to be used IMHO would be when you start a node using that particular guide.

#!/bin/bash
#
# Usage:
# wallet (create | restore) [options] MNEMONICS...
Copy link
Contributor

Choose a reason for hiding this comment

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

sweet 😮

@KtorZ KtorZ merged commit ec5cd6c into develop Feb 7, 2019
@KtorZ KtorZ deleted the 258_manual_testing branch February 7, 2019 08:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants