-
-
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.
Merge pull request #1496 from buildtesters/reorg_examples_script.sche…
…ma.json Reorg examples for script.schema.json
- Loading branch information
Showing
96 changed files
with
595 additions
and
1,197 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/executors.yml
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,16 @@ | ||
buildspecs: | ||
executors_additionalProperties: | ||
type: script | ||
executor: "generic.local.(bash|sh|zsh)" | ||
description: Testing for additional properties in 'executors' | ||
tags: [tutorials] | ||
run: hostname | ||
sbatch: ["-N 4"] | ||
executors: | ||
generic.local.bash: | ||
sbatch: ["-n 4", "-N 1", "-t 30"] | ||
FOO: BAR | ||
generic.local.sh: | ||
sbatch: ["-n 8", "-N 1", "-t 60"] | ||
generic.local.zsh: | ||
sbatch: ["-n 16", "-N 2", "-t 120"] |
11 changes: 11 additions & 0 deletions
11
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/file_count.yml
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,11 @@ | ||
buildspecs: | ||
file_count_additionalProperties_check: | ||
type: script | ||
executor: generic.local.bash | ||
description: Testing for additional properties in file_count | ||
run: hostname | ||
status: | ||
file_count: | ||
- dir: /tmp | ||
count: 0 | ||
FOO: BAR |
12 changes: 12 additions & 0 deletions
12
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/file_regex.yml
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,12 @@ | ||
buildspecs: | ||
testing_additionalProperties_file_regex: | ||
type: script | ||
executor: generic.local.bash | ||
description: Testing for additional properties in file_regex | ||
run: | | ||
echo "Hello" > hello.txt | ||
status: | ||
file_regex: | ||
- file: hello.txt | ||
exp: '^(Hello)$' | ||
FOO: BAR |
11 changes: 11 additions & 0 deletions
11
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/metrics.yml
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,11 @@ | ||
buildspecs: | ||
invalid_metrics_additional_property: | ||
type: script | ||
executor: generic.local.bash | ||
description: Test for additional property for metrics property | ||
vars: | ||
FOO: BAR | ||
run: echo $FOO | ||
metrics: | ||
foo: | ||
variable: FOO |
11 changes: 11 additions & 0 deletions
11
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/regex.yml
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,11 @@ | ||
buildspecs: | ||
regex_additionalProperties_test: | ||
type: script | ||
executor: generic.local.bash | ||
description: Testing for additional properties in regex field | ||
run: hostname | ||
status: | ||
regex: | ||
stream: stdout | ||
exp: "world$" | ||
X: 1 |
10 changes: 10 additions & 0 deletions
10
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/status.yml
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,10 @@ | ||
buildspecs: | ||
additionalProperties_status: | ||
type: script | ||
executor: generic.local.bash | ||
description: test additional properties in status object. This is not allowed | ||
sbatch: ["-n 2", "-q normal", "-t 10"] | ||
run: hostname | ||
status: | ||
slurm_job_state: "COMPLETED" | ||
FOO: BAR |
7 changes: 7 additions & 0 deletions
7
buildtest/schemas/examples/script.schema.json/invalid/additionalProperties/test.yml
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,7 @@ | ||
buildspecs: | ||
additionalProperties_test: | ||
type: script | ||
executor: generic.local.bash | ||
description: additional properties are not allowed so any invalid key/value pair will result in error | ||
FOO: BAR | ||
run: hostname |
8 changes: 8 additions & 0 deletions
8
buildtest/schemas/examples/script.schema.json/invalid/description_type.yml
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,8 @@ | ||
buildspecs: | ||
invalid_description: | ||
type: script | ||
executor: generic.local.bash | ||
description: | ||
- "Multi Line description" | ||
- "is not accepted" | ||
run: sleep 1 |
8 changes: 8 additions & 0 deletions
8
buildtest/schemas/examples/script.schema.json/invalid/empty_returncode.yml
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,8 @@ | ||
buildspecs: | ||
empty_returncode_list: | ||
type: script | ||
executor: generic.local.bash | ||
description: An empty returncode list will cause an error | ||
run: hostname | ||
status: | ||
returncode: [] |
7 changes: 7 additions & 0 deletions
7
buildtest/schemas/examples/script.schema.json/invalid/empty_tags.yml
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,7 @@ | ||
buildspecs: | ||
empty_tags: | ||
type: script | ||
executor: generic.local.bash | ||
description: tag list can't be empty, requires one item. | ||
tags: [] | ||
run: hostname |
8 changes: 8 additions & 0 deletions
8
buildtest/schemas/examples/script.schema.json/invalid/env_type.yml
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,8 @@ | ||
buildspecs: | ||
invalid_env_type: | ||
type: script | ||
executor: generic.local.bash | ||
description: env key should be a dictionary | ||
env: | ||
- FOO=BAR | ||
run: echo $FOO |
Oops, something went wrong.