cases property

The isolated cases exposed by this suite.

Implementation

List<AuthApiKeyStoreConformanceCase> get cases => [
  _case(
    'create_and_list',
    'Create persists safe key metadata.',
    _createAndList,
  ),
  _case(
    'touch_active',
    'Only active keys can advance last-use.',
    _touchActive,
  ),
  _case('revoke_owner', 'Revocation enforces exact ownership.', _revokeOwner),
  _case(
    'rotate_atomic',
    'Rotation replaces one active key atomically.',
    _rotateAtomic,
  ),
  _case(
    'rotation_bound',
    'Rotation never exceeds maxRecords.',
    _rotationBound,
    maxRecords: 1,
  ),
  _case(
    'rotation_binding',
    'Rotation rejects foreign and expired replacements.',
    _rotationBinding,
  ),
  _case(
    'rotation_collision',
    'Rotation rejects an existing replacement ID without mutation.',
    _rotationCollision,
  ),
  _case(
    'create_contention',
    'A duplicate key ID commits once.',
    _createContention,
  ),
  _case(
    'rotation_rollback',
    'A post-insert fault restores the old key.',
    _rotationRollback,
  ),
];