Goss checks packages, files, ports, services, and more using YAML specs. Tests can be generated from live state, executed from the CLI, or exposed as health endpoints.
Overview
Goss validates server configuration with lightweight YAML files similar in spirit to infrastructure testing tools. Authors describe expected packages, files, listening ports, users, commands, HTTP endpoints, and related resources.
The goss add command captures current system state into tests, lowering the effort to bootstrap a suite. Suites run from the CLI, can be waited on during provisioning, or served for health checks.
Output formats include documentation, JSON, TAP, JUnit, Nagios, and Prometheus styles for integration with CI and monitoring. Wrapper scripts exist for Docker, Kubernetes, and Docker Compose workflows.
Linux is the primary supported environment; Windows and macOS support remains alpha with feature gaps on some resource types.
Key features
- YAML server specs
- Generate tests from state
- Health endpoint serving
- Many output formats
- Package and port checks
- HTTP URL validation
- Docker test wrappers
- JSON schema editing support
Use cases
- Post-provision validation
- Container health checks
- CI server conformance tests
- Quick config drift detection