Skip to content

Commit

Permalink
Setup for install test
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Nov 3, 2023
1 parent 6d3b2db commit a30079d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/tests-dfx/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,18 @@ teardown() {
}

@test "installing one canister with an argument succeeds" {
dfx_start
use_asset_wasm 0.12.1
assert_command dfx canister create e2e_project_backend
assert_command dfx canister install e2e_project_backend --argument '()'
}

@test "installing with an argument in a file succeeds" {
dfx_start
use_asset_wasm 0.12.1
TMPFILE="$(mktemp)"
echo '()' >"$TMPFILE"
assert_command dfx canister create e2e_project_backend
assert_command dfx canister install e2e_project_backend --argument-file "$TMPFILE"
}

Expand Down

0 comments on commit a30079d

Please sign in to comment.