提交安全地理策略关键字中的大小写

This commit is contained in:
lyf
2021-02-26 13:39:46 +08:00
parent 04cdc115dd
commit fb5ec8c766
3 changed files with 863 additions and 818 deletions

View File

@@ -88,3 +88,4 @@ ProxyPolicy-Deny-HTTP-MaxCombination-Drop-403
Should Be Equal As Strings ${text} ProxyPolicy-Deny-MaxCombination-403
${PolicyName} set variable ProxyPolicy-Deny-MaxCombination-403

View File

@@ -36,32 +36,32 @@ Test-UIAddPolicies
${ResponseHeadername} create list zdhressck zdhresct
${RequestContentname} create list zdhreqcontent
${filter} create list Host URL Request Header Response Header Request Content
${policyInfo} Create Dictionary policyType=Security Policy policyName=${TEST NAME} policyAction=deny policySubAction=RST ApplicationSearch=HTTP policyLogSession=1 policyEnabled=1
${sip1} Create Dictionary sordtype=Source type1=Ip CreateOrSearch=Create Add=Address name=${TEST NAME}_IP1 ipclienttext1=192.168.40.11-192.168.40.110 port=1-65535
${policyInfo} Create Dictionary PolicyType=Security Policy PolicyName=${TEST NAME} PolicyAction=Deny PolicySubAction=RST ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1
${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}_IP1 Ipclienttext1=192.168.40.11-192.168.40.110 Port=1-65535
${ip_name} create list ${TEST NAME}_IP1
${sip2} Create Dictionary sordtype=Source type1=Ip CreateOrSearch=Create Add=Group name=${TEST NAME}_IPGroup1 object_name=${ip_name}
${sip2} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Group Name=${TEST NAME}_IPGroup1 ObjectName=${ip_name}
${Country} create list Botswana
${City} create list Dekar
${sgeo1} Create Dictionary sordtype=Source type1=Geography CreateOrSearch=Create Add=Address name=${TEST NAME}_Geo1 Country=${Country} City=${City}
${sgeo1} Create Dictionary Sordtype=Source Type1=Geography CreateOrSearch=Create Add=Address Name=${TEST NAME}_Geo1 Country=${Country} City=${City}
${sgeo_name} create list ${TEST NAME}_Geo1
${sgeo2} Create Dictionary sordtype=Source type1=Geography CreateOrSearch=Create Add=Group name=${TEST NAME}_GeoGroup1 object_name=${sgeo_name}
${slearn1} Create Dictionary sordtype=Source type1=IPLearning CreateOrSearch=Create Add=Address name=${TEST NAME}_Learn1 fqdn=*www.baidu.com Protocols1=HTTP Degree=2Degrees limits=10000 numbers=1 times=10000
${slearn2} Create Dictionary sordtype=Source type1=IPLearning CreateOrSearch=Create Add=Address name=${TEST NAME}_Learn2 fqdn=*www.baidu.com Protocols1=HTTPSSL Degree=1Degrees limits=10000 numbers=1 times=72
${ssub1} Create Dictionary sordtype=Source type1=SUBID CreateOrSearch=Create Add=Address name=${TEST NAME}_Subid1 keywordtext=$test25
${sgeo2} Create Dictionary Sordtype=Source Type1=Geography CreateOrSearch=Create Add=Group Name=${TEST NAME}_GeoGroup1 ObjectName=${sgeo_name}
${slearn1} Create Dictionary Sordtype=Source Type1=IPLearning CreateOrSearch=Create Add=Address Name=${TEST NAME}_Learn1 Fqdn=*www.baidu.com Protocols1=HTTP Degree=2Degrees Limits=10000 Numbers=1 Times=10000
${slearn2} Create Dictionary Sordtype=Source Type1=IPLearning CreateOrSearch=Create Add=Address Name=${TEST NAME}_Learn2 Fqdn=*www.baidu.com Protocols1=HTTPSSL Degree=1Degrees Limits=10000 Numbers=1 Times=72
${ssub1} Create Dictionary Sordtype=Source Type1=SUBID CreateOrSearch=Create Add=Address Name=${TEST NAME}_Subid1 Keywordtext=$test25
${sub_name} create list ${TEST NAME}_Subid1
${ssub2} Create Dictionary sordtype=Source type1=SUBID CreateOrSearch=Create Add=Group name=${TEST NAME}_Subid2 object_name=${sub_name}
${ssub2} Create Dictionary Sordtype=Source Type1=SUBID CreateOrSearch=Create Add=Group Name=${TEST NAME}_Subid2 ObjectName=${sub_name}
${sourceAddIpList} Create List ${sip1} ${sip2} ${slearn1} ${slearn2} ${ssub1} ${ssub2} ${sgeo1} ${sgeo2}
${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList}
${ip_name1} create list ${TEST NAME}_IP1 ${TEST NAME}_IPGroup1
${sgeo_name1} create list ${TEST NAME}_Geo1 ${TEST NAME}_GeoGroup1
${slearn_name1} create list ${TEST NAME}_Learn1 ${TEST NAME}_Learn2
${sub_name1} create list ${TEST NAME}_Subid1 ${TEST NAME}_Subid2
${dip1} Create Dictionary sordtype=Destination type1=Ip CreateOrSearch=Search object_name=${ip_name1}
${dsgeo} Create Dictionary sordtype=Destination type1=Geography CreateOrSearch=Search object_name=${sgeo_name1}
${dslearn} Create Dictionary sordtype=Destination type1=IPLearning CreateOrSearch=Search object_name=${slearn_name1}
${dip1} Create Dictionary Sordtype=Destination Type1=Ip CreateOrSearch=Search ObjectName=${ip_name1}
${dsgeo} Create Dictionary Sordtype=Destination Type1=Geography CreateOrSearch=Search ObjectName=${sgeo_name1}
${dslearn} Create Dictionary Sordtype=Destination Type1=IPLearning CreateOrSearch=Search ObjectName=${slearn_name1}
${destinationAddIpList} Create List ${dip1} ${dsgeo} ${dslearn}
${destinationInfo} Create Dictionary destinationAddIpList=${destinationAddIpList}
${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} URLname=${urlname} Request Headername=${RequestHeadername} Response Headername=${ResponseHeadername}
... Request Contentname=${RequestContentname}
UIAddPolicies ${policyInfo} sourceInfo=${sourceInfo} destinationInfo=${destinationInfo} filterInfo=${filterInfo}
UIAddPolicies ${policyInfo} SourceInfo=${sourceInfo} DestinationInfo=${destinationInfo} FilterInfo=${filterInfo}

File diff suppressed because it is too large Load Diff