After you create or update a stack, the next consideration is to test the stack to check that it meets your needs. To validate a stack in your local Appsody development environment, use the stack validation command. Stack validation performs several operations against the stack and provides a summary of these operations.
Stack validation consists of six operations:
Navigate to the root directory of your stack
Run the following command:
appsody stack validate
If your stack is already packaged and you don't want to run the package operation as part of validate, you can use the
validateagainst the starter stack:
@@@@@@@@@ Validate Summary Start @@@@@@@@@@ PASSED: Lint for stack: starter PASSED: Package for stack: starter PASSED: Init for stack: starter PASSED: Run for stack: starter PASSED: Test for stack: starter PASSED: Build for stack: starter Total PASSED: 6 Total FAILED: 0 @@@@@@@@@ Validate Summary End @@@@@@@@@@
The summary provides a result for each of the operations and a total for the overall number of passed and failed operations.
You have now developed, packaged, and tested a stack. You can now publish your stack so that other developers can use its functionality to accelerate development of their own cloud-native applications. For more information, see Publishing Stacks.