File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 88
99To do this, the ` @dfinity/agent ` version was updated as well.
1010
11+ ### fix: ` dfx build ` no longer requires a password for password-protected identities
12+
1113### feat: add ` dfx schema ` support for .json files related to extensions
1214
1315- ` dfx schema --for extension-manifest ` corresponds to extension.json
Original file line number Diff line number Diff line change @@ -328,3 +328,10 @@ teardown() {
328328 assert_command ls .dfx/actuallylocal/canisters/e2e_project_backend/
329329 assert_command ls .dfx/actuallylocal/canisters/e2e_project_backend/e2e_project_backend.wasm
330330}
331+
332+ @test " dfx build does not require a password" {
333+ assert_command " ${BATS_TEST_DIRNAME} /../assets/expect_scripts/init_alice_with_pw.exp"
334+ assert_command dfx identity use alice
335+
336+ assert_command timeout 30s dfx build --check
337+ }
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ if [ "$E2E_TEST" = "tests-dfx/identity_encryption.bash" ] \
3434 || [ " $E2E_TEST " = " tests-dfx/generate.bash" ] \
3535 || [ " $E2E_TEST " = " tests-dfx/start.bash" ] \
3636 || [ " $E2E_TEST " = " tests-dfx/new.bash" ] \
37- || [ " $E2E_TEST " = " tests-dfx/call.bash" ]
37+ || [ " $E2E_TEST " = " tests-dfx/call.bash" ] \
38+ || [ " $E2E_TEST " = " tests-dfx/build.bash" ]
3839then
3940 sudo apt-get install --yes expect
4041fi
Original file line number Diff line number Diff line change 11use crate :: config:: cache:: DiskBasedCache ;
2- use crate :: lib:: agent:: create_agent_environment ;
2+ use crate :: lib:: agent:: create_anonymous_agent_environment ;
33use crate :: lib:: builders:: BuildConfig ;
44use crate :: lib:: environment:: Environment ;
55use crate :: lib:: error:: DfxResult ;
@@ -34,7 +34,7 @@ pub struct CanisterBuildOpts {
3434}
3535
3636pub fn exec ( env : & dyn Environment , opts : CanisterBuildOpts ) -> DfxResult {
37- let env = create_agent_environment ( env, opts. network . to_network_name ( ) ) ?;
37+ let env = create_anonymous_agent_environment ( env, opts. network . to_network_name ( ) ) ?;
3838
3939 let logger = env. get_logger ( ) ;
4040
You can’t perform that action at this time.
0 commit comments