← Back to catalog

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

Usage & acceptance tests

Synchronous CLI acceptance test

Execute the service locally with the sample input and validate the output string.

  1. 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.

  1. Upload the sample input using the OSCAR CLI.

    oscar-cli service put-file simple-test {source}
  2. Wait for the remote execution to complete before retrieving the result.

    Time required: PT20S
  3. Download the latest output and confirm it contains the expected substring.

    oscar-cli service get-file simple-test --download-latest-into {destination}

RO-Crate metadata