dynamodb-conformance
dynamodb-conformance copied to clipboard
An independent DynamoDB conformance suite. 998 tests scored against live AWS DynamoDB, per region. The Parity Suite board.
Parity Suite: the DynamoDB conformance suite
An independent test suite that validates any DynamoDB-compatible endpoint against real DynamoDB behaviour. It works against DynamoDB, DynamoDB Local, Dynoxide, Dynalite, LocalStack, ExtendDB, Floci, Ministack, or anything else that implements the DynamoDB HTTP API.
Why this exists
There's no official AWS conformance suite for DynamoDB. The closest thing the community has is Dynalite's test suite, but over half of its tests are stale against current DynamoDB behaviour (verified March 2026). DynamoDB Local ships with no test suite at all. Every emulator author ends up guessing at behaviour and testing against their own assumptions.
This suite fixes that by running every test against real DynamoDB first, recording what passes, and using those results as the baseline. An emulator only passes if it gives the same answer DynamoDB does.
Quick start
npm install
# Run against a local target
DYNAMODB_ENDPOINT=http://localhost:8000 npm test
# Quicker run, excludes GSI lifecycle tests (see runtime notes below)
DYNAMODB_ENDPOINT=http://localhost:8000 npm run test:quick
# Run a specific tier
DYNAMODB_ENDPOINT=http://localhost:8000 npm run test:tier1
Results
Scored against real DynamoDB's recorded behaviour in each observed region (af-south-1, ap-east-1, ap-east-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ap-southeast-5, ap-southeast-6, ap-southeast-7, ca-central-1, ca-west-1, eu-central-1, eu-central-2, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, il-central-1, me-central-1, mx-central-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2); a target's Total is its best-matching region, named in the Region column. Behaviour varies by region and over time, so these are point-in-time figures. me-south-1 has been dropped from the observed set and is not scored against.
| Target | Tier 1 | Tier 2 | Tier 3 | Total | Region | Pass | Fail | Skip | Version | Date |
|---|---|---|---|---|---|---|---|---|---|---|
| DynamoDB | 100% | 100% | 100% | 100% | all | 954 | 0 | 0 | live (AWS) | 2026-07-17 |
| Dynoxide | 100.0% | 99.3% | 98.1% | 99.3% | eu-central-1 | 933 | 7 | 14 | 0.11.4 | 2026-07-17 |
| Ministack | 89.1% | 87.4% | 79.7% | 85.6% | af-south-1 | 817 | 137 | 0 | 0b5dba5153fc | 2026-07-17 |
| LocalStack | 93.5% | 86.1% | 72.2% | 85.1% | af-south-1 | 805 | 141 | 8 | 2026.6.3 | 2026-07-17 |
| DynamoDB Local | 92.2% | 82.9% | 71.9% | 83.8% | af-south-1 | 789 | 152 | 13 | d89f8fcc6b1a | 2026-07-17 |
| ExtendDB | 85.5% | 86.2% | 78.8% | 83.2% | af-south-1 | 758 | 153 | 43 | v0.1.1 | 2026-07-17 |
| Floci | 91.4% | 76.0% | 71.6% | 82.2% | af-south-1 | 777 | 168 | 9 | d2ecc8035822 | 2026-07-17 |
| Dynalite | 91.4% | 13.2% | 71.6% | 76.2% | af-south-1 | 675 | 211 | 68 | 4.0.0 | 2026-07-17 |
Live results: the Parity Suite board - the full table for every target, tracked run over run.
DynamoDB is the ground truth, recorded per region. Real DynamoDB disagrees
with itself in a handful of places (the admitted cases are in
registry/splits.json), so each target is scored against every observed
region's recorded behaviour, and its published Total is its best-matching
region - the one named in its Region column. A target fails a behaviour only
when no observed region does what it does.
The percentage is correctness over the operations a target implements and
the run could observe - Pass / (Pass + Fail). Two kinds of test are
excluded from it, for different reasons. A skipped test is deliberate: each
test file probes for feature support in beforeAll and skips itself when
the target doesn't implement that operation, so a skip records honest scope,
not a correctness gap. An indeterminate test is a failed observation - a
timeout, an exhausted throttle, a transport fault - and counts neither for
nor against a target, because nobody knows what the answer was. The Skip
column keeps the first visible; a Fail is a behaviour that diverges from
every observed region of real DynamoDB.
This table is regenerated by the Update Results Table workflow —
automatically when a Conformance Tests run finishes on main, and on demand
from the Actions tab. It pulls each target's result artifact, fills the Version
(npm version, container image digest, release tag, or live for real AWS) and
Run date columns from the run, and commits the refreshed table. Run
npm run results:table to preview it locally.
Tiers
Tier 1 - Core. The operations and behaviours that 90% of DynamoDB users rely on. CRUD, queries, scans, batch operations, GSIs, UpdateTable. If an emulator fails Tier 1, it's not usable.
Tier 2 - Complete. Less common but documented features. Transactions, PartiQL, LSIs, TTL, streams, tags. An emulator that passes Tier 1 but fails some Tier 2 is usable with caveats.
Tier 3 - Strict. Validation ordering, error behaviour at a range of strictness (exact where DynamoDB's wording is stable, structural where its rendering is non-deterministic), edge cases around limits, legacy API compatibility (ScanFilter, QueryFilter). An emulator that passes Tier 1 and Tier 2 but fails some Tier 3 is production-quality for local dev.
The tiers give emulator authors something meaningful to report. "100% Tier 1, 95% Tier 2, 80% Tier 3" tells you far more than a single percentage.
Tier 3 structure
Tier 3 splits into four sub-directories by what each test asserts:
validation-ordering/- which validation fires first when a request has multiple problems. UsestoContainagainst the message; the wording can drift, the ordering should not.error-messages/- the error DynamoDB returns. Uses inlinetry/catchwithexpect(err).toBeInstanceOf(...)andexpect(err.name).toBe(...); the message is matched exactly where it's stable and structurally (toContainon the field and constraint) where AWS's rendering varies by region or SDK version.limits/- hard-coded service limits and the errors that fire when you cross them (item size, batch size, response size, transaction size).legacy-api/- the older request shapes (AttributeUpdates,QueryFilter,ScanFilter,Expected,AttributesToGet) for backwards compatibility.
A new test goes in whichever sub-directory matches what it asserts. If you care about the message the service returns, that's error-messages/. If you only care which error fires, that's validation-ordering/.
Filtering by feature
Tiers tell you how strict a target is. Tags tell you which capabilities it implements, and they're an independent axis: a test lives in one tier but carries a tag for the operation it covers, a data-plane or control-plane tag, and any cross-cutting trait that applies. That lets you ask a narrower question than the tier score - "how does this target do on just the features I actually use?"
Filter with vitest's --tags-filter:
# Ignore PartiQL
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run --tags-filter='!partiql'
# Ignore the legacy request parameters (AttributeUpdates, QueryFilter, ...)
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run --tags-filter='!legacy'
# Only item reads and writes, no table management
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run --tags-filter='data-plane'
# Drop the operations no emulator implements
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run --tags-filter='!cloud-only'
# Compose them, and with tiers: transactions only, excluding cloud-only async
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run tests/tier2 --tags-filter='transactions and !cloud-only'
The grammar takes and / &&, not / !, or, parentheses, and prefix/* wildcards, and it composes with the tier scripts and directory paths.
The vocabulary lives in one place, src/tags.ts, and stays honest two ways: strictTags rejects an undeclared tag the moment the suite runs, and a coverage guard (npm run test:tooling) fails if any test is left untagged. So an exclusion like !partiql can't silently miss a test that someone forgot to tag.
Operation tags - one per test, matching the operation it exercises.
| Tag | Plane | Operation |
|---|---|---|
put-item |
data-plane | PutItem |
get-item |
data-plane | GetItem |
update-item |
data-plane | UpdateItem |
delete-item |
data-plane | DeleteItem |
query |
data-plane | Query |
scan |
data-plane | Scan |
batch |
data-plane | BatchGetItem, BatchWriteItem |
transactions |
data-plane | TransactWriteItems, TransactGetItems |
partiql |
data-plane | ExecuteStatement, BatchExecuteStatement, ExecuteTransaction |
create-table |
control-plane | CreateTable |
update-table |
control-plane | UpdateTable |
delete-table |
control-plane | DeleteTable |
describe-table |
control-plane | DescribeTable |
list-tables |
control-plane | ListTables |
ttl |
control-plane | UpdateTimeToLive, DescribeTimeToLive |
streams |
control-plane | DynamoDB Streams |
resource-tags |
control-plane | TagResource, UntagResource, ListTagsOfResource |
backups |
control-plane | On-demand backups, point-in-time recovery |
export-import |
control-plane | ExportTableToPointInTime, ImportTable |
kinesis |
control-plane | Kinesis streaming destinations |
contributor-insights |
control-plane | UpdateContributorInsights |
resource-policy |
control-plane | PutResourcePolicy, GetResourcePolicy, DeleteResourcePolicy |
account |
control-plane | DescribeLimits, DescribeEndpoints |
Cross-cutting tags - applied wherever they fit.
| Tag | Meaning |
|---|---|
data-plane |
Reads or writes items |
control-plane |
Manages tables, indexes, or table-level features |
cloud-only |
No emulator implements it; needs real AWS infrastructure, another AWS service, or account/region context |
gsi |
Exercises Global Secondary Indexes |
lsi |
Exercises Local Secondary Indexes |
legacy |
Deprecated request parameters (AttributeUpdates, QueryFilter, ScanFilter, Expected, AttributesToGet) |
slow |
Long-running against real AWS; the set test:gating excludes |
negative-path |
Asserts only rejections: every case expects a validation error, conditional-check failure, or transaction cancellation |
Running against targets
DynamoDB Local
docker run -d --name ddb-local -p 8000:8000 amazon/dynamodb-local:latest
DYNAMODB_ENDPOINT=http://localhost:8000 npm test
docker stop ddb-local && docker rm ddb-local
Dynoxide
dynoxide --port 8001 &
DYNAMODB_ENDPOINT=http://localhost:8001 npm test
kill %1
Dynalite
npx dynalite --port 8002 &
DYNAMODB_ENDPOINT=http://localhost:8002 npm test
kill %1
LocalStack
LocalStack requires a free account. Sign up at localstack.cloud and set your auth token.
export LOCALSTACK_AUTH_TOKEN=your-token-here
docker run -d --name localstack -p 4566:4566 -e LOCALSTACK_AUTH_TOKEN localstack/localstack
DYNAMODB_ENDPOINT=http://localhost:4566 npm test
docker stop localstack && docker rm localstack
Ministack
docker run -d --name ministack -p 4566:4566 ministackorg/ministack:latest
DYNAMODB_ENDPOINT=http://localhost:4566 npm test
docker stop ministack && docker rm ministack
Floci
docker run -d --name floci -p 4566:4566 floci/floci:latest
DYNAMODB_ENDPOINT=http://localhost:4566 npm test
docker stop floci && docker rm floci
ExtendDB
ExtendDB is heavier than the other local targets: it builds from source
(Rust), stores data in PostgreSQL 14+, mandates TLS, and verifies SigV4
against a local IAM store. scripts/run-extenddb.sh automates the whole
bring-up (build, init, a dynamodb:* IAM user, access key, serve) against a
PostgreSQL instance, and the CI job uses it. To wire it up by hand instead,
build ExtendDB, run extenddb init, create an IAM user with a dynamodb:*
policy plus an access key (ExtendDB getting-started guide, "Post-init
workflow"), then start it and point the suite at it:
./target/release/extenddb serve --config extenddb.toml # https://127.0.0.1:8000
# The JS SDK ignores AWS_CA_BUNDLE; trust the self-signed cert via NODE_EXTRA_CA_CERTS.
export NODE_EXTRA_CA_CERTS=~/.extenddb/tls/cert.pem
export AWS_ACCESS_KEY_ID=<access-key-id> # a real key — ExtendDB verifies the signature
export AWS_SECRET_ACCESS_KEY=<secret-access-key>
export AWS_REGION=us-east-1 # SigV4 signing region for the local endpoint; ground truth is recorded per region, so no single region needs matching
export DYNAMODB_ENDPOINT=https://127.0.0.1:8000
CONFORMANCE_TARGET=extenddb npm test # writes results/extenddb.json
Use 127.0.0.1 or localhost (both are in the cert's SANs). ExtendDB does
not implement PartiQL, so those Tier 2 tests skip.
Real DynamoDB
# Uses the default AWS credential chain (env vars, ~/.aws/credentials, IAM role)
npm test
Expected runtime
| Target | npm test |
npm run test:quick |
|---|---|---|
| Local emulators | ~2-5 seconds | ~2-5 seconds |
| Real DynamoDB | ~1-3.5 hours | ~20-25 minutes |
The full suite includes 14 UpdateTable GSI lifecycle tests that add and remove Global Secondary Indexes from existing tables. On real DynamoDB, each GSI creation triggers a backfill that usually takes 5-15 minutes even on empty tables, and has been observed taking 25+ on a slow night. These tests are important for conformance but they dominate runtime against real AWS.
test:quick excludes the GSI lifecycle tests for faster local iteration. CI's gating real-DynamoDB job runs test:gating, which drops the GSI lifecycle tests and the S3 and Kinesis integration suites (see "Operations no emulator implements" below), so a slow async import can't redden the build. Those integration suites still run against real AWS in a separate non-gating job via npm run test:integrations. Emulator targets run the full npm test since GSI creation is instant locally. If you're modifying GSI-related code, run the full suite against real DynamoDB manually before merging.
Design principles
Ground truth first. Every test is validated against real DynamoDB. Behaviour is recorded per region: a weekly sweep runs the full suite in every commercial region, and the few behaviours where regions genuinely disagree are held, with evidence, in registry/splits.json. If DynamoDB's behaviour changes, the suite updates.
Observable behaviour only. Tests verify what comes back over the wire: response bodies, error types, error messages. No testing of internal implementation details.
SDK-driven. Tests use the AWS SDK v3 for JavaScript rather than raw HTTP. This tests what real applications actually experience.
Endpoint-agnostic. A single environment variable (DYNAMODB_ENDPOINT) points the suite at any target. No target-specific code paths, no special cases.
Test organisation
tests/
tier1/ # ~300 tests
createTable/ # basic, gsi, lsi
putItem/ # basic, conditions, validation, expressions, dataTypes, ...
getItem/ # basic, validation, projection, consumedCapacity
deleteItem/ # basic, validation
updateItem/ # basic, conditions, validation, paths
query/ # basic, gsi, lsi, expressions, select, numericKeys, binaryKeys
scan/ # basic, validation, gsi, lsi, parallel, select, filterOperators
batchWriteItem/ # basic, validation
batchGetItem/ # basic, validation
deleteTable/ # basic
describeTable/ # basic
listTables/ # basic
updateTable/ # basic
tier2/ # ~100 tests
transactions/ # transactWrite, transactGet
partiql/ # executeStatement, batchExecuteStatement, executeTransaction
ttl/ # basic
streams/ # basic
tags/ # basic
updateTable/ # gsi
tier3/ # ~195 tests
validation-ordering/ # per-operation validation error ordering
error-messages/ # exact error message strings
limits/ # itemSize, batchLimits, responseSize, transactionLimits,
# numberPrecision, emptyValues, reservedWords
legacy-api/ # expected, attributeUpdates, queryFilter, scanFilter, attributesToGet
Shared infrastructure
src/client.ts- DynamoDB and Streams client, configured from theDYNAMODB_ENDPOINTenv varsrc/helpers.ts- table lifecycle, assertion helpers (expectDynamoError,cleanupItems,waitForGsiConsistency)src/setup.ts- global beforeAll/afterAll that creates 5 shared tablessrc/types.ts-TestTableDefandKeyDeftypes
Generating results
# Run against a target and save JSON output
DYNAMODB_ENDPOINT=http://localhost:8000 npx vitest run --reporter=json --outputFile=results/dynamodb-local.json
# Generate the comparison table from all saved results
npm run results:table
SDK blindspots
This suite uses the AWS SDK v3 (not raw HTTP), which means it can't test:
- Request signing validation - the SDK always signs correctly
- Error wire format -
__typefield naming,messagevsMessagecasing - Content-type handling - the SDK always sends
application/x-amz-json-1.0 - Connection-level behaviour - HTTP headers, chunked encoding, CRC32 checks
You'd need a raw HTTP test layer using fetch() with aws4 signing for those. The dynalite test suite is a good reference for that approach.
Contributing
Adding tests
- Follow existing patterns in the relevant tier directory
- Use
expectDynamoError()for error assertions, not try/catch - Use
cleanupItems()inafterAllfor data cleanup - Use
ExpressionAttributeNamesfor all attribute names in expressions (avoid reserved words) - Use
ConsistentRead: trueon all read-back assertions - Test against real DynamoDB first - if AWS fails, the test is wrong by definition
Adding a target
- Start the target on a port
- Run:
DYNAMODB_ENDPOINT=http://localhost:<port> npx vitest run --reporter=json --outputFile=results/<target>.json - Generate the table:
npm run results:table - Submit a PR with the results JSON
If the target speaks HTTPS only or verifies request signatures (ExtendDB is
the first such target), two extra steps apply: trust its certificate with
NODE_EXTRA_CA_CERTS=/path/to/cert.pem (the JS SDK does not read
AWS_CA_BUNDLE), and pass a real AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY
whose policy allows the operations the suite exercises. Before committing the
results JSON, grep it for your key to be sure no credential leaked into it.
Test data
All test data must be synthetic. Don't use real names, emails, addresses, or any personally identifiable information in test fixtures.
Operations covered
| Operation | Tier 1 | Tier 2 | Tier 3 |
|---|---|---|---|
| PutItem | basic, conditions (incl. parens), validation, expressions, dataTypes, consumedCapacity, itemCollectionMetrics | error messages | |
| GetItem | basic, validation, projection, consumedCapacity | error messages | |
| UpdateItem | basic, conditions (incl. parens, non-existent key branch), validation, paths | error messages | |
| DeleteItem | basic, conditions (incl. parens), validation | error messages | |
| Query | basic, GSI, LSI, expressions (incl. KeyCondition + Filter parens), select, numericKeys, binaryKeys, pagination | error messages, validation ordering | |
| Scan | basic, validation, GSI (incl. pagination), LSI (incl. pagination), parallel, select, filterOperators, filterExpression parens | error messages, validation ordering | |
| BatchWriteItem | basic, validation | error messages | |
| BatchGetItem | basic, validation | error messages | |
| CreateTable | basic, GSI, LSI | error messages, validation ordering | |
| DeleteTable | basic | ||
| DescribeTable | basic | ||
| ListTables | basic | ||
| UpdateTable | basic (throughput, billing mode) | GSI lifecycle | |
| TransactWriteItems | basic, conditions (incl. parens, non-existent key branch), idempotency, cancellation | error messages | |
| TransactGetItems | basic, validation | error messages | |
| ExecuteStatement | INSERT, SELECT, UPDATE, DELETE, parameterised | ||
| BatchExecuteStatement | batch, partial failure | ||
| ExecuteTransaction | atomic, rollback | ||
| UpdateTimeToLive | enable, validation | ||
| DescribeTimeToLive | describe | ||
| TagResource | add, list, remove, validation | ||
| DynamoDB Streams | ListStreams, DescribeStream, GetRecords, view types | ||
| Backups | on-demand, continuous (PITR) | ||
| ExportTableToPointInTime / ImportTable | S3 export and import | ||
| Kinesis streaming destination | enable, describe, disable | ||
| UpdateContributorInsights | enable, describe, list | ||
| Resource policies | put, get, delete | ||
| DescribeLimits / DescribeEndpoints | account reads |
Operations every emulator skips
A handful of operations only exist on real AWS or reach into another AWS
service, so no emulator implements them and each one skips on every target. The
suite still exercises them against real DynamoDB - characterising AWS's own
behaviour has value - and they all carry the cloud-only tag, so
--tags-filter='!cloud-only' drops the lot:
- Import/Export to S3
- Kinesis Data Streams integration (streaming destinations)
- On-demand backups and Point-in-Time Recovery
- Contributor Insights
- Resource-based policies
- Account reads (DescribeLimits, DescribeEndpoints)
Import/Export and Kinesis lean on slow async control-plane calls that make poor
gate material, so they run in a separate non-gating job via
npm run test:integrations rather than on the gating run.
Genuinely not covered, with no tests yet:
- Global Tables
- DynamoDB Accelerator (DAX)
Citing a finding
When the suite surfaces a divergence in a target and you want to reference it from that target's own issue tracker, cite the suite as the independent source it is. The reference carries weight precisely because the suite is not the engine's own test harness: it scores every target against the same live-AWS baseline, so "the conformance suite flags this" says more than a self-written test can.
Disclosure. This suite is maintained by the same person who maintains Dynoxide, one of the engines it scores. Dynoxide runs through the same automated matrix as every other target, against the same live-AWS ground truth. The tests and the results are in this repo.
Fill in the bracketed parts. The block is the same whichever engine the finding concerns:
Found by Parity Suite, the DynamoDB conformance suite (paritysuite.org), an independent project that scores multiple engines against live AWS DynamoDB.
Operation: [e.g. CreateTable] Expected (real DynamoDB, [region, e.g. eu-west-2]):
[the exact response or error message real AWS returns]Observed in [target] [version]: [what the target did instead] Suite test: [public link to the specific test, pinned to a commit or tag]
Two details keep the citation honest:
- Link the specific test, and pin it. Use a commit SHA or tag (
.../blob/<sha>/...), never.../blob/main/...: amainlink rots the moment the file is reformatted or the lines shift, while a pinned link points at the exact assertion for good. Link the test itself, not a bare in-repo path, so it resolves for anyone reading the issue. - Pinned test for a specific finding; site row only for a general claim. The pinned test is durable evidence that this exact case diverged. The row on Parity Suite, the DynamoDB conformance suite (paritysuite.org) is a live score that moves with every run, so it answers "how does this engine do overall", not "what broke here". Don't cite a moving score as evidence for a fixed bug.
Real AWS DynamoDB is the ground truth here as everywhere: the "expected" line is what AWS does, captured against a named region, not what any emulator does. If the behaviour is one where regions disagree, say so and name the regions on each side - the admitted cases are in registry/splits.json.
Community
- Contributing and AGENTS.md - how to add tests and targets.
- Code of Conduct - the Contributor Covenant.
- Security policy - how to report a vulnerability or a leaked credential privately.
- Support - where to ask for help.
Licence
Apache License 2.0. See LICENSE and NOTICE.