修改部分用例策略部分
This commit is contained in:
@@ -8,27 +8,29 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Monitor-Quic-00001
|
||||
SecurityPolicy-Intercept-Http-00001
|
||||
[Tags] fqdn
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$wordcrow.com,*undergroundhealthreporter.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.mydrivers.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-quic-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"QUIC"} filterList=${objectId}|TSG_FIELD_QUIC_SNI isValid=${1} appIdObjects=43249
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Http-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
insert_policyId_to_file1 monitor_quic_objectId ${objectId}
|
||||
insert_policyId_to_file1 monitor_quic_policyId ${policyId}
|
||||
insert_policyId_to_file1 intercept_http_objectId ${objectId}
|
||||
insert_policyId_to_file1 intercept_http_policyId ${policyId}
|
||||
|
||||
SecurityPolicy-Monitor-Quic-00002
|
||||
SecurityPolicy-Intercept-Http-00002
|
||||
[Tags] cat
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=$www.lousycv.com,*stylewithshannon.com
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*sunnylands.org
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-quic-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"QUIC"} filterList=${objectId}|TSG_FIELD_QUIC_SNI isValid=${1} appIdObjects=43249
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Http-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
insert_policyId_to_file1 monitor_quic_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 monitor_quic_policyId1 ${policyId}
|
||||
insert_policyId_to_file1 intercept_http_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 intercept_http_policyId1 ${policyId}
|
||||
@@ -8,27 +8,29 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Deny-Quic-00001
|
||||
SecurityPolicy-Intercept-Ssl-00001
|
||||
[Tags] fqdn
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$wordcrow.com,*undergroundhealthreporter.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.reviewpro.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-quic-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"QUIC","method":"drop"} filterList=${objectId}|TSG_FIELD_QUIC_SNI isValid=${1} appIdObjects=43249
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Ssl-00001 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
insert_policyId_to_file1 deny_quic_objectId ${objectId}
|
||||
insert_policyId_to_file1 deny_quic_policyId ${policyId}
|
||||
insert_policyId_to_file1 intercept_ssl_objectId ${objectId}
|
||||
insert_policyId_to_file1 intercept_ssl_policyId ${policyId}
|
||||
|
||||
SecurityPolicy-Deny-Quic-00002
|
||||
SecurityPolicy-Intercept-Ssl-00002
|
||||
[Tags] cat
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=$www.lousycv.com,*stylewithshannon.com
|
||||
Comment 创建cat
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*momondo.ru
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-quic-00002 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"QUIC","method":"drop"} filterList=${objectId}|TSG_FIELD_QUIC_SNI isValid=${1} appIdObjects=43249
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Ssl-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
insert_policyId_to_file1 deny_quic_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 deny_quic_policyId1 ${policyId}
|
||||
insert_policyId_to_file1 intercept_ssl_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 intercept_ssl_policyId1 ${policyId}
|
||||
@@ -1,58 +0,0 @@
|
||||
*** 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}
|
||||
36
01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot
Normal file
36
01-TestCase/tsg_adc/multi_step/b_Intercept_Http_Tests.robot
Normal file
@@ -0,0 +1,36 @@
|
||||
*** 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-Intercept-Http-00001
|
||||
[Tags] fqdn
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_HTTP_00001.bat
|
||||
... ELSE set variable curl http://www.mydrivers.com/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 硬件发烧友
|
||||
... ELSE Create List 硬件发烧友
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 intercept_http_starttime ${starttime} intercept_http_endtime ${endtime}
|
||||
|
||||
SecurityPolicy-Intercept-Http-00002
|
||||
[Tags] cat
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_HTTP_00002.bat
|
||||
... ELSE set variable curl http://sunnylands.org/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List history
|
||||
... ELSE Create List history
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 intercept_http_starttime1 ${starttime} intercept_http_endtime1 ${endtime}
|
||||
36
01-TestCase/tsg_adc/multi_step/b_Intercept_Ssl_Tests.robot
Normal file
36
01-TestCase/tsg_adc/multi_step/b_Intercept_Ssl_Tests.robot
Normal file
@@ -0,0 +1,36 @@
|
||||
*** 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-Intercept-Ssl-00001
|
||||
[Tags] fqdn
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat
|
||||
... ELSE set variable curl -kv https://www.reviewpro.com/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Before Tango Secure Gateway CA
|
||||
... ELSE Create List Before Tango Secure Gateway CA
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 intercept_ssl_starttime ${starttime} intercept_ssl_endtime ${endtime}
|
||||
|
||||
SecurityPolicy-Intercept-Ssl-00002
|
||||
[Tags] cat
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002.bat
|
||||
... ELSE set variable curl -kv https://www.momondo.ru/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Виртуальные Tango Secure Gateway CA
|
||||
... ELSE Create List Виртуальные Tango Secure Gateway CA
|
||||
${starttime} Get Time
|
||||
Sleep ${policyVerificationSleepSeconds}s
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Sleep ${policyLogVerificationSleepSeconds}s
|
||||
${endtime} Get Time
|
||||
insert_time_to_file1 intercept_ssl_starttime1 ${starttime} intercept_ssl_endtime1 ${endtime}
|
||||
@@ -1,58 +0,0 @@
|
||||
*** 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-Monitor-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 monitor_quic_starttime ${starttime} monitor_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 monitor_quic_starttime1 ${starttime} monitor_quic_endtime1 ${endtime}
|
||||
|
||||
SecurityPolicy-Monitor-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 monitor_quic_starttime2 ${starttime} monitor_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 monitor_quic_starttime3 ${starttime} monitor_quic_endtime3 ${endtime}
|
||||
@@ -1,35 +0,0 @@
|
||||
*** Settings ***
|
||||
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
Force Tags tsg_adc_wp adc_log security_policy
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable1.txt
|
||||
|
||||
*** Variables ***
|
||||
${policyIds} ${EMPTY}
|
||||
${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Deny-Quic-00001
|
||||
[Tags] fqdn
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_quic_objectId}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_quic_policyId}]}
|
||||
${s} Convert to String ${deny_quic_policyId}
|
||||
GetLogList security_event_log ${deny_quic_starttime} ${deny_quic_endtime} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
GetLogList security_event_log ${deny_quic_starttime1} ${deny_quic_endtime1} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
|
||||
SecurityPolicy-Deny-Quic-00002
|
||||
[Tags] cat
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_quic_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_quic_policyId1}]}
|
||||
${s} Convert to String ${deny_quic_policyId1}
|
||||
GetLogList security_event_log ${deny_quic_starttime2} ${deny_quic_endtime2} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
GetLogList security_event_log ${deny_quic_starttime3} ${deny_quic_endtime3} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot
Normal file
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot
Normal file
@@ -0,0 +1,33 @@
|
||||
*** Settings ***
|
||||
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
Force Tags tsg_adc_wp adc_log security_policy
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable1.txt
|
||||
|
||||
*** Variables ***
|
||||
${policyIds} ${EMPTY}
|
||||
${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Intercept-Http-00001
|
||||
[Tags] fqdn
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_http_objectId}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId}]}
|
||||
${s} Convert to String ${intercept_http_policyId}
|
||||
GetLogList security_event_log ${intercept_http_starttime} ${intercept_http_endtime} ${testClentIP} ${s} http_host www.mydrivers.com
|
||||
|
||||
SecurityPolicy-Intercept-Http-00002
|
||||
[Tags] cat
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_http_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId1}]}
|
||||
${s} Convert to String ${intercept_http_policyId1}
|
||||
GetLogList security_event_log ${intercept_http_starttime1} ${intercept_http_endtime1} ${testClentIP} ${s} http_host sunnylands.org
|
||||
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Ssl_Tests.robot
Normal file
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Ssl_Tests.robot
Normal file
@@ -0,0 +1,33 @@
|
||||
*** Settings ***
|
||||
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
Force Tags tsg_adc_wp adc_log security_policy
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable1.txt
|
||||
|
||||
*** Variables ***
|
||||
${policyIds} ${EMPTY}
|
||||
${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Intercept-Ssl-00001
|
||||
[Tags] fqdn
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_ssl_objectId}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId}]}
|
||||
${s} Convert to String ${intercept_ssl_policyId}
|
||||
GetLogList security_event_log ${intercept_ssl_starttime} ${intercept_ssl_endtime} ${testClentIP} ${s} ssl_sni amadeus.com
|
||||
|
||||
SecurityPolicy-Intercept-Ssl-00002
|
||||
[Tags] cat
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_ssl_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId1}]}
|
||||
${s} Convert to String ${intercept_ssl_policyId1}
|
||||
GetLogList security_event_log ${intercept_ssl_starttime1} ${intercept_ssl_endtime1} ${testClentIP} ${s} ssl_sni www.momondo.ru
|
||||
@@ -1,35 +0,0 @@
|
||||
*** Settings ***
|
||||
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
Force Tags tsg_adc_wp adc_log security_policy
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../05-Other/AllFlowCaseVariable1.txt
|
||||
|
||||
*** Variables ***
|
||||
${policyIds} ${EMPTY}
|
||||
${objectids} ${EMPTY}
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Monitor-Quic-00001
|
||||
[Tags] fqdn
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_quic_objectId}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_quic_policyId}]}
|
||||
${s} Convert to String ${monitor_quic_policyId}
|
||||
GetLogList security_event_log ${monitor_quic_starttime} ${monitor_quic_endtime} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
GetLogList security_event_log ${monitor_quic_starttime1} ${monitor_quic_endtime1} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
|
||||
SecurityPolicy-Monitor-Quic-00002
|
||||
[Tags] cat
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_quic_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_quic_policyId1}]}
|
||||
${s} Convert to String ${monitor_quic_policyId1}
|
||||
GetLogList security_event_log ${monitor_quic_starttime2} ${monitor_quic_endtime2} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
GetLogList security_event_log ${monitor_quic_starttime3} ${monitor_quic_endtime3} ${testClentIP} ${s} common_l4_protocol IPv4_UDP
|
||||
Reference in New Issue
Block a user