SERVICE DETAILS
OSCAR Simple Test Service
AsynchronousSynchronous
Overview
Example OSCAR service that processes a text-based input to produce basic statistics for demonstration purposes.
Deployment requirements
- Memory
- 128 MiB
- Processors
- 0.2 vCPU0 GPU
Files & artifacts
- fdl.yml (opens in a new tab)text/yaml
OSCAR Simple Test Definition
Show content of fdl.yml
- script.sh (opens in a new tab)text/x-shellscript
OSCAR Simple Test Script
Show content of script.sh
- input.txt (opens in a new tab)text/plain
Sample Input
Show content of input.txt
Usage & acceptance tests
Synchronous CLI acceptance test
Execute the service locally with the sample input and validate the output string.
Run the service using the provided sample input.
oscar-cli service run simple-test --file-input {input}
Asynchronous CLI acceptance test
Upload the sample input to the service storage and then download the most recent output to verify its contents.
Upload the sample input using the OSCAR CLI.
oscar-cli service put-file simple-test {source}Wait for the remote execution to complete before retrieving the result.
Time required: PT20SDownload the latest output and confirm it contains the expected substring.
oscar-cli service get-file simple-test --download-latest-into {destination}
RO-Crate metadata
- application/json
Show content of ro-crate-metadata.json