Lines 14-66markdown
14dfx identity new worker1
15dfx identity new customer1
18### 2. Export PEM values
20Export the PEM for each identity and copy the output:
23dfx identity export superadmin
24dfx identity export owner1
25dfx identity export worker1
26dfx identity export customer1
31Paste each PEM value into the corresponding variable in your `.env` file:
34IDENTITY_PEM="-----BEGIN EC PRIVATE KEY-----
35...superadmin PEM here...
36-----END EC PRIVATE KEY-----"
38OWNER1_PEM="-----BEGIN EC PRIVATE KEY-----
40-----END EC PRIVATE KEY-----"
42WORKER1_PEM="-----BEGIN EC PRIVATE KEY-----
44-----END EC PRIVATE KEY-----"
46CUSTOMER1_PEM="-----BEGIN EC PRIVATE KEY-----
47...customer1 PEM here...
48-----END EC PRIVATE KEY-----"
51> Make sure to keep newlines inside the PEM value — wrap the value in double quotes and preserve the line breaks exactly as exported.
55Tests live in `sandbox/tests/` and are integration tests that run against a dedicated test canister on **mainnet** — no local replica is used. They cover only the `sultana-core-motoko` canister; the CLI persona game, load simulation and multi-canister (assets-rust) tests live in [sultana-command-line-playground](https://github.com/JSM-Sultana/sultana-command-line-playground).
59Complete the [Setup](#setup) section first. Then copy `.env.example` to `.env` and fill in `CANISTER_ID` and all PEM values.
61### Available test scripts
63Each script redeploys the test canister before running.
65| Script | Description |