A Configuration Management Database defined entirely as a test suite
Profiles are compliance tiers. Each one is a pytest .ini file in profiles/ that selects which test suites to run.
File: profiles/minimal.ini
Suites: core/
The entry-level bar. Any CMDB implementation must pass this before anything else. Covers:
CMDB_BASE_URL=http://localhost:8080 pytest -c profiles/minimal.ini
File: profiles/standard.ini
Suites: core/, discovery/, audit/, graph/
Production-grade. Adds the capabilities that differentiate a CMDB from a key-value store:
CMDB_BASE_URL=http://localhost:8080 pytest -c profiles/standard.ini
File: profiles/enterprise.ini
Suites: all
Full compliance. Everything in standard, plus:
CMDB_BASE_URL=http://localhost:8080 pytest -c profiles/enterprise.ini
| You want to… | Use |
|---|---|
| Validate a new implementation quickly | minimal |
| Ship to production | standard |
| Meet compliance/security requirements | enterprise |
| Generate with the AI generator (fast) | minimal |
| Generate with the AI generator (full) | enterprise + --model claude-opus-4-6 |
Some tests within the enterprise profile are conditionally skipped based on environment variables:
suites/security/test_auth.py) — Skipped unless CMDB_AUTH_ENABLED=true. Auth mechanisms vary between implementations, so these tests verify enforcement rather than a specific scheme.CMDB_READONLY_TOKEN is set.The performance suite uses environment variables for thresholds, so the same tests work across different deployment tiers:
# Tighter SLAs for a high-performance deployment
CMDB_SLA_CRUD_MS=100 \
CMDB_SLA_LIST_MS=250 \
CMDB_SLA_BULK_100_MS=2000 \
CMDB_BASE_URL=http://localhost:8080 \
pytest -c profiles/enterprise.ini
You can create your own profile by adding a .ini file:
# profiles/ci.ini
[pytest]
# CI pipeline: core + security, skip performance (too flaky in CI)
testpaths = suites/core suites/security
addopts = --tb=short -q -x
The -x flag stops on the first failure, useful for fast feedback in CI pipelines.
The pytest profile (which suites to run) is independent of the Hypothesis profile (how many examples per property test):
# Standard suites, thorough property testing
HYPOTHESIS_PROFILE=release \
CMDB_BASE_URL=http://localhost:8080 \
pytest -c profiles/standard.ini
ci profile: 25 examples per @given test (default, ~seconds)release profile: 500 examples per @given test (~minutes)