diff --git a/01-TestCase/tsg_adc/selfserver/DenyAllTests.robot b/01-TestCase/tsg_adc/selfserver/DenyAllTests.robot index 7d654a0..176850d 100644 --- a/01-TestCase/tsg_adc/selfserver/DenyAllTests.robot +++ b/01-TestCase/tsg_adc/selfserver/DenyAllTests.robot @@ -37,13 +37,15 @@ SecurityPolicy-Deny-AllProtol-00001 ... policyName=SecurityPolicy-Deny-AllProtol-00001 ... policyType=tsg_security ... policyDesc=autotest - ... userTags= ... action=deny - ... effectiveRange=Nursurtan|Transtelecom&Astel,|Astel&Transtelecom + ... effectiveRange=${effectiveRange} ... userRegion=method:rst ... referenceObject=${objectId}|TSG_SECURITY_DESTINATION_ADDR ... isValid=${1} ... appObjectIdArray=2,3,4,5,6 + ... userTags=${userTags} + ... doLog=${2} + ... scheduleId=${referenceObject} ${rescode} ${policyId} AddPolicy2 ${1} ${policyDict} ${policyId} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]} diff --git a/03-Variable/PolciyObjectDefault.txt b/03-Variable/PolciyObjectDefault.txt new file mode 100644 index 0000000..2b1af9b --- /dev/null +++ b/03-Variable/PolciyObjectDefault.txt @@ -0,0 +1,22 @@ +*** Variables *** +#策略 +policyName autotest_policy +policyType tsg_security +policyDesc autotest +action deny +effectiveRange Nursurtan|Transtelecom&Astel,|Astel&Transtelecom +userRegion method:rst +referenceObject 1|TSG_SECURITY_DESTINATION_ADDR +isValid ${1} +appObjectIdArray 2,3,4,5,6 +userTags 3 +doLog 2 +scheduleId 7 +#对象 +objectSubType ${objectSubType} +isValid ${isValid} +isInitialize ${isInitialize} +isExclusion ${isExclusion} +objectName ${objectName} +objectDesc ${objectDesc} +subObjectIds ${subObjectIds}