---
id: TST-PFM-ELG-451
title: Eligibility definitions queries checks
kind: integration
product_area: platform
module: eligibility
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - >-
    modules/eligibility/tests/integration/services/persistence/definitions.queries.integration.spec.js
implements: []
environment: local
implementation_state: implemented
latest_result: not-run
conformance: not-verified
estimated_minutes: 5
isolation: Prepared local test database with suite-owned fixture keys and cleanup.
evidence:
  - provenance: test
    source: >-
      services-platform:modules/eligibility/tests/integration/services/persistence/definitions.queries.integration.spec.js
    cases:
      - >-
        maps every column of a definition, its stamps as ISO instants and an
        absent optional column as absent
      - maps a deprecated definition’s replacement and its defaults
      - answers nothing for an id of another tenant
      - answers the acting tenant’s definition for a key both tenants use
      - answers nothing for a key nobody uses
      - 'lists the tenant’s definitions in key order, and none of another tenant'
      - lists by status
      - lists by owner application
      - lists by reuse scope
      - lists by primary subject kind
      - >-
        lists the definitions whose draft or published version uses a condition
        type
      - combines filters
      - answers an empty page for a filter nothing matches
      - 'pages by key: the first page and its cursor'
      - 'pages by key: the last page, of exactly the size left, with no cursor'
      - refuses a cursor the list did not answer
      - refuses a page size above the most a page holds
      - >-
        finds the definitions whose name or key contains the text, without
        regard to case, in key order
      - takes a percent sign literally
      - takes an underscore literally rather than as any one character
      - ignores a text of spaces only
  - provenance: documented
    source: >-
      services-platform:modules/eligibility/tests/integration/services/persistence/definitions.queries.integration.spec.js:suite
      header
    note: >-
      The source header describes the verification boundary and declared
      substitutions.
proof_limit: >-
  No complete capability or feature scenario is mapped to this file; case-level
  ownership remains a coverage finding.
---

# Eligibility definitions queries checks

## Verification Boundary

This suite checks the module through real local service and database code at the entry points used by its test cases.

## What This Suite Proves

The file contains executable checks, but no complete scenario mapping is established here. Its source test titles identify the remaining mapping work.

## What It Does Not Prove

Registration supplies no execution result or conformance decision. Checks beyond the file’s reachable assertions remain unverified, including production configuration.

## Real Dependencies and Test Doubles

The suite uses local integration fixtures. Signing, caches, provider responses or outbound delivery may be supplied by fixtures where the source declares a substitution. The source imports and suite header identify the exact dependencies.

## Must Not Be Doubled

The module behavior under assertion, transaction boundary and database constraint being checked remain real. Fixture setup cannot stand in for the asserted write or refusal.
