-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests.yaml to support test resources by reference
- Loading branch information
Showing
4 changed files
with
115 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"$schema": https://json-schema.org/draft/2020-12/schema | ||
title: OGC Building Blocks extra tests schema | ||
type: array | ||
items: | ||
type: object | ||
required: | ||
- ref | ||
properties: | ||
ref: | ||
description: | | ||
A reference to a URL or to a filename (relative to the examples.yaml file) with the contents of | ||
this test, as an alternative to inlining them in the 'code' property. | ||
type: string | ||
format: uri-reference | ||
require-fail: | ||
description: Whether this test should return an error in order to succeed | ||
type: boolean | ||
default: false | ||
output-filename: | ||
description: | | ||
Name for the output file name that will be used when generating uplifted versions of the test resource. | ||
If not provided, the file name from "ref" will be used. | ||
type: string |
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