Estimated Reading time: 2 minutes
|
Last modified: 2021-12-31, 11:27:28 amtest
Usage: oredge test ACTION [OPTIONS]
ACTION:
create
list
show
modify
delete
help
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Create Test
Usage: oredge test create [http] [OPTIONS]
OPTIONS:
--http integer http application id.
--name string name.
--code string code.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge test create 3 --name test --code "=== Test1\n--- url: /a/b\n--- host: test.com"
ID: 3-2
List Test
Usage: oredge test list [http] [OPTIONS]
OPTIONS:
--page integer page, 1(default).
--page-size integer page size, 20(default).
--http integer http application id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge test list 3
ID NAME CREATE TIME MODIFY TIME
3-1 default 2021-05-28 03:30:54 2021-05-28 03:30:54
3-2 test 2021-05-28 04:20:16 2021-05-28 04:20:16
Show Test
Usage: oredge test show [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge test show 3-1
ID : 3-1
NAME : default
CREATE TIME: 2021-05-28 03:30:54
MODIFY TIME: 2021-05-28 03:30:54
CODE : === Test1
--- url: /a/b
--- host: test.com
Modify Test
Usage: oredge test modify [id] [OPTIONS]
OPTIONS:
--id integer id.
--name string name.
--code string code.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge test modify 3-1 --name default
OK
Delete test
Usage: oredge test delete [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge test delete 1-21
OK