witty-yacht-82771
10/30/2019, 11:19 AMexport const service = new awsx.ecs.FargateService("click-router", {
assignPublicIp: false,
cluster,
subnets: pubSubnets,
desiredCount: 2,
taskDefinition: taskDef
});
and then in my tests, I’m trying to do:
it("should have 2 desired instances", async () => {
const di = await promise(service.service.desiredCount);
expect(di).to.equal(2);
});
I get the error that the variable di
is undefined. How can I do tests on assigned values prior to deploying?gentle-diamond-70147
10/30/2019, 2:13 PMup
or preview
or are you executing pulumi in a different way?witty-yacht-82771
10/30/2019, 4:50 PMpreview
?gentle-diamond-70147
10/30/2019, 4:53 PMwitty-yacht-82771
10/30/2019, 5:24 PMgentle-diamond-70147
10/31/2019, 6:59 PMpreview
(https://github.com/pulumi/pulumi/issues/3429), but should work during the up
. If you're running pulumi up
, pulumi will run the preview first and if anything fails will not proceed to the update. You can skips the tests during the up
by checking pulumi.runtime.isDryRun()
.witty-yacht-82771
11/03/2019, 12:07 PM