sparse-intern-71089
09/02/2020, 9:19 AMripe-russia-4239
09/02/2020, 10:07 AMpulumi.runtime.setConfig()
, and that the value provided as a key to this function needs to following the same namespacing convention as the stack YAML file.ripe-russia-4239
09/02/2020, 1:26 PMpulumi.runtime.setConfig()
workaround I mentioned above only works for project config and not provider config. My use case is deploying an Azure Function app, secured with Azure Active Directory, for which I need the configured Tenant ID. This is exposed by Pulumi as azure.config.tenantId
but that isn't available in a unit test setting, nor is it possible to say setConfig("azure:tenantId", uuid())
and have that value available in a unit test setting.little-cartoon-10569
09/03/2020, 9:12 PMpulumi.runtime.setConfig('azure:tenantId', uuid());
). Maybe the runtime you're updating isn't the one that the tests are using? I had that problem when dealing with stack transformations. My solution was to run the tests inside pulumi.runtime.runInPulumiStack(func)
.little-cartoon-10569
09/03/2020, 9:14 PMripe-russia-4239
09/07/2020, 11:25 AM