删除无用参数;添加标签;添加docker常用命令;注销自动获取测试机ip(获取的不是测试网络IP)
This commit is contained in:
@@ -10,6 +10,7 @@ Resource Tag.robot
|
||||
|
||||
*** Keywords ***
|
||||
Login
|
||||
[Tags] tsg_adc tsg_bf_api
|
||||
#[Arguments] ${username} ${password} ${authmode} ${authCode} ${ldapId}
|
||||
# 毕方接口用户名密码
|
||||
GET /v1/user/encryptpwd?password=${password}
|
||||
@@ -49,6 +50,7 @@ Login
|
||||
#Return ${rescode}
|
||||
|
||||
Logout
|
||||
[Tags] tsg_adc tsg_bf_api
|
||||
POST /v1/user/logout headers=${headers}
|
||||
Object response body
|
||||
Integer $.code 200
|
||||
@@ -56,8 +58,8 @@ Logout
|
||||
#[Return] ${rescode}
|
||||
|
||||
ApiLoginAndAddLocalIP
|
||||
[Arguments] ${tempparm}
|
||||
log ApiLoginAndAddLocalIP${tempparm}
|
||||
[Tags] tsg_adc tsg_bf_api
|
||||
log ApiLoginAndAddLocalIP
|
||||
loginlogout.Login
|
||||
#log **********
|
||||
Run Keyword If ${addTestClentIPFlag}==1 AddLocalIPObject
|
||||
@@ -66,8 +68,8 @@ ApiLoginAndAddLocalIP
|
||||
#[Return] ${rescode}
|
||||
|
||||
ApiLogoutAndDelLocalIP
|
||||
[Arguments] ${tempparm}
|
||||
log ApiLogoutAndDelLocalIP${tempparm}
|
||||
[Tags] tsg_adc tsg_bf_api
|
||||
log ApiLogoutAndDelLocalIP
|
||||
log to_LogoutAndDelLocalIP_LogoutAndDelLocalIP
|
||||
Run Keyword If ${addTestClentIPFlag}==1 DelLocalIPObject
|
||||
#ApiDeleteAutoTagsCase
|
||||
@@ -75,10 +77,12 @@ ApiLogoutAndDelLocalIP
|
||||
#[Return] ${rescode}
|
||||
|
||||
CliLogin
|
||||
[Tags] tsg_cli cli_login
|
||||
Open Connection ${cliHost}
|
||||
SSHLibrary.Login ${cliUsername} ${cliPassword}
|
||||
|
||||
CliLogout
|
||||
CliLogout
|
||||
[Tags] tsg_cli cli_logout
|
||||
Close Connection
|
||||
Log Close connection
|
||||
#exit
|
||||
Reference in New Issue
Block a user