Replica test canisterId
Is there an easy way to get/use the ID of the canister that is created to test the replica tests? This will be the caller on the tests and it would be good for tests in case you need to add that principal as an admin on your canister.
I think you can treat a canister deployer as an admin. Or you can pass the current test canister id from Principal.fromActor(this) when you create your canister within the test.
The issue is that the docs specifically say to not give the canister a name:
Make sure your actor doesn't have a name actor {.
Make sure your actor has runTests method.
When I try to give my actor a name and call Principal.fromActor(MyName), my test just passes and isn't really run. I think the name messes it up. the "this" construction requires an actor class I think.
Added actor class support to 1.7.0