In this example, it is shown how to list and filter tests created in Load Testing service using YC CLI tool.
NOTE: in snippets bellow, it is assumed that folder-id setting is already set in yc
yc config set folder-id 'my_folder_id'
NOTE2: to get test ids for further processing, use json output format and jq
command-line tool:
yc loadtesting test list --filter $FILTER_QUERY | jq -r "[.[].id] | join(\" \")"
yc loadtesting test list
yc loadtesting test list --filter "details.name CONTAINS 'api-examples'"
yc loadtesting test list --filter "details.tags.issue:123 and details.tags.type:release"
yc loadtesting test list --filter "summary.created_by = 'loadtester'"
yc loadtesting test list --filter "summary.created_at >= 2024-01-29 AND summary.created_at < 2024-01-30"
yc loadtesting test list --filter "summary.is_finished = false AND summary.created_at >= 2023-01-01 AND summary.created_at < 2024-01-01"