fusion_save_fixture
Persist validated expectations as a reusable regression test, enabling re-runs to catch unexpected changes after Fusion quarterly patches.
Instructions
Persist a validated set of expectations as a reusable regression test.
Worth doing every time a validation passes: Fusion quarterly patches change views and add columns, and a saved fixture turns "this was right in August" into something you can re-run in November.
For a report validation, record the report and its bind values in
description (and the report's call descriptor in sql) so the fixture says
what it was proved against.
Values in configured redacted columns are masked before the file is written.
Args:
name: Fixture name; letters, digits, _ and - only.
expectations: The expectation objects to persist.
description: Where the ground truth came from -- record the source and date.
datasource: Datasource (or report) the fixture applies to.
sql: The validated query or report call, stored alongside for reference.
overwrite: Replace an existing fixture of the same name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | ||
| name | Yes | ||
| overwrite | No | ||
| datasource | No | ||
| description | No | ||
| expectations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||