Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
TAPY - Test API with YAML
Примеры использования можно посмотреть в папке /test
Каждый файл может содержать зависимости. Перед стартом будет построен граф и выполнение пойдет в топологическом порядке
depends_on:
- auth
Каждый файл и каждый шаг может содержать следующие настройки:
root: https://jsonplaceholder.typicode.com # переустановать root
vars: # назначить переменные
testKey: TEST${$makeAlphaId(5).toUpperCase()}
headers: # установаить заголовки в следующие fetch
"Authorization": "Bearer ${json.token}"
Шаги описываются структурой:
# выполняются в самом начале файла
beforeAll:
- get: url # GET запрос
...
steps:
- sleep: milliseconds # Подождать перед выполнением
- post: url # POST запрос
log: varName/json # вывести в лог переменную varName или json ответ
body: # тело запроса
title: title value string
user_id: 2
json: varName # сохранить ответ в переменную
status: 200 # проверить код ответа
check: # проверить после выполнение запросов
- json.title === 'title value string'
- json.user_id === 2
eval: # выполняет eval в контексте
- m1.date = "2023-09-25T00:00:00Z"
- put: url # PUT запрос
...
- get: url # GET запрос
...
- delete: url # DELETE запрос
...
# выполняются после всех шагов
afterAll:
- get: url # GET запрос
...
# cleanup выполняется в обратном топологическом порядке даже если тесты не прошли
cleanup:
- get: url # GET запрос
...
npx rw-tapy --help
npx rw-tapy <options> ./test
FAQs
## Описание
The npm package rw-tapy receives a total of 1 weekly downloads. As such, rw-tapy popularity was classified as not popular.
We found that rw-tapy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.