This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_adc/multi_step/c_Allow_Http_Tests.robot

49 lines
2.6 KiB
Plaintext
Raw Normal View History

*** 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-Allow-Http-00001
#删除对象
${objectids} set Variable ${allow_http_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId5}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId}]}
${s} Convert to String ${allow_http_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host clintonairport.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.66rpg.com
SecurityPolicy-Allow-Http-00002
#删除对象
${objectids} set Variable ${allow_http_objectId1}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId6}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_http_objectId8}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId1}]}
${s} Convert to String ${allow_http_policyId1}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host scoutbahamas
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.xiang5.com
SecurityPolicy-Allow-Http-00003
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId2}]}
${s} Convert to String ${allow_http_policyId2}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host scoutbahamas
2020-08-18 09:32:49 +08:00