Skip to content

Commit

Permalink
chore: update replica version to 3c76b914 (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinity-bot authored Oct 21, 2024
1 parent 064e4ff commit 1fa2e26
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 136 deletions.
164 changes: 144 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions e2e/tests-dfx/create.bash
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,15 @@ function textual_decode() {
CANISTER_ID_BASE64="$(textual_decode "${CANISTER_ID}" | xxd -r -p | base64)"
# fetch topology from PocketIC server
TOPOLOGY="$(curl "http://127.0.0.1:$(dfx info replica-port)/instances/0/read/topology")"
echo "${TOPOLOGY}"
# find application subnet id in the topology
for subnet_id in $(echo "${TOPOLOGY}" | jq keys[])
for subnet_id in $(echo "${TOPOLOGY}" | jq '.subnet_configs | keys[]')
do
SUBNET_KIND="$(echo "$TOPOLOGY" | jq -r ".${subnet_id}.\"subnet_kind\"")"
SUBNET_KIND="$(echo "$TOPOLOGY" | jq -r ".subnet_configs.${subnet_id}.\"subnet_kind\"")"
if [ "${SUBNET_KIND}" == "Application" ]
then
# find the expected canister id as the beginning of the first canister range of the app subnet
EXPECTED_CANISTER_ID_BASE64="$(echo "$TOPOLOGY" | jq -r ".${subnet_id}.\"canister_ranges\"[0].\"start\".\"canister_id\"")"
EXPECTED_CANISTER_ID_BASE64="$(echo "$TOPOLOGY" | jq -r ".subnet_configs.${subnet_id}.\"canister_ranges\"[0].\"start\".\"canister_id\"")"
fi
done
# check if the actual canister id matches the expected canister id
Expand Down
Loading

0 comments on commit 1fa2e26

Please sign in to comment.