Upload New File
This commit is contained in:
53
01-TestCase/tsg_adc/multi_step/b_Deny_Ftp_Tests.robot
Normal file
53
01-TestCase/tsg_adc/multi_step/b_Deny_Ftp_Tests.robot
Normal file
@@ -0,0 +1,53 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg_adc_wp security_policy adc_verify
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Library Custometest
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Deny-Ftp-00001
|
||||
[Tags] 子串匹配
|
||||
Comment 功能端验证
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${FTP} FTP_login ftp://192.168.100.5/123456.txt -u"ftp_user:qazXSW@edc" завезенными
|
||||
should contain ${FTP} ftp_fail
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 deny_ftp_starttime ${starttime} deny_ftp_endtime ${endtime}
|
||||
|
||||
SecurityPolicy-Deny-Ftp-00002
|
||||
[Tags] 右匹配
|
||||
Comment 功能端验证
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${FTP} FTP_login ftp://192.168.100.5/test.txt -u"ftp_user:qazXSW@edc" 中文test
|
||||
should contain ${FTP} ftp_fail
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 deny_ftp_starttime1 ${starttime} deny_ftp_endtime1 ${endtime}
|
||||
|
||||
SecurityPolicy-Deny-Ftp-00003
|
||||
[Tags] 完整匹配
|
||||
Comment 功能端验证
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${FTP} FTP_login ftp://192.168.100.5/wlcsy.txt -u"ftp_user:qazXSW@edc" 中文文件内容
|
||||
should contain ${FTP} ftp_fail
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 deny_ftp_starttime2 ${starttime} deny_ftp_endtime2 ${endtime}
|
||||
|
||||
SecurityPolicy-Deny-Ftp-00004
|
||||
[Tags] 左匹配
|
||||
Comment 功能端验证
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${FTP} FTP_login ftp://192.168.100.5/aewn.txt -u"ftp_user:qazXSW@edc" завезенными
|
||||
should contain ${FTP} ftp_fail
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 deny_ftp_starttime3 ${starttime} deny_ftp_endtime3 ${endtime}
|
||||
Reference in New Issue
Block a user