fix(Cli):修正tsg_show命令对比条件
This commit is contained in:
@@ -5,6 +5,9 @@ Resource ../../02-Keyword/tsg_cli/interface.robot
|
|||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
Security_Policy_Query_TestCase
|
Security_Policy_Query_TestCase
|
||||||
|
# 查询默认拦截策略
|
||||||
|
Tsg_Policy_Query tsg_security ${None} default intercept policy ${None} ${True}
|
||||||
|
|
||||||
# 取最多10条策略数据,分别做条件查询
|
# 取最多10条策略数据,分别做条件查询
|
||||||
${list} Get_Policy_Object2 tsg_security
|
${list} Get_Policy_Object2 tsg_security
|
||||||
FOR ${obj} IN @{list}
|
FOR ${obj} IN @{list}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
*** Settings ***
|
*** Settings ***
|
||||||
|
Force Tags tsg-mib query
|
||||||
Test Setup OpenMibConnection
|
Test Setup OpenMibConnection
|
||||||
Test Teardown CloseMibConnection
|
Test Teardown CloseMibConnection
|
||||||
Library json
|
Library json
|
||||||
|
|||||||
@@ -205,8 +205,9 @@ Tsg_Help_Keyword
|
|||||||
... 参数:无
|
... 参数:无
|
||||||
... 返回:无
|
... 返回:无
|
||||||
${r} Run9 tsg_help
|
${r} Run9 tsg_help
|
||||||
${data} Evaluate open(r"${path}/${Tsg_Help_file_Path}",'rb').read()
|
${data} Evaluate str(open(r"${path}/${Tsg_Help_file_Path}",'rb').read())
|
||||||
Should Be Equal As Strings ${r} ${data}
|
${data} Evaluate ${data.replace('\\n', '\\r\\n')}
|
||||||
|
Should Be Equal As Strings ${r} ${data}
|
||||||
|
|
||||||
Tsg_Diagnose_Keyword
|
Tsg_Diagnose_Keyword
|
||||||
[Documentation]
|
[Documentation]
|
||||||
@@ -224,8 +225,8 @@ Tsg_Command_Help
|
|||||||
[Arguments] ${cmd}
|
[Arguments] ${cmd}
|
||||||
${str} Set Variable ${cmd} --help
|
${str} Set Variable ${cmd} --help
|
||||||
${r} Run9 ${str}
|
${r} Run9 ${str}
|
||||||
${data} Evaluate open(r"${path}/cli_files/${cmd}_help.txt",'rb').read()
|
${data} Evaluate str(open(r"${path}/cli_files/${cmd}_help.txt",'rb').read(), 'utf-8')
|
||||||
Should Be Equal ${r} ${data}
|
Should Be Equal As Strings ${r} ${data}
|
||||||
|
|
||||||
Tsg_Show_Chassis-ip
|
Tsg_Show_Chassis-ip
|
||||||
[Documentation]
|
[Documentation]
|
||||||
|
|||||||
Reference in New Issue
Block a user