From fc14680e3ca872ddf8c82979960e17d3906b14cd Mon Sep 17 00:00:00 2001 From: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com> Date: Mon, 18 Nov 2024 07:52:38 -0800 Subject: [PATCH] test: extension commands with extension defined canister type (#4000) Also use newer nns extension version Part of https://dfinity.atlassian.net/browse/SDK-1832 --- e2e/tests-dfx/cycles-ledger.bash | 2 +- e2e/tests-dfx/extension.bash | 54 ++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/e2e/tests-dfx/cycles-ledger.bash b/e2e/tests-dfx/cycles-ledger.bash index 481923ec32..7c20cbf057 100644 --- a/e2e/tests-dfx/cycles-ledger.bash +++ b/e2e/tests-dfx/cycles-ledger.bash @@ -25,7 +25,7 @@ teardown() { start_and_install_nns() { dfx_start_for_nns_install - dfx extension install nns --version 0.4.3 + dfx extension install nns --version 0.4.7 dfx nns install --ledger-accounts "$(dfx ledger account-id --identity cycle-giver)" } diff --git a/e2e/tests-dfx/extension.bash b/e2e/tests-dfx/extension.bash index 0b56c07240..7aa52b2122 100644 --- a/e2e/tests-dfx/extension.bash +++ b/e2e/tests-dfx/extension.bash @@ -14,6 +14,54 @@ teardown() { standard_teardown } +@test "run an extension command with a canister type defined by another extension" { + install_shared_asset subnet_type/shared_network_settings/system + dfx_start_for_nns_install + + install_asset wasm/identity + CACHE_DIR=$(dfx cache show) + mkdir -p "$CACHE_DIR"/extensions/embera + cat > "$CACHE_DIR"/extensions/embera/extension.json < dfx.json <