feat(Cli):1、策略状态更改测试用例补充策略类型,2、策略对象查询测试用例多次迭代,3、增加对各cli命令help参数返回值测试

This commit is contained in:
zhangwenqing
2020-04-14 15:42:54 +08:00
parent 4dc63558d0
commit 44bd76e32b
10 changed files with 100 additions and 176 deletions

View File

@@ -0,0 +1,5 @@
Policy query
tsg_policy [--query --policyType(tsg_security|pxy_manipulation|pxy_cache) --policyId --policyName --policyDesc --all] Query strategy: policyType is required, policyId, policyName, policyDesc is not.
tsg_policy [--enable --policyId --policyType] Enable the strategy
tsg_policy [--disable --policyId --policyType] Stop using strategy
tsgcli >

View File

@@ -0,0 +1,5 @@
Strategy object query
tsg_policy_object [--query --objectType(ip|url|fqdn|keywords|subscriberid|fqdn_category|account|http_signature) --all --objectName] Query strategy object
tsg_policy_object [--import --objectType --file --objectName] Import the policy object by file: enter objectType/file are required, objectName is optional
tsg_policy_object [--export --objectType --file --exportFormat(txt|csv)] Export the policy object to a local fileexport objectType/file are required, exportFormat is optional
tsgcli >

View File

@@ -0,0 +1,4 @@
Display the most recently run command history: you can view the command history of all users
tsg_record [--username] Specifies the user's history is to be viewed
tsg_record [--userlist] View all current CLI user names
tsgcli >

View File

@@ -0,0 +1,9 @@
Used to view the running status of devices and applications, network traffic, and related statistics
tsg_show [--interface -- "where PhyRXBits > 60"] Display all available ports of the current device (network card name),where support, format : -- "where PhyRXBits > 60"
tsg_show [--app -- "where RxBits > 3000"] Displays traffic information processed by the application,where support, format : -- "where RxBits > 3000"
tsg_show [--protocol -- "where Ipv4_Bit > 3000"] Show Eth,Ipv4, and IPv6 statistics for each layer of network traffic,where support, format : -- "where Ipv4_Bit > 3000"
tsg_show [--stream -- "where Tcp_Concurrent > 0"] TCP stream related information, including the number of concurrent streams, C2S, S2C, etc,where support, format : -- "where Tcp_Concurrent > 0"
tsg_show [--chassis-ip] Output all board card IP information of TSG device
tsg_show [--chassis-port] Output all board card port information of TSG device
tsg_show [--intercept -- "where intcp_rdy_bits > 0"] Show intercept information,where support, format : -- "where intcp_rdy_bits > 0"
tsgcli >