https://github.com/paloaltonetworks/terraform-modules-swfw-tests-skeleton
Test skeleton with Terratest for VM-Series modules
https://github.com/paloaltonetworks/terraform-modules-swfw-tests-skeleton
panorama terraform terratest vm-series
Last synced: about 2 months ago
JSON representation
Test skeleton with Terratest for VM-Series modules
- Host: GitHub
- URL: https://github.com/paloaltonetworks/terraform-modules-swfw-tests-skeleton
- Owner: PaloAltoNetworks
- License: mit
- Created: 2023-07-07T06:37:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T10:44:09.000Z (6 months ago)
- Last Synced: 2025-08-01T00:26:01.389Z (2 months ago)
- Topics: panorama, terraform, terratest, vm-series
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Support: SUPPORT.md
Awesome Lists containing this project
README
# Test skeleton with Terratest for Terraform modules for VM-Series on AWS, Azure, GCP
## Description
Test skeleton with Terratest in Go used to execute integration and e2e tests for Software Firewall modules:
- [terraform-aws-vmseries-modules](https://github.com/PaloAltoNetworks/terraform-aws-vmseries-modules)
- [terraform-azurerm-vmseries-modules](https://github.com/PaloAltoNetworks/terraform-azurerm-vmseries-modules)
- [terraform-google-vmseries-modules](https://github.com/PaloAltoNetworks/terraform-google-vmseries-modules)
- [terraform-aws-swfw-modules](https://github.com/PaloAltoNetworks/terraform-aws-swfw-modules)
- [terraform-azurerm-swfw-modules](https://github.com/PaloAltoNetworks/terraform-azurerm-swfw-modules)
- [terraform-google-swfw-modules](https://github.com/PaloAltoNetworks/terraform-google-swfw-modules)## Usage
Terratest can be used to check whole examples and single modules. Below there are few samples of usage:
- [check VM-Series example](samples/vmseries_example_plan_and_deploy/)
- [verify module by checking errors from Terraform plan](samples/vmseries_module_check_terraform_plan_errors/)
- [verify module by checking output and accessing URL after deploying VM-Series](samples/vmseries_module_check_terraform_output_and_vmseries_url/)
- [verify module by deplyoing additional changes after initial deployment](samples/vmseries_module_check_additional_changes_after_deployment/)In order to execute tests, go to folder with sample and use command:
```
go test -v -timeout 30m -count=1 ./...
```For tests with example there is possibility to run only plan (using above command) or to deploy whole example using command:
```
DO_APPLY=true go test -v -timeout 30m -count=1 ./...
```Some of the tests are quick (e.g. checking plan erros), so then there is no need to change default timeout (10 minutes) and below command can be used:
```
go test -v -count=1 ./...
```## License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details