Skip to content

Commit 08cf80e

Browse files
author
Alan Christie
committed
Test inputs can now be a list of strings
1 parent e007436 commit 08cf80e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

decoder/job-definition-schema.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,17 @@ definitions:
302302
required:
303303
- exitCode
304304

305-
# A test input
305+
# A test input, a string or array of strings
306306
test-input:
307307
type: object
308308
additionalProperties: false
309309
patternProperties:
310310
'^[a-zA-Z]{1}[a-zA-Z0-9_-]{0,31}$':
311-
type: string
311+
oneOf:
312+
- type: string
313+
- type: array
314+
items:
315+
type: string
312316

313317
# A test option
314318
test-option:

tests/test_validate_job_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_validate_two_basic_tests():
146146
{'basic-1': {'run-level': 1,
147147
'ignore': None},
148148
'basic-2': {'run-level': 100,
149-
'inputs': {'file-1': 'blob.txt'},
149+
'inputs': {'files': ['blob-1.txt', 'blob-2.txt']},
150150
'options': {'param-1': 32,
151151
'param-2': 'a'},
152152
'checks': {'exitCode': 0,

0 commit comments

Comments
 (0)