api-security测试用例修改和StmpHandle.robot关键字EmailLogin的修改

This commit is contained in:
shangguan
2020-04-13 16:15:54 +08:00
parent ee08fd111e
commit 05a3b64e93
5 changed files with 14 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ SecurityPolicy-Deny-DNS-00001
${endtime} Get Time
#日志验证
${s} Convert to String ${policyId2}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni xiaozhu
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname ziroom
SecurityPolicy-Deny-DNS-00002
[Tags] Deny Sub_Category
@@ -62,10 +62,12 @@ SecurityPolicy-Deny-DNS-00002
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${commandstr} set variable nslookup -d www.smspunch.net
@{stringlist} set variable www.ly.com
${rescode} SystemCommands ${commandstr} @{stringlist}
#@{stringlist} set variable www.ly.com
${stringlista} set variable 超时
${stringlist} Create List ${stringlista}
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证
${s} Convert to String ${policyId2}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni xiaozhu
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} dns_qname smspunch

View File

@@ -31,7 +31,7 @@ SecurityPolicy-Deny-FTP-00001
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 登录
should contain ${FTP} Deny Success
should contain ${FTP} Fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证
@@ -65,7 +65,7 @@ SecurityPolicy-Deny-FTP-00002
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 下载
should contain ${FTP} Deny Success
should contain ${FTP} Fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证
@@ -91,7 +91,7 @@ SecurityPolicy-Deny-FTP-00003
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 登录
should contain ${FTP} Deny Success
should contain ${FTP} Fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证

View File

@@ -37,7 +37,7 @@ SecurityPolicy-Intesept-Http-00001
log ${rescode}
#日志验证
${s} Convert to String ${policyId}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_domain www.wenming.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_domain wenming.cn
SecurityPolicy-Intesept-Http-00002
[Tags] Intercept http SUB+CAT

View File

@@ -34,7 +34,7 @@ SecurityPolicy-monitor-FTP-00001
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 登录
should contain ${FTP} Deny Success
should contain ${FTP} Success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证
@@ -61,7 +61,7 @@ SecurityPolicy-monitor-FTP-00002
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 下载
should contain ${FTP} Deny fail
should contain ${FTP} Success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证
@@ -84,7 +84,7 @@ SecurityPolicy-monitor-FTP-00003
Sleep ${policyVerificationSleepSeconds}s
${starttime} Get Time
${FTP} FTP 登录
should contain ${FTP} Deny fail
should contain ${FTP} Success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
#日志验证

View File

@@ -15,7 +15,7 @@ EmailLogin
Ehlo
${result} logins
run keyword if "${result}"=="fail" log ${result}
... ELSE Quit Close Connection
... ELSE run keywords Quit AND Close Connection
#Quit
#Close Connection
[Return] ${result} # 返回登入结果