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

chore: add an e2e test for canister_info. #4074

Merged
merged 2 commits into from
Jan 22, 2025
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
16 changes: 16 additions & 0 deletions e2e/tests-dfx/wallet.bash
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,22 @@ teardown() {
assert_command dfx canister call "${CHILD_ID}" wallet_balance '()'
}

@test "forward canister_info call through wallet" {
dfx_new
install_asset identity
dfx_start
WALLET=$(dfx identity get-wallet)
assert_command dfx canister create --all --wallet default
assert_command dfx build
assert_command dfx canister install --all --wallet default

assert_command dfx canister call aaaaa-aa canister_info --wallet default \
"(record { canister_id= principal \"$(dfx canister id e2e_project_backend)\"; num_requested_changes= opt 20})"
vincent-dfinity marked this conversation as resolved.
Show resolved Hide resolved
assert_contains "$WALLET"
assert_contains "$(dfx identity get-principal)"
assert_contains "3_862_312_591 = 2 : nat64;"
}

@test "forward user call through wallet" {
dfx_new
install_asset identity
Expand Down
Loading