90 brought back AllAliases which is the fallback logic for older Pulumi engines where supports("aliasSpecs") == false still called it in the constructor of Resource. This PR makes it such that we only call AllAliases when preparing the RegisterResourceRequest and have actually checked that supports("aliasSpecs") == false holds.
Also brings back unit tests for AllAliases using mocks to make sure the old implementation did what it was supposed to do.
90 brought back
AllAliases
which is the fallback logic for older Pulumi engines wheresupports("aliasSpecs") == false
still called it in the constructor ofResource
. This PR makes it such that we only callAllAliases
when preparing theRegisterResourceRequest
and have actually checked thatsupports("aliasSpecs") == false
holds.Also brings back unit tests for
AllAliases
using mocks to make sure the old implementation did what it was supposed to do.