-
Notifications
You must be signed in to change notification settings - Fork 492
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
e2e tests for log #2950
e2e tests for log #2950
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Shiqi! I was about to start the same work later today.
Looks good, few code style remarks.
test/scripts/e2e_subs/e2e-logs.sh
Outdated
curl -q -s -H "Authorization: Bearer $PUB_TOKEN" "$NET$1" | ||
} | ||
|
||
function app-txid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function app-txid { | |
function app_txid { |
people usually tend not to use hyphens in var/func names
test/scripts/e2e_subs/e2e-logs.sh
Outdated
# app create | ||
TXID=$(${gcmd} app create --creator "${ACCOUNT}" --approval-prog=${TEAL}/logs.teal --global-byteslices 4 --global-ints 0 --local-byteslices 0 --local-ints 1 --clear-prog=${TEAL}/approve-all.teal | app-txid) | ||
# log len | ||
[ "$(rest "/v2/transactions/pending/$TXID" | jq '.logs | length')" = 32 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save result of rest "/v2/transactions/pending/$TXID"
into a var and reuse it later in the loop and after.
Codecov Report
@@ Coverage Diff @@
## master #2950 +/- ##
==========================================
- Coverage 47.33% 47.30% -0.03%
==========================================
Files 355 355
Lines 57224 57224
==========================================
- Hits 27085 27069 -16
- Misses 27079 27093 +14
- Partials 3060 3062 +2
Continue to review full report at Codecov.
|
Summary
This PR moves the log e2e tests to scripts/e2e_subs. This dir is used by the indexer to build blocks and queries.