-
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.
[uss_qualifier] Add local test suite resources (#279)
Add local test suite resources
- Loading branch information
1 parent
e94f3ea
commit 6c484c3
Showing
7 changed files
with
114 additions
and
77 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
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
50 changes: 25 additions & 25 deletions
50
schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDeclaration.json
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 |
---|---|---|
@@ -1,46 +1,46 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDeclaration.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"description": "monitoring.uss_qualifier.suites.definitions.TestSuiteDeclaration, as defined in monitoring/uss_qualifier/suites/definitions.py", | ||
"properties": { | ||
"$ref": { | ||
"type": "string", | ||
"description": "Path to content that replaces the $ref" | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"resources": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Mapping of the ID a resource will be known by in the child test suite -> the ID a resource is known by in the parent test suite.\n\nThe child suite resource <key> is supplied by the parent suite resource <value>.", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
} | ||
}, | ||
"type": [ | ||
"object", | ||
"null" | ||
] | ||
}, | ||
"suite_definition": { | ||
"description": "Definition of test suite internal to the configuration -- specified instead of `suite_type`.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "TestSuiteDefinition.json" | ||
} | ||
], | ||
"description": "Definition of test suite internal to the configuration -- specified instead of `suite_type`." | ||
}, | ||
"resources": { | ||
"type": "object", | ||
"properties": { | ||
"$ref": { | ||
"type": "string", | ||
"description": "Path to content that replaces the $ref" | ||
} | ||
}, | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Mapping of the ID a resource will be known by in the child test suite -> the ID a resource is known by in the parent test suite.\n\nThe child suite resource <key> is supplied by the parent suite resource <value>." | ||
] | ||
}, | ||
"suite_type": { | ||
"description": "Type/location of test suite. Usually expressed as the file name of the suite definition (without extension) qualified relative to the `uss_qualifier` folder", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "Type/location of test suite. Usually expressed as the file name of the suite definition (without extension) qualified relative to the `uss_qualifier` folder" | ||
] | ||
} | ||
}, | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDeclaration.json", | ||
"description": "monitoring.uss_qualifier.suites.definitions.TestSuiteDeclaration, as defined in monitoring/uss_qualifier/suites/definitions.py", | ||
"required": [ | ||
"resources" | ||
] | ||
"type": "object" | ||
} |
84 changes: 50 additions & 34 deletions
84
schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDefinition.json
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 |
---|---|---|
@@ -1,62 +1,78 @@ | ||
{ | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDefinition.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"description": "Schema for the definition of a test suite, analogous to the Python TestScenario subclass for scenarios\n\nmonitoring.uss_qualifier.suites.definitions.TestSuiteDefinition, as defined in monitoring/uss_qualifier/suites/definitions.py", | ||
"properties": { | ||
"$ref": { | ||
"type": "string", | ||
"description": "Path to content that replaces the $ref" | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
}, | ||
"actions": { | ||
"description": "The actions to take when running the test suite. Components will be executed in order.", | ||
"items": { | ||
"$ref": "TestSuiteActionDeclaration.json" | ||
}, | ||
"type": "array" | ||
}, | ||
"local_resources": { | ||
"additionalProperties": { | ||
"$ref": "../../resources/definitions/ResourceDeclaration.json" | ||
}, | ||
"description": "Declarations of resources originating in this test suite.", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
} | ||
}, | ||
"type": [ | ||
"object", | ||
"null" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the test suite" | ||
"description": "Name of the test suite", | ||
"type": "string" | ||
}, | ||
"participant_verifiable_capabilities": { | ||
"description": "Definitions of capabilities verified by this test suite for individual participants.", | ||
"items": { | ||
"$ref": "../../reports/capability_definitions/ParticipantCapabilityDefinition.json" | ||
}, | ||
"type": [ | ||
"array", | ||
"null" | ||
] | ||
}, | ||
"report_evaluation_scenario": { | ||
"description": "The scenario executed after all the actions that evaluates the test suite report. Must be a ReportEvaluationScenario.", | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "../../scenarios/definitions/TestScenarioDeclaration.json" | ||
} | ||
], | ||
"description": "The scenario executed after all the actions that evaluates the test suite report. Must be a ReportEvaluationScenario." | ||
}, | ||
"participant_verifiable_capabilities": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "../../reports/capability_definitions/ParticipantCapabilityDefinition.json" | ||
}, | ||
"description": "Definitions of capabilities verified by this test suite for individual participants." | ||
] | ||
}, | ||
"resources": { | ||
"type": "object", | ||
"properties": { | ||
"$ref": { | ||
"type": "string", | ||
"description": "Path to content that replaces the $ref" | ||
} | ||
}, | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Enumeration of the resources used by this test suite" | ||
}, | ||
"actions": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "TestSuiteActionDeclaration.json" | ||
"description": "Enumeration of the resources used by this test suite", | ||
"properties": { | ||
"$ref": { | ||
"description": "Path to content that replaces the $ref", | ||
"type": "string" | ||
} | ||
}, | ||
"description": "The actions to take when running the test suite. Components will be executed in order." | ||
"type": "object" | ||
} | ||
}, | ||
"$id": "https://github.com/interuss/monitoring/blob/main/schemas/monitoring/uss_qualifier/suites/definitions/TestSuiteDefinition.json", | ||
"description": "Schema for the definition of a test suite, analogous to the Python TestScenario subclass for scenarios\n\nmonitoring.uss_qualifier.suites.definitions.TestSuiteDefinition, as defined in monitoring/uss_qualifier/suites/definitions.py", | ||
"required": [ | ||
"actions", | ||
"name", | ||
"resources" | ||
] | ||
], | ||
"type": "object" | ||
} |