diff --git a/e2e/tests-dfx/basic-project.bash b/e2e/tests-dfx/basic-project.bash index 4ef61a7ce9..1131673b79 100644 --- a/e2e/tests-dfx/basic-project.bash +++ b/e2e/tests-dfx/basic-project.bash @@ -79,7 +79,8 @@ teardown() { assert_eq "4449444c00017d02" assert_command_fail dfx canister call --query hello_backend inc - assert_match "Not a query method." + assert_match "inc is an update method, not a query method." + assert_match "Run the command without '--query'." dfx canister call hello_backend inc diff --git a/e2e/tests-dfx/call.bash b/e2e/tests-dfx/call.bash index e1c18fc82c..53cba42ff7 100644 --- a/e2e/tests-dfx/call.bash +++ b/e2e/tests-dfx/call.bash @@ -311,7 +311,7 @@ function impersonate_sender() { # updating settings now fails because the default identity does not control the canister anymore assert_command_fail dfx canister update-settings hello_backend --freezing-threshold 0 - assert_contains "Only controllers of canister $CANISTER_ID can call ic00 method update_settings" + assert_contains "The principal you are using to call a management function is not part of the controllers." # updating settings succeeds when impersonating the management canister as the sender assert_command dfx canister update-settings hello_backend --freezing-threshold 0 --impersonate "${IDENTITY_PRINCIPAL}" @@ -322,7 +322,7 @@ function impersonate_sender() { # canister status fails because the default identity does not control the canister anymore assert_command_fail dfx canister status hello_backend - assert_contains "Only controllers of canister $CANISTER_ID can call ic00 method canister_status" + assert_contains "The principal you are using to call a management function is not part of the controllers." # canister status succeeds when impersonating the management canister as the sender assert_command dfx canister status hello_backend --impersonate "${IDENTITY_PRINCIPAL}"