-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CLI-level integration tests for common commands (#211)
* Add integration tests for #178. * Use only paths, not URLs Adjust method to load files PR per @david-waltermire-nist's rec. * Parameterize tests and fix bad profiles for #178. * Add junit-jupiter-params to POM test scope Per discussion with Dave and re-reviewing the tutorial section on steps for installation I had missed, add that dependency to the POM for #178. Also, per his recommendation, add it to the test scope and do not set an explicit version number because the core JUnit5 version is handled by the support POM for oss-maven project shared across the different Java projects.
- Loading branch information
1 parent
a5cd2e7
commit 4b6b205
Showing
44 changed files
with
1,761 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"assessment-plan" : { | ||
"uuid" : "bd49e556-187a-458a-9000-0b557f553dae", | ||
"metadata" : { | ||
"title" : "Invalid OSCAL Document", | ||
"last-modified" : "2023-10-24T00:00:00Z", | ||
"version" : "1.0", | ||
"oscal-version" : "1.1.1", | ||
"roles" : [ { | ||
"id" : "maintainer", | ||
"title" : "Maintainer of oscal-cli" | ||
} ], | ||
"parties" : [ { | ||
"uuid" : "4ba3f2b7-e894-48d7-b940-91c68661df55", | ||
"type" : "person", | ||
"name" : "NIST ITL CSD Developer" | ||
} ], | ||
"responsible-parties" : [ { | ||
"role-id" : "maintainer", | ||
"party-uuids" : [ "4ba3f2b7-e894-48d7-b940-91c68661df55" ] | ||
} ] | ||
}, | ||
"import-ssp" : { | ||
"href" : "#1db9626b-1ef9-47f9-944f-a71ce8494322" | ||
}, | ||
"back-matter" : { | ||
"resources" : [ { | ||
"uuid" : "1db9626b-1ef9-47f9-944f-a71ce8494322", | ||
"rlinks" : [ { | ||
"href" : "example_ssp_invalid.xml" | ||
}, { | ||
"href" : "example_ssp_invalid.json" | ||
}, { | ||
"href" : "example_ssp_invalid.yaml" | ||
} ] | ||
} ] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://github.com/usnistgov/OSCAL/releases/download/v1.1.1/oscal_complete_schema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<assessment-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="bd49e556-187a-458a-9000-0b557f553dae"> | ||
<metadata> | ||
<title>Invalid OSCAL Document</title> | ||
<last-modified>2023-10-24T00:00:00.000000-00:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.1.1</oscal-version> | ||
<role id="maintainer"> | ||
<title>Maintainer of oscal-cli</title> | ||
</role> | ||
<party uuid="4ba3f2b7-e894-48d7-b940-91c68661df55" type="person"> | ||
<name>NIST ITL CSD Developer</name> | ||
</party> | ||
<responsible-party role-id="maintainer"> | ||
<party-uuid>4ba3f2b7-e894-48d7-b940-91c68661df55</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
<import-ssp href="#1db9626b-1ef9-47f9-944f-a71ce8494322"/> | ||
<back-matter> | ||
<resource uuid="1db9626b-1ef9-47f9-944f-a71ce8494322"> | ||
<rlink href="example_ssp_invalid.xml"/> | ||
<rlink href="example_ssp_invalid.json"/> | ||
<rlink href="example_ssp_invalid.yaml"/> | ||
</resource> | ||
</back-matter> | ||
</assessment-plan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
assessment-plan: | ||
uuid: bd49e556-187a-458a-9000-0b557f553dae | ||
metadata: | ||
title: Invalid OSCAL Document | ||
last-modified: 2023-10-24T00:00:00Z | ||
version: "1.0" | ||
oscal-version: 1.1.1 | ||
roles: | ||
- id: maintainer | ||
title: Maintainer of oscal-cli | ||
parties: | ||
- uuid: 4ba3f2b7-e894-48d7-b940-91c68661df55 | ||
type: person | ||
name: NIST ITL CSD Developer | ||
responsible-parties: | ||
- role-id: maintainer | ||
party-uuids: | ||
- 4ba3f2b7-e894-48d7-b940-91c68661df55 | ||
import-ssp: | ||
href: '#1db9626b-1ef9-47f9-944f-a71ce8494322' | ||
back-matter: | ||
resources: | ||
- uuid: 1db9626b-1ef9-47f9-944f-a71ce8494322 | ||
rlinks: | ||
- href: example_ssp_invalid.xml | ||
- href: example_ssp_invalid.json | ||
- href: example_ssp_invalid.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"assessment-plan" : { | ||
"uuid" : "948a30b0-a706-43b0-ac5a-4c64fda1c3d0", | ||
"metadata" : { | ||
"title" : "Valid OSCAL Document", | ||
"last-modified" : "2023-10-24T00:00:00Z", | ||
"version" : "1.0", | ||
"oscal-version" : "1.1.1", | ||
"roles" : [ { | ||
"id" : "maintainer", | ||
"title" : "Maintainer of oscal-cli" | ||
} ], | ||
"parties" : [ { | ||
"uuid" : "4ba3f2b7-e894-48d7-b940-91c68661df55", | ||
"type" : "person", | ||
"name" : "NIST ITL CSD Developer" | ||
} ], | ||
"responsible-parties" : [ { | ||
"role-id" : "maintainer", | ||
"party-uuids" : [ "4ba3f2b7-e894-48d7-b940-91c68661df55" ] | ||
} ] | ||
}, | ||
"import-ssp" : { | ||
"href" : "#4a8f42e8-1357-4664-bd88-aac54cb9aeb8" | ||
}, | ||
"reviewed-controls" : { | ||
"control-selections" : [ { | ||
"include-all" : { } | ||
} ] | ||
}, | ||
"back-matter" : { | ||
"resources" : [ { | ||
"uuid" : "4a8f42e8-1357-4664-bd88-aac54cb9aeb8", | ||
"rlinks" : [ { | ||
"href" : "example_ssp_valid.xml" | ||
}, { | ||
"href" : "example_ssp_valid.json" | ||
}, { | ||
"href" : "example_ssp_valid.yaml" | ||
} ] | ||
} ] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://github.com/usnistgov/OSCAL/releases/download/v1.1.1/oscal_complete_schema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<assessment-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="948a30b0-a706-43b0-ac5a-4c64fda1c3d0"> | ||
<metadata> | ||
<title>Valid OSCAL Document</title> | ||
<last-modified>2023-10-24T00:00:00.000000-00:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.1.1</oscal-version> | ||
<role id="maintainer"> | ||
<title>Maintainer of oscal-cli</title> | ||
</role> | ||
<party uuid="4ba3f2b7-e894-48d7-b940-91c68661df55" type="person"> | ||
<name>NIST ITL CSD Developer</name> | ||
</party> | ||
<responsible-party role-id="maintainer"> | ||
<party-uuid>4ba3f2b7-e894-48d7-b940-91c68661df55</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
<import-ssp href="#4a8f42e8-1357-4664-bd88-aac54cb9aeb8"/> | ||
<reviewed-controls> | ||
<control-selection> | ||
<include-all /> | ||
</control-selection> | ||
</reviewed-controls> | ||
<back-matter> | ||
<resource uuid="4a8f42e8-1357-4664-bd88-aac54cb9aeb8"> | ||
<rlink href="example_ssp_valid.xml"/> | ||
<rlink href="example_ssp_valid.json"/> | ||
<rlink href="example_ssp_valid.yaml"/> | ||
</resource> | ||
</back-matter> | ||
</assessment-plan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
assessment-plan: | ||
uuid: 948a30b0-a706-43b0-ac5a-4c64fda1c3d0 | ||
metadata: | ||
title: Valid OSCAL Document | ||
last-modified: 2023-10-24T00:00:00Z | ||
version: "1.0" | ||
oscal-version: 1.1.1 | ||
roles: | ||
- id: maintainer | ||
title: Maintainer of oscal-cli | ||
parties: | ||
- uuid: 4ba3f2b7-e894-48d7-b940-91c68661df55 | ||
type: person | ||
name: NIST ITL CSD Developer | ||
responsible-parties: | ||
- role-id: maintainer | ||
party-uuids: | ||
- 4ba3f2b7-e894-48d7-b940-91c68661df55 | ||
import-ssp: | ||
href: '#4a8f42e8-1357-4664-bd88-aac54cb9aeb8' | ||
reviewed-controls: | ||
control-selections: | ||
- include-all: {} | ||
back-matter: | ||
resources: | ||
- uuid: 4a8f42e8-1357-4664-bd88-aac54cb9aeb8 | ||
rlinks: | ||
- href: example_ssp_valid.xml | ||
- href: example_ssp_valid.json | ||
- href: example_ssp_valid.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"assessment-results" : { | ||
"uuid" : "33bef05b-dda4-4c4e-aaec-2721acaee3dc", | ||
"metadata" : { | ||
"title" : "Invalid OSCAL Document", | ||
"last-modified" : "2023-10-24T00:00:00Z", | ||
"version" : "1.0", | ||
"oscal-version" : "1.1.1", | ||
"roles" : [ { | ||
"id" : "maintainer", | ||
"title" : "Maintainer of oscal-cli" | ||
} ], | ||
"parties" : [ { | ||
"uuid" : "4ba3f2b7-e894-48d7-b940-91c68661df55", | ||
"type" : "person", | ||
"name" : "NIST ITL CSD Developer" | ||
} ], | ||
"responsible-parties" : [ { | ||
"role-id" : "maintainer", | ||
"party-uuids" : [ "4ba3f2b7-e894-48d7-b940-91c68661df55" ] | ||
} ] | ||
}, | ||
"import-ap" : { | ||
"href" : "#f1a6f923-ca07-4d61-8415-40e873aef6ea" | ||
}, | ||
"back-matter" : { | ||
"resources" : [ { | ||
"uuid" : "f1a6f923-ca07-4d61-8415-40e873aef6ea", | ||
"rlinks" : [ { | ||
"href" : "example_ap_invalid.xml" | ||
}, { | ||
"href" : "example_ap_invalid.json" | ||
}, { | ||
"href" : "example_ap_invalid.yaml" | ||
} ] | ||
} ] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="https://github.com/usnistgov/OSCAL/releases/download/v1.1.1/oscal_complete_schema.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<assessment-results xmlns="http://csrc.nist.gov/ns/oscal/1.0" uuid="33bef05b-dda4-4c4e-aaec-2721acaee3dc"> | ||
<metadata> | ||
<title>Invalid OSCAL Document</title> | ||
<last-modified>2023-10-24T00:00:00.000000-00:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.1.1</oscal-version> | ||
<role id="maintainer"> | ||
<title>Maintainer of oscal-cli</title> | ||
</role> | ||
<party uuid="4ba3f2b7-e894-48d7-b940-91c68661df55" type="person"> | ||
<name>NIST ITL CSD Developer</name> | ||
</party> | ||
<responsible-party role-id="maintainer"> | ||
<party-uuid>4ba3f2b7-e894-48d7-b940-91c68661df55</party-uuid> | ||
</responsible-party> | ||
</metadata> | ||
<import-ap href="#f1a6f923-ca07-4d61-8415-40e873aef6ea"/> | ||
<back-matter> | ||
<resource uuid="f1a6f923-ca07-4d61-8415-40e873aef6ea"> | ||
<rlink href="example_ap_invalid.xml"/> | ||
<rlink href="example_ap_invalid.json"/> | ||
<rlink href="example_ap_invalid.yaml"/> | ||
</resource> | ||
</back-matter> | ||
</assessment-results> |
Oops, something went wrong.