Describe the bug
The ETS does not currently seem to properly test multiplicity of inputs.
Expected behavior
The ETS should use the array form for inputs with multiplicity > 1, and if minOccurs is < 2, it should also test the singular form (without the extra brackets).
Additional context
In the sample Echo process, imagesInput has a minOccurs of 1 and a maxOccurs of 150.
The ETS should test various forms e.g.:
Describe the bug The ETS does not currently seem to properly test multiplicity of inputs.
Expected behavior The ETS should use the array form for inputs with multiplicity > 1, and if minOccurs is < 2, it should also test the singular form (without the extra brackets).
Additional context In the sample Echo process,
imagesInput
has aminOccurs
of 1 and amaxOccurs
of 150. The ETS should test various forms e.g.:"imagesInput" : [ "<base64 TIFF image1>", "<base64 TIFF image2>" ]
"imagesInput" : "<base64 TIFF image1>"
"imagesInput" : { "value": "<base64 TIFF image1>", "format": { "encoding": "base64", "mediaType": "image/tiff; application=geotiff" } }
"imagesInput" : [ { "href": "http://example.com/image1.tiff" }, { "href": "http://example.com/image2.tiff", "type": "image/tiff; application=geotiff" } ]
"imagesInput" : { "href": "http://example.com/image1.tiff" }
"imagesInput" : [ { "href": "http://example.com/image1.tiff" }, "<base64 TIFF image2>" ]
"imagesInput" : [ ]
(error: less thanminOccurs
)"imagesInput" : null
(or input missing; error: less thanminOccurs
)