Documentation
¶
Overview ¶
manager is a CLI tool for creating and maintaining test fixtures from vunnel SQLite caches.
Subcommands:
extract - Extract records from vunnel caches to create test fixtures status - Show the status of all test fixtures regenerate - Regenerate test fixtures from their db.yaml configs
Usage:
# extract debian CVEs to new fixture
go run ./internal/dbtest/cmd/manager extract \
--vunnel-data /path/to/vunnel/data \
--provider debian \
--select "CVE-2024-1234" \
--output internal/dbtest/testdata/shared/new-fixture
# show status of all fixtures
go run ./internal/dbtest/cmd/manager status
# regenerate all fixtures
go run ./internal/dbtest/cmd/manager regenerate --vunnel-data /path/to/vunnel/data
Click to show internal directories.
Click to hide internal directories.