Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yandex-cloud-examples/yc-load-testing-list-tests
Получение списка тестов в сервисе Yandex Load Testing с помощью инструмента YC CLI.
https://github.com/yandex-cloud-examples/yc-load-testing-list-tests
bash load-testing yandex-cloud yandexcloud yc-cli
Last synced: about 17 hours ago
JSON representation
Получение списка тестов в сервисе Yandex Load Testing с помощью инструмента YC CLI.
- Host: GitHub
- URL: https://github.com/yandex-cloud-examples/yc-load-testing-list-tests
- Owner: yandex-cloud-examples
- License: apache-2.0
- Created: 2024-02-17T09:47:05.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-19T15:33:26.000Z (9 months ago)
- Last Synced: 2024-02-19T17:13:45.201Z (9 months ago)
- Topics: bash, load-testing, yandex-cloud, yandexcloud, yc-cli
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get a list of tests in Yandex Cloud Load Testing service using YC CLI.
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`
```bash
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:
```bash
yc loadtesting test list --filter $FILTER_QUERY | jq -r "[.[].id] | join(\" \")"
```## 1. All tests in folder
```bash
yc loadtesting test list
```## 2. All tests with name containing 'api-examples'
```bash
yc loadtesting test list --filter "details.name CONTAINS 'api-examples'"
```## 3. All tests with tags 'issue:123' and 'type:release'
```bash
yc loadtesting test list --filter "details.tags.issue:123 and details.tags.type:release"
```## 4. All tests created by account with id 'loadtester'
```bash
yc loadtesting test list --filter "summary.created_by = 'loadtester'"
```## 5. All tests created at 29 Jan 2024
```bash
yc loadtesting test list --filter "summary.created_at >= 2024-01-29 AND summary.created_at < 2024-01-30"
```## 6. All tests created in 2023 which are not finished yet
```bash
yc loadtesting test list --filter "summary.is_finished = false AND summary.created_at >= 2023-01-01 AND summary.created_at < 2024-01-01"
```