Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ytests

ytests runs a JSON-described test suite against a live yuno, over the same control-plane connection (and the same authentication) as ycommand / ybatch. The --repeat / --interval options make it a simple soak-tester: replay the suite N times (or forever) at a fixed cadence.

Usage

ytests --url ws://host:port [options] <test.json>
# Run a suite once against the local agent
ytests --url ws://127.0.0.1:1991 mytests.json

# Soak: repeat forever
ytests --url ws://127.0.0.1:1991 -t -1 mytests.json

Run ytests --help for the full flag list.

Options

OptionShortPurpose
<FILE>The test-suite JSON (positional)
--repeat=<n>-tRepeat the run n times; -1 = infinite loop (default 1)
--url=<url>-uYuno to connect to. Default ws://127.0.0.1:1991
--yuno_role=<role>-ORemote yuno role
--yuno_name=<name>-oRemote yuno name
--yuno_service=<svc>-STarget service. Default __default_service__
--config-file=<file>-fLoad settings from a JSON config file
--print-pPrint the resulting configuration and exit
--print-role-rPrint the basic yuno information

Authentication uses the same OAuth2 / OIDC flags as ycommand (--issuer/-I, --token-endpoint/-T, --end-session-endpoint/-E, --client-id/-Z, --jwt/-j) — see Authentication (OAuth2 / OIDC).

See also