59 lines
3.3 KiB
Plaintext
59 lines
3.3 KiB
Plaintext
*** 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
|
|
|
|
*** Test Cases ***
|
|
SecurityPolicy-Deny-quic-00001
|
|
[Tags] fqdn
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00001.bat
|
|
... ELSE set variable curl https://undergroundhealthreporter.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Subscribe
|
|
... ELSE Create List Subscribe
|
|
${starttime} Get Time
|
|
Sleep ${policyVerificationSleepSeconds}s
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Sleep ${policyLogVerificationSleepSeconds}s
|
|
${endtime} Get Time
|
|
insert_time_to_file1 deny_quic_starttime ${starttime} deny_quic_endtime ${endtime}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00001_1.bat
|
|
... ELSE set variable curl https://wordcrow.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List WordCrowd
|
|
... ELSE Create List WordCrowd
|
|
${starttime} Get Time
|
|
Sleep ${policyVerificationSleepSeconds}s
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Sleep ${policyLogVerificationSleepSeconds}s
|
|
${endtime} Get Time
|
|
insert_time_to_file1 deny_quic_starttime1 ${starttime} deny_quic_endtime1 ${endtime}
|
|
|
|
SecurityPolicy-Deny-quic-00002
|
|
[Tags] cat
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00002.bat
|
|
... ELSE set variable curl https://www.lousycv.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List LousyCV
|
|
... ELSE Create List LousyCV
|
|
${starttime} Get Time
|
|
Sleep ${policyVerificationSleepSeconds}s
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Sleep ${policyLogVerificationSleepSeconds}s
|
|
${endtime} Get Time
|
|
insert_time_to_file1 deny_quic_starttime2 ${starttime} deny_quic_endtime2 ${endtime}
|
|
Comment 功能端验证HTTP验证
|
|
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_QUIC_00002_2.bat
|
|
... ELSE set variable curl https://stylewithshannon.com/
|
|
${stringlist} run keyword if '${systemType}'=='Windows' Create List Blogs
|
|
... ELSE Create List Blogs
|
|
${starttime} Get Time
|
|
Sleep ${policyVerificationSleepSeconds}s
|
|
${rescode} SystemCommands ${commandstr} ${stringlist}
|
|
Sleep ${policyLogVerificationSleepSeconds}s
|
|
${endtime} Get Time
|
|
insert_time_to_file1 deny_quic_starttime3 ${starttime} deny_quic_endtime3 ${endtime}
|