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

[CLI] add test cases for tx query #2568

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/testsuite/features/cmd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ Feature: Rooch CLI integration tests
Then assert: "'{{$.transaction[-1]}}' not_contains error"
Then cmd: "transaction submit {{$.transaction[-1].path}}"
Then assert: "{{$.transaction[-1].execution_info.status.type}} == executed"
Then cmd: "transaction query --sender default --limit 1"
Then assert: "'{{$.transaction[-1]}}' not_contains error"
Then cmd: "transaction query --tx-hashes {{$.transaction[-1].data[0].execution_info.tx_hash}}"
Then assert: "'{{$.transaction[-1].data[0].execution_info.status.type}}' == executed"
Then cmd: "transaction query --from-order 1 --to-order 2"
Then assert: "'{{$.transaction[-1]}}' not_contains error"
Then cmd: "transaction query --start-time 0 --end-time 1735689600 --limit 1"
Then assert: "'{{$.transaction[-1]}}' not_contains error"

# alias tx for transaction
Then cmd: "tx get-transactions-by-order --cursor 1 --limit 2 --descending-order true"
Expand Down
Loading