You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The property and integration tests deploy real infrastructure.
Unit tests look quite simple to implement though, there is a guide.
It more or less involved mocking the Pulumi SDKs deploy function.
So, we wouldn't be able to check that the Pulumi calls will definitely work, but you can check that, for example, dsh deploy shm would deploy a set of Pulumi objects with certain arguments.
That is very similar to what I've done with mocking some Azure SDK functions.
The property tests can check a series of assertions against deployed infrastructure. Probably too costly to put in CI. However, that could be a really interesting test we could run before releases, and to provide as a dsh validate command to help ensure a deployed TRE is behaving as expected.
✅ Checklist
🍓 Suggested change
With our infrastructure deployed by Pulumi, we should be able to write some infrastructure tests.
🚂 How could this be done?
Look at the Pulumi testing docs: https://www.pulumi.com/docs/using-pulumi/testing/
Note this issue which implies it won't be trivial to add unit tests to an inline program.
The text was updated successfully, but these errors were encountered: