*** Settings *** Force Tags tsg-ui Policies Security Library Selenium2Library Resource ../../../02-Keyword/tsg_ui/objects/NewObjectPages.robot Resource ../../../02-Keyword/tsg_ui/objects/NewObject.robot Resource ../../../02-Keyword/tsg_ui/Menu.robot Resource ../../../03-Variable/PolicyObjectDefault.txt Resource ../../../02-Keyword/tsg_ui/policy/UIPolicy.robot *** Test Cases *** ################################################################################################################################ SecurityAllowHTTP001 [Tags] Allow Http FQDN #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN keywordtext=$poplar.ru ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list ${TEST NAME}${tag}_FQDN ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} PoliciesDelete SecurityAllowHTTP002 [Tags] Allow Http FQDN #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN keywordtext=*environment.com ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list ${TEST NAME}${tag}_FQDN ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} PoliciesDelete SecurityAllowHTTP003 [Tags] Allow Http FQDN #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN1 keywordtext=$mil.qianlong.com #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN2 keywordtext=*.com ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list ${TEST NAME}${tag}_FQDN1 ${TEST NAME}${tag}_FQDN2 ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} PoliciesDelete SecurityAllowHTTP004 [Tags] Allow Http FQDN #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN1 keywordtext=$mil.qianlong.com #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN2 keywordtext=*.com ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list ${TEST NAME}${tag}_FQDN1 ${TEST NAME}${tag}_FQDN2 ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=close PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} SecurityAllowHTTP006 [Tags] Allow Http Category ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list recreation ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} Hosttype=Category ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} #007和008自动化创建不了,需要手工测试 SecurityAllowHTTP009 [Tags] Allow Http FQDN #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN keywordtext=$poplar.ru ${hostname} create list ${TEST NAME}${tag}_FQDN ${filter} create list Host ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} FilterInfo=${filterInfo} PoliciesDelete SecurityAllowHTTP010 [Tags] Allow Http Category ${dip1} Create Dictionary Sordtype=Destination Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=163.171.198.89 Port=1-65535 ${destinationAddIpList} Create List ${dip1} ${destinationInfo} Create Dictionary destinationAddIpList=${destinationAddIpList} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} DestinationInfo=${destinationInfo} SecurityAllowHTTP011 [Tags] Allow Http URL Comment 新建对象url CreatePage URL single ${TEST NAME}${tag}_URL keywordtext=poplar.ru ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${urlname} create list ${TEST NAME}${tag}_URL ${filter} create list URL ${filterInfo} Create Dictionary Filter=${filter} URLname=${urlname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} PoliciesDelete SecurityAllowHTTP012 [Tags] Allow Http Host+URL #新建对象fqdn Comment 新建对象fqdn CreatePage FQDN single ${TEST NAME}${tag}_FQDN keywordtext=$poplar.ru Comment 新建对象url CreatePage URL single ${TEST NAME}${tag}_URL keywordtext=poplar.ru ${sip1} Create Dictionary Sordtype=Source Type1=Ip CreateOrSearch=Create Add=Address Name=${TEST NAME}${tag}_IP1 Ipclienttext1=192.168.50.17 Port=1-65535 ${sourceAddIpList} Create List ${sip1} ${sourceInfo} Create Dictionary sourceAddIpList=${sourceAddIpList} ${hostname} create list ${TEST NAME}${tag}_FQDN ${urlname} create list ${TEST NAME}${tag}_URL ${filter} create list Host URL ${filterInfo} Create Dictionary Filter=${filter} Hostname=${hostname} URLname=${urlname} ${policyInfo} Create Dictionary PolicyType=Security Policy CreateorEdit=Create PolicyName=${TEST NAME}${tag} PolicyAction=Allow ApplicationSearch=HTTP PolicyLogSession=1 PolicyEnabled=1 UIPolicies ${policyInfo} SourceInfo=${sourceInfo} FilterInfo=${filterInfo} PoliciesDelete ################################################################################################################################