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

Byron construct tx endpoint - initial integration tests #2760

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

piotr-iohk
Copy link
Contributor

@piotr-iohk piotr-iohk commented Jul 12, 2021

Issue Number

ADP-909

Overview

Comments

Byron construct tx endpoint returns:

  • For Byron wallets: 500 - Something went wrong
  • For Icarus wallets: 403:
"code":"invalid_wallet_type",
"message":"It is regrettable but you've just attempted an operation that is invalid for this type of wallet. Only new 'Shelley' wallets can do something with rewards and this one isn't."}

Therefore tests have been mostly marked as pendingWith.

@piotr-iohk piotr-iohk added the TESTS Adding additional tests label Jul 12, 2021
@piotr-iohk piotr-iohk self-assigned this Jul 12, 2021
@piotr-iohk piotr-iohk force-pushed the piotr/testing-byron-construct-tx branch 2 times, most recently from 9f3991d to 83dc616 Compare July 13, 2021 10:03
@piotr-iohk piotr-iohk requested a review from paweljakubas July 13, 2021 12:22
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

yes, all should pass after transaction rewrite

@piotr-iohk
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jul 20, 2021
2760: Byron construct tx endpoint - initial integration tests r=piotr-iohk a=piotr-iohk

# Issue Number

ADP-909


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Adding integration tests for Byron construct tx ep.
   **NOTE:** only `payments` request parameter is tested, as according to https://input-output-rnd.slack.com/archives/GBT05825V/p1626077556008700?thread_ts=1625814178.001100&cid=GBT05825V it should be the only one supported in byront construct tx ep.


# Comments

 Byron construct tx endpoint returns:
 - For Byron wallets: `500 - Something went wrong`
 - For Icarus wallets: `403`:
```
"code":"invalid_wallet_type",
"message":"It is regrettable but you've just attempted an operation that is invalid for this type of wallet. Only new 'Shelley' wallets can do something with rewards and this one isn't."}
```
Therefore tests have been mostly marked as `pendingWith`.

Co-authored-by: Piotr Stachyra <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 20, 2021

Build failed:

[69 of 90] Compiling Cardano.Wallet.Api.Types ( src/Cardano/Wallet/Api/Types.hs, dist/build/Cardano/Wallet/Api/Types.o )
iserv-proxy: {handle: <file descriptor: 29>}: GHCi.Message.remoteCall: end of file
/nix/store/szr7mz98k78c1ivdhvnn0b393bhh5bk7-stdenv-linux/setup: line 1313:   104 Killed                  $SETUP_HS build lib:cardano-wallet-core -j$(($NIX_BUILD_CORES > 4 ? 4 : $NIX_BUILD_CORES)) --ghc-option=-fexternal-interpreter --ghc-option=-pgmi --ghc-option=/nix/store/pqyz38432wfwg43132a990yy120z1bd4-iserv-wrapper/bin/iserv-wrapper --ghc-option=-L/nix/store/m4vpyw0cc16hnndaj78lwz154xdamr7b-mingw-w64-x86_64-w64-mingw32-6.0.0-pthreads-x86_64-w64-mingw32/lib --ghc-option=-L/nix/store/m4vpyw0cc16hnndaj78lwz154xdamr7b-mingw-w64-x86_64-w64-mingw32-6.0.0-pthreads-x86_64-w64-mingw32/bin --ghc-option=-L/nix/store/nkzf7225nhqhpljnh73r20wvg3qjxz9y-gmp-6.2.1-x86_64-w64-mingw32/lib
builder for '/nix/store/llq933nbiwgp7pf9rgar8sgghfcvpcgb-cardano-wallet-core-lib-cardano-wallet-core-x86_64-w64-mingw32-2021.6.11.drv' failed with exit code 137

#2703

@piotr-iohk piotr-iohk force-pushed the piotr/testing-byron-construct-tx branch from 83dc616 to 4a669a7 Compare July 20, 2021 11:19
@piotr-iohk
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jul 20, 2021
2760: Byron construct tx endpoint - initial integration tests r=piotr-iohk a=piotr-iohk

# Issue Number

ADP-909


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Adding integration tests for Byron construct tx ep.
   **NOTE:** only `payments` request parameter is tested, as according to https://input-output-rnd.slack.com/archives/GBT05825V/p1626077556008700?thread_ts=1625814178.001100&cid=GBT05825V it should be the only one supported in byront construct tx ep.


# Comments

 Byron construct tx endpoint returns:
 - For Byron wallets: `500 - Something went wrong`
 - For Icarus wallets: `403`:
```
"code":"invalid_wallet_type",
"message":"It is regrettable but you've just attempted an operation that is invalid for this type of wallet. Only new 'Shelley' wallets can do something with rewards and this one isn't."}
```
Therefore tests have been mostly marked as `pendingWith`.

Co-authored-by: Piotr Stachyra <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 20, 2021

Build failed:

#duplicate (cached failure)

@piotr-iohk
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 20, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 1977862 into master Jul 20, 2021
@iohk-bors iohk-bors bot deleted the piotr/testing-byron-construct-tx branch July 20, 2021 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TESTS Adding additional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants