Module test case
Last updated
Was this helpful?
Last updated
Was this helpful?
Module test cases are special types of runs that are executed not on but on Spacelift-managed . Note that this article does not cover modules specifically - for that please refer directly to . The purpose of this article is to explain how modules test cases are executed and how they're different from other types of runs.
In a nutshell, module test cases are almost identical to . But unlike stacks, modules are stateless and do not manage any resources directly, so just after the changes are applied and resources are created, they are immediately destroyed during the destroying phase. Here is what a fully successful module test case looks like:
Note that the destroying phase will run regardless of whether the applying phase succeeds or fails. This is because the failure could have been partial, and some resources may still have been created.
A module test case will only transition to the successful state if all the previous phases succeed. If any of the phases fails, the run will be marked as .