Skip to content

Commit fee62de

Browse files
committed
test: sanitize customer references in FOSSA reference fixtures
Replace customer org ID and project name with generic placeholders (1234/example-validation-project) across all four fixtures and the README. Structural shape, key sets, value types, and per-field cardinality are unchanged. Parity tests assert keysets only, so the substitution is transparent to test behavior.
1 parent ff9edd1 commit fee62de

5 files changed

Lines changed: 79 additions & 71 deletions

File tree

tests/fixtures/fossa/README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# FOSSA reference fixtures
22

3-
Captured from a UiPath Azure DevOps pipeline (CE-199, build 12109922) for parity testing.
3+
Real `fossa analyze` and `fossa report --json attribution` artifacts captured
4+
from a representative Azure DevOps FOSSA pipeline run, used as the
5+
structural-parity baseline for `--legal-format fossa` output.
46

5-
- `fossa-analyze-populated.json` — composed FOSSA analyze artifact with 11 vulnerabilities.
6-
- `fossa-analyze-empty.json` — composed FOSSA analyze artifact with zero vulnerabilities.
7-
- `fossa-sbom-populated.json``fossa report --json attribution` output with direct + deep dependencies.
8-
- `fossa-sbom-empty-deep.json` — attribution output with empty `deepDependencies`.
7+
Customer-identifying values (org IDs, project names) have been sanitized; the
8+
structural shape, key sets, value types, and per-field cardinality match the
9+
real artifacts byte-for-byte aside from those substitutions.
910

10-
Source assets retained at `assets/` (gitignored) for reference. These four files are the structural-parity baseline.
11+
- `fossa-analyze-populated.json` — composed FOSSA analyze artifact with
12+
vulnerabilities present.
13+
- `fossa-analyze-empty.json` — composed FOSSA analyze artifact with zero
14+
vulnerabilities.
15+
- `fossa-sbom-populated.json``fossa report --json attribution` output with
16+
direct + deep dependencies.
17+
- `fossa-sbom-empty-deep.json` — attribution output with empty
18+
`deepDependencies`.

tests/fixtures/fossa/fossa-analyze-empty.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"project": {
33
"branch": "refs/heads/master",
4-
"id": "custom+6060/DevTools-Validation-Pipeline-03cb9ead2f744dfa5506ec0c915423947ec2fe11-go-linux",
5-
"project": "6060/DevTools-Validation-Pipeline",
6-
"projectId": "custom+6060/DevTools-Validation-Pipeline",
4+
"id": "custom+1234/example-validation-project-03cb9ead2f744dfa5506ec0c915423947ec2fe11-go-linux",
5+
"project": "1234/example-validation-project",
6+
"projectId": "custom+1234/example-validation-project",
77
"revision": "12109922-03cb9ead2f744dfa5506ec0c915423947ec2fe11-go-linux",
8-
"url": "https://app.fossa.com/account/saml/6060?next=/projects/custom%252b6060%252fDevTools-Validation-Pipeline/refs/branch/refs%252fheads%252fmaster/12109922-03cb9ead2f744dfa5506ec0c915423947ec2fe11-go-linux"
8+
"url": "https://app.fossa.com/account/saml/1234?next=/projects/custom%252b1234%252fexample-validation-project/refs/branch/refs%252fheads%252fmaster/12109922-03cb9ead2f744dfa5506ec0c915423947ec2fe11-go-linux"
99
},
1010
"vulnerability": [],
1111
"licensing": [],

0 commit comments

Comments
 (0)