Skip to content

Commit

Permalink
Added check:data test
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Aug 13, 2024
1 parent cc33507 commit 4811fc6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/scripts/kava-localnet-ci/cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

end_idx=($(curl -s --location --request POST 'http://localhost:8000/network/status' \
--header 'Content-Type: application/json' \
--data-raw '{
"network_identifier": {
"blockchain": "Kava",
"network": "kava-localnet"
}
}' | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["current_block_identifier"]["index"])'))

latest_X_blocks=10
start_idx=$(($end_idx - $latest_X_blocks))

echo "start check:data"
echo "start_idx: $start_idx"
echo "end_idx : $end_idx"
./bin/rosetta-cli --configuration-file rosetta-cli-conf/kava-localnet-ci/config.json check:data --start-block $start_idx --end-block $end_idx
7 changes: 6 additions & 1 deletion .github/workflows/process_kava_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ jobs:
shell: bash
working-directory: ./rosetta-kava

- name: Run Check:construction test
- name: Run check:construction test
run: .github/scripts/kava-localnet-ci/construction.sh
shell: bash
working-directory: ./rosetta-kava

- name: Run check:data test
run: .github/scripts/kava-localnet-ci/cli.sh
shell: bash
working-directory: ./rosetta-kava
1 change: 1 addition & 0 deletions rosetta-cli-conf/kava-localnet-ci/bootstrap_balances.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions rosetta-cli-conf/kava-localnet-ci/exempt_accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]

0 comments on commit 4811fc6

Please sign in to comment.