-
Notifications
You must be signed in to change notification settings - Fork 82
feat: add environment variables to canister settings #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The field name must be consistent with the spec:
So we should use For consistency, I also suggest these naming changes, though they don't affect correctness:
During my Rust CDK work, I found Pocket-IC doesn't support this feature yet, so we can't properly test it right now. The incorrect field name was actually skipped during Candid deserialization since it's an optional field, meaning our existing tests (including those in the PR) wouldn't catch this error. |
Thanks for the feedback @lwshang, I'll make the changes and report back 👍 |
The PR is now merged: please use master commits/artifacts for PocketIC. |
For integration tests, we should test the updated |
@lwshang - would you be able to provide some guidance on how to go about adding an integration test to this repo? This is the first time I've worked with this repo so I am not sure if there's some established approach. |
Sure. The For guidance on how to run the tests locally, you can refer to this CI workflow. |
See https://dfinity.atlassian.net/browse/SDK-2151.
This change is required to add support for canister environment variables in the
new
icp-cli
tool.