api-security测试用例修改和StmpHandle.robot关键字EmailLogin的修改
This commit is contained in:
@@ -37,7 +37,7 @@ SecurityPolicy-Deny-DNS-00001
|
|||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId2}
|
${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
|
SecurityPolicy-Deny-DNS-00002
|
||||||
[Tags] Deny Sub_Category
|
[Tags] Deny Sub_Category
|
||||||
@@ -62,10 +62,12 @@ SecurityPolicy-Deny-DNS-00002
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${commandstr} set variable nslookup -d www.smspunch.net
|
${commandstr} set variable nslookup -d www.smspunch.net
|
||||||
@{stringlist} set variable www.ly.com
|
#@{stringlist} set variable www.ly.com
|
||||||
${rescode} SystemCommands ${commandstr} @{stringlist}
|
${stringlista} set variable 超时
|
||||||
|
${stringlist} Create List ${stringlista}
|
||||||
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId2}
|
${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
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ SecurityPolicy-Deny-FTP-00001
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 登录
|
${FTP} FTP 登录
|
||||||
should contain ${FTP} Deny Success
|
should contain ${FTP} Fail
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
@@ -65,7 +65,7 @@ SecurityPolicy-Deny-FTP-00002
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 下载
|
${FTP} FTP 下载
|
||||||
should contain ${FTP} Deny Success
|
should contain ${FTP} Fail
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
@@ -91,7 +91,7 @@ SecurityPolicy-Deny-FTP-00003
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 登录
|
${FTP} FTP 登录
|
||||||
should contain ${FTP} Deny Success
|
should contain ${FTP} Fail
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ SecurityPolicy-Intesept-Http-00001
|
|||||||
log ${rescode}
|
log ${rescode}
|
||||||
#日志验证
|
#日志验证
|
||||||
${s} Convert to String ${policyId}
|
${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
|
SecurityPolicy-Intesept-Http-00002
|
||||||
[Tags] Intercept http SUB+CAT
|
[Tags] Intercept http SUB+CAT
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ SecurityPolicy-monitor-FTP-00001
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 登录
|
${FTP} FTP 登录
|
||||||
should contain ${FTP} Deny Success
|
should contain ${FTP} Success
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
@@ -61,7 +61,7 @@ SecurityPolicy-monitor-FTP-00002
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 下载
|
${FTP} FTP 下载
|
||||||
should contain ${FTP} Deny fail
|
should contain ${FTP} Success
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
@@ -84,7 +84,7 @@ SecurityPolicy-monitor-FTP-00003
|
|||||||
Sleep ${policyVerificationSleepSeconds}s
|
Sleep ${policyVerificationSleepSeconds}s
|
||||||
${starttime} Get Time
|
${starttime} Get Time
|
||||||
${FTP} FTP 登录
|
${FTP} FTP 登录
|
||||||
should contain ${FTP} Deny fail
|
should contain ${FTP} Success
|
||||||
Sleep ${policyLogVerificationSleepSeconds}s
|
Sleep ${policyLogVerificationSleepSeconds}s
|
||||||
${endtime} Get Time
|
${endtime} Get Time
|
||||||
#日志验证
|
#日志验证
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ EmailLogin
|
|||||||
Ehlo
|
Ehlo
|
||||||
${result} logins
|
${result} logins
|
||||||
run keyword if "${result}"=="fail" log ${result}
|
run keyword if "${result}"=="fail" log ${result}
|
||||||
... ELSE Quit Close Connection
|
... ELSE run keywords Quit AND Close Connection
|
||||||
#Quit
|
#Quit
|
||||||
#Close Connection
|
#Close Connection
|
||||||
[Return] ${result} # 返回登入结果
|
[Return] ${result} # 返回登入结果
|
||||||
|
|||||||
Reference in New Issue
Block a user