Acceptance test cases are defined in oats.yaml
files in the examples directory. The test cases are run by oats.
The declarative yaml tests are described in https://github.com/grafana/oats/blob/main/yaml.
If a test case fails (lets say "examples/jdbc/spring-boot-reactive-2"), follows these steps:
- Check out the oats repo
- Go to the oats folder
cd yaml
- Install ginkgo:
go install github.com/onsi/ginkgo/v2/ginkgo
TESTCASE_TIMEOUT=2h TESTCASE_BASE_PATH=/path/to/this/repo/examples ginkgo -v -r -focus 'jdbc-spring-boot-reactive-2'
- go to http://localhost:3000 and login with admin/admin
Use -focus 'yaml'
to run all acceptance tests.