Skip to content

Commit

Permalink
fix ssp to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wandmagic committed Dec 3, 2024
1 parent 6949854 commit 9f74cd6
Show file tree
Hide file tree
Showing 5 changed files with 564 additions and 564 deletions.
3 changes: 2 additions & 1 deletion features/fedramp_extensions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Scenario Outline: Validating OSCAL constraints with metaschema constraints

@integration
Scenario Outline: Documents that should be valid are pass
Given I have loaded all Metaschema extensions documents
Then I should have valid results "<valid_file>"
Examples:
| valid_file |
# | ssp-all-VALID.xml |
| fedramp-ssp-example.xml |
# | ../../../content/awesome-cloud/xml/AwesomeCloudSSP1.xml |
# | ../../../content/awesome-cloud/xml/AwesomeCloudSSP2.xml |

Expand Down
3 changes: 2 additions & 1 deletion features/steps/fedramp_extensions_steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ Then('I should have valid results {string}', async function (fileToValidate) {
"src",
"validations","constraints","content",fileToValidate
);
const {isValid,log}=await validateDocument(fullPath,{quiet,...fedrampValidationOptions},executor);
const {isValid,log}=await validateDocument(fullPath,{quiet, extensions:metaschemaDocuments.flatMap((x) => resolve(x)),
},executor);
expect(isValid,formatSarifOutput(log)).to.be.true;
});

Expand Down
Loading

0 comments on commit 9f74cd6

Please sign in to comment.