Skip to content

Commit

Permalink
Merge #3207
Browse files Browse the repository at this point in the history
3207: E2e testing: Minting/burning r=piotr-iohk a=piotr-iohk

- [x] e2e tests fpr policy keys endpoints
- [x] e2e tests for minting/burning

### Comments
Can be merged after: #3199

Some tests are currently `pending` due to issues with mint/burn.
```
    Minting and Burning
      Can mint and then burn
      Can mint and burn with metadata
      Can mint and burn in the same tx (PENDING: TODO MINT: Mint and burn fails in single tx)
      Cannot mint and burn the same asset in single tx (PENDING: TODO MINT: Mint and burn fails in single tx)
      Cannot burn if I don't have it
      Cannot burn with wrong policy_script or more than I have
      Mint to foreign wallet / Cannot burn if I don't have keys (PENDING: TODO MINT: It doesn't mint to foreign wallet!)
      Cannot mint if I make too big transaction
      Mint/Burn quantities
        Cannot mint -9223372036854775808 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot burn -9223372036854775808 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot mint -1 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot burn -1 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot mint 0 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot burn 0 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot mint 9223372036854775808 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
        Cannot burn 9223372036854775808 assets (PENDING: TODO MINT: Mint burn quantities edge cases)
      Mint/Burn asset_name
        Cannot mint if my asset name is too long (PENDING: TODO MINT: asset name too long throws 'Something went wrong' on construct)
        Cannot mint if my asset name is invalid hex (PENDING: TODO MINT: asset name too long throws 'Something went wrong' on construct)
      Mint/Burn invalid policy script
        Cannot mint if my policy script is invalid: cosigner#1
        Cannot mint if my policy script is invalid: {"all"=>["cosigner#0", "cosigner#1"]}
        Cannot mint if my policy script is invalid: {"any"=>["cosigner#0", "cosigner#0"]}
        Cannot mint if my policy script is invalid: {"some"=>{"at_least"=>2, "from"=>["cosigner#0"]}}
        Cannot mint if my policy script is invalid: {"some"=>["cosigner#0"]}

```

<!-- Additional comments, links, or screenshots to attach, if any. -->

### Issue Number

ADP-1574


Co-authored-by: Piotr Stachyra <[email protected]>
  • Loading branch information
iohk-bors[bot] and Piotr Stachyra authored Mar 31, 2022
2 parents 10181a8 + ba001b7 commit 59e11ca
Show file tree
Hide file tree
Showing 5 changed files with 726 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'cardano_wallet', '~> 0.3.18'
gem 'cardano_wallet', '~> 0.3.19'
# gem 'cardano_wallet', path: "~/wb/cardano_wallet"
gem 'bip_mnemonic', '0.0.4'
gem 'rake', '12.3.3'
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GEM
specs:
bip_mnemonic (0.0.4)
blake2b (0.10.0)
cardano_wallet (0.3.18)
cardano_wallet (0.3.19)
httparty (~> 0.18.0)
cbor (0.5.9.6)
diff-lcs (1.4.4)
Expand Down Expand Up @@ -36,7 +36,7 @@ PLATFORMS
DEPENDENCIES
bip_mnemonic (= 0.0.4)
blake2b (= 0.10.0)
cardano_wallet (~> 0.3.18)
cardano_wallet (~> 0.3.19)
cbor (= 0.5.9.6)
mustache (= 1.1.1)
rake (= 12.3.3)
Expand Down
Loading

0 comments on commit 59e11ca

Please sign in to comment.