Skip to content

[SCF high] Add golden fixtures for policy import/export round trips #106

Description

@karagozemin

Why this matters

Policy import/export is part of Fortexa's reviewer and operator story: teams should be able to inspect, backup, share, and restore payment firewall policies safely. Golden fixtures make this behavior reproducible and protect against accidental schema drift.

Scope

Add golden fixture tests for policy import/export round trips. Suggested implementation:

  • add representative policy JSON fixtures for default, strict, and permissive policies
  • export then re-import each fixture and assert stable normalized output
  • include one invalid fixture that fails with a clear validation error
  • document fixture purpose for contributors and reviewers

Acceptance criteria

  • At least 3 valid golden fixtures are covered.
  • At least 1 invalid fixture is covered.
  • Round-trip tests run with the normal test command.
  • Exported policy shape remains deterministic enough for review diffs.
  • No production policy semantics are widened.

Risk

Low. Test/fixture work only; improves operator trust and SCF evidence quality.

Metadata

Metadata

Assignees

Labels

SCF 7.0Issues that strengthen the SCF 7.0 resubmission packageStellar WaveIssues in the Stellar Wave programenhancementNew feature or requestgood first issueGood for newcomersinvestor readinessWork that improves investor, grant, or partner diligence materialslow riskScoped work that should not change payment execution semanticspriority: highHigh-impact work for SCF, investor readiness, or launch confidence

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions