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

Update deprecated tests that include invalid transactions #449

Open
jvieiro opened this issue Dec 6, 2021 · 0 comments
Open

Update deprecated tests that include invalid transactions #449

jvieiro opened this issue Dec 6, 2021 · 0 comments
Labels

Comments

@jvieiro
Copy link
Collaborator

jvieiro commented Dec 6, 2021

Due to update on [email protected] & [email protected], alonzo-purple snapshot gets deprecated and in consequence of that, all the tests that depends on it.
This snapshot is used to implement tests cases that includes an invalid transaction (2nd stage SC validation failed). The tests that will get deprecated are:

block-transactions-api.test.ts

'should return operation status as invalid when there is an invalid transaction'

account-balance-api.test.ts

'should not count utxos of an invalid tx'

search-transactions-api.test.ts

'Should bring transactions that did not succeeded'

'Should bring transactions with invalid status'

'Should return tx that matches specified coin and is invalid'

These tests can be updated once this case occurs in any cardano network. If it is in mainnet, the corresponding blocks has to be exported at dump_blocks.sh script and then re-create the fixture data set. If it is in testnet, a new db-snapshot and fixture-data has to be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant