Open jake-beardo opened 3 months ago
Unfortunately there is no way to fake the caller principal id.
You can take a look at pocket-ic that might be more powerful to write e2e tests(and use rust, python or js): https://forum.dfinity.org/t/announcing-picjs-typescript-javascript-support-for-pocketic/24479 https://forum.dfinity.org/t/announcing-picjs-typescript-javascript-support-for-pocketic/24479
I have an actor class which looks like this
I then have some tests which look like this
The getEventWasm function requires admin verification so i need to change the admins in my Orchestrator actor class to include this principal wo5qg-ysjiq-5da. have you got a good way of suggesting how I do this? I could pass it as an argument to my actor orchestrator class when i create it i suppose but i was wondering if there might be a better way to do it