用于从命令行执行测试的wallarm fast cli工具。
wallarm-fast-cli的Python项目详细描述
说明
wallarm fast cli-一个用于Wallarm FAST的简单命令行界面。目前,该工具可以在ci系统中用于创建测试运行和检索检测到的漏洞。
安装
要安装pypi的最新版本,可以运行以下命令:pip install wallarm-fast-cli
你也可以使用Docker容器。
用法
Usage: fast-cli [OPTIONS] COMMAND [ARGS]...
Wallarm FAST CLI - A simple command line interface for Wallarm FAST.
Options:
--uuid TEXT You personal UUID to authorize API calls. Defaults to the
value of the env variable WALLARM_UUID.
--secret TEXT You personal secret key to authorize API calls. Defaults to
the value of the env variable WALLARM_SECRET.
--help Show this message and exit.
Commands:
check Check that credentials (UUID and Secret key) are valid.
create Create a new test run with provided parameters.
report Get all findings from test run by id. Findings will be in JSON
format.
此工具的主要目的是从ci系统(即jenkins)创建测试运行,可以使用create命令来完成:
Usage: fast-cli create [OPTIONS]
Options:
-n, --name TEXT Test run name. [required]
-N, --node TEXT Node name for test execution. No cloud, only
node. [required]
-D, --desc TEXT Short description. Defaults to empty decription.
-P, --policy TEXT Policy name to apply.
-T, --tags TEXT Comma-separated tags to test run.
-Rt, --rps-total INTEGER The max number of concurrent requests.
-Rb, --rps-per-url INTEGER The max number of concurrent requests for one
baseline (unique url).
--track / --no-track If set, then test execution will be tracked and
all findings will be exported at the end.
-o, --out-file TEXT Save report to the file. Otherwise, the results will
be output to stdout.
--help Show this message and exit.
创建测试运行的命令示例:fast-cli create -n awesome_run -N super_node -P my_policy -T fast,cli,test -Rt 200 -Rb 20