---
id: TST-PFM-OPS-116
title: Resolve licence windows
kind: unit
product_area: platform
module: operations
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts
implements:
  - ATS-PFM-OPS-012-01
  - ATS-PFM-OPS-012-02
  - ATS-PFM-OPS-012-03
  - ATS-PFM-OPS-012-04
  - ATS-PFM-OPS-012-05
  - ATS-PFM-OPS-012-06
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
estimate_basis: Scheduling estimate only; no duration is measured during this documentation pass.
isolation: 'Process-local inputs, registries and test adapters.'
evidence:
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts at
    ad3f6a6582843008ed0f5a17b131878d15829af1: existing suite body, setup, assertions and cleanup.
binding_note: Bindings apply only to the listed specification scenarios.
assertion_sources:
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#resolves a
    window for every status the property-mapping module calls in force
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#resolves
    nothing for every status it calls void, and flags none of them, because each is a decision not a
    fault
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#reads the
    status case-insensitively, so HubSpot answering `ACTIVE` licenses what `active` licenses
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#resolves
    nothing for a status it has never heard of, and flags it so the vocabulary can be confirmed
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#licenses
    nothing and is flagged when it has no start date
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#licenses
    nothing and is flagged when it has no end date and does not renew automatically
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#licenses
    nothing when HubSpot answers nothing at all for the renewal flag, which is not a yes
  - >-
    services-platform:modules/licensing/tests/unit/licences/resolve-licence-windows.spec.ts#licenses an
    open-ended window when it has no end date and does renew automatically
---

# Resolve licence windows

## Verification Boundary

This suite exercises application licensing through its declared function or structural boundary. Its implementation is present at the pinned source revision, and this register records no execution result.

## What This Suite Proves

The checks exercise resolve licence windows within the file’s declared setup and assertion boundary. The structured assertion anchors distinguish these checks from the surrounding feature flows. The scenario bindings name the attributed outcomes.

## What It Does Not Prove

Local execution does not establish deployed infrastructure, live commercial-provider configuration or authorization-cache completion. Registration and an implemented suite do not establish a passing result.

## Real Dependencies and Test Doubles

The production logic under assertion is real. Boundary cases control the clock.

## Must Not Be Doubled

The production function, registry or builder under assertion remains real.
