Credential replacement and refresh connect secret handling to account verification and health. The interaction cases check the resulting connection state and operational visibility while keeping secret values outside customer-facing records.
The structured scenarios name the capabilities and rules involved. A bound test contributes only the outcomes it asserts; proposed transition matrices and composed interactions still require executable proof.
Coverage
Rulecovered
Transitioncovered
Validationgap: FND-PFM-INT-060
Permissioncovered
Edgecovered
Failuregap: FND-PFM-INT-060
Boundarycovered
Concurrencycovered
Invariantcovered
Interactioncovered
Test Scenarios
17 scenarios proving CAP-PFM-INT-005; 10 bound to an existing test.
01Credential reads and traces reveal no key valueinvariantapitest
Prepare active, suspended and verifying connections.
Steps
Request normal and over-limit leases and inspect their audit records.
Expected
Active receives the default five-minute lease; suspension and a lifetime above sixty minutes refuse, verifying requires verification purpose and no audit value is retained.
Data
Fixtures establishing the stated accounts, declarations and history in an isolated workspace.
Prepare one independent record in each starting state, including absent-record cases where the model defines creation.
Steps
Run each listed transition once with its guard satisfied, then repeat it with the guard denied. Inspect the resulting record and listed side effects after commit.
Expected
Each positive case reaches its listed destination and records its defined side effects. Each denied case preserves the starting record and creates no transition side effects.
Data
Run-owned records and principals in an isolated workspace.
A due sign-in token has an active account and administrator recipients.
Steps
Run refresh with provider refusal, then inspect health and delivered administrator notices.
Expected
The account requires re-authorization and the saved result remains even when mail delivery fails.
Data
Run-owned records and principals in an isolated workspace.
Source
services-platform:modules/integrations/tests/integration/services/credentials/refresh.integration.spec.js#makes one token request when two refreshes of a connection run at once,services-platform:modules/integrations/tests/integration/services/connections/connection-feature-changes.integration.spec.js#INT-ACC-0113 step 3: the loss tells each administrator of the tenant once, two notices in all, each with the features-lost subject
An initial key account declares a manual endpoint.
Steps
Enter valid credentials, finish verification and inspect endpoint setup twice.
Expected
The verification job activates the account and provisions its endpoint; ordinary reads reveal no signing secret.
Data
Run-owned records and principals in an isolated workspace.
Source
services-platform:modules/integrations/services/credentials/credential-store.ts:verification_retried,services-platform:modules/integrations/tests/e2e-adapters/events-dummy.adapters.spec.js#never answers the secret again