CDD-CMDB

A Configuration Management Database defined entirely as a test suite

View the Project on GitHub syndicalt/cdd-cmdb

Profiles

Profiles are compliance tiers. Each one is a pytest .ini file in profiles/ that selects which test suites to run.

Available Profiles

Minimal

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

Standard

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

Enterprise

File: profiles/enterprise.ini Suites: all

Full compliance. Everything in standard, plus:

CMDB_BASE_URL=http://localhost:8080 pytest -c profiles/enterprise.ini

Choosing a Profile

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

Conditional Tests Within Profiles

Some tests within the enterprise profile are conditionally skipped based on environment variables:

Performance SLA Configuration

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

Creating Custom Profiles

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.

Hypothesis Profile Interaction

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