21.05版本将GTP对象Imsi,phoneNumber,Apn默认添加到策略中
This commit is contained in:
@@ -249,19 +249,34 @@ ManageObjectV2
|
||||
Log To Console Call ManageObjectV2
|
||||
#默认客户端条件类型:clientip or clientsubid
|
||||
${return} ${defaultClient} Run Keyword And Ignore Error Get From Dictionary ${policy} defaultClient
|
||||
|
||||
# ${return1} ${defaultClient} Run Keyword And Ignore Error Get From Dictionary ${policy} defaultClient1
|
||||
# ${return2} ${defaultClient} Run Keyword And Ignore Error Get From Dictionary ${policy} defaultClient2
|
||||
# ${return3} ${defaultClient} Run Keyword And Ignore Error Get From Dictionary ${policy} defaultClient3
|
||||
# ${return4} ${defaultClient} Run Keyword And Ignore Error Get From Dictionary ${policy} defaultClient4
|
||||
|
||||
${defaultClient} Run Keyword If "${return}"=="FAIL" or "${defaultClient}"=="${EMPTY}" Set Variable ${Default_Client_Type}
|
||||
... ELSE Set Variable ${defaultClient}
|
||||
# ... ELSE IF "${return1}"=="FAIL" or "${defaultClient1}"=="${EMPTY}" Set Variable ${Default_Client_subidType}
|
||||
# ... ELSE IF "${return2}"=="FAIL" or "${defaultClient2}"=="${EMPTY}" Set Variable ${Default_Client_imsiType}
|
||||
# ... ELSE IF "${return3}"=="FAIL" or "${defaultClient3}"=="${EMPTY}" Set Variable ${Default_Client_phonenumberType}
|
||||
# ... ELSE IF "${return4}"=="FAIL" or "${defaultClient4}"=="${EMPTY}" Set Variable ${Default_Client_apnType}
|
||||
... ELSE Set Variable ${defaultClient}
|
||||
${sourceList} Create List
|
||||
${destinationList} Create List
|
||||
${filterList} Create List
|
||||
Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient}'=='clientip' ManageClientIPObjectV2 ${sourceList}
|
||||
Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient}'=='clientsubid' ManageClientSubIDObjectV2 ${sourceList}
|
||||
Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient}'!='${EMPTY}' and '${defaultClient}'=='clientip' ManageClientIPObjectV2 ${sourceList}
|
||||
|
||||
# Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient1}'!='${EMPTY}' and '${defaultClient1}'=='clientsubid' ManageClientSubIDObjectV2 ${sourceList}
|
||||
# Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient2}'!='${EMPTY}' and '${defaultClient2}'=='clientImsi' ManageClientImsiObjectV2 ${sourceList}
|
||||
# Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient3}'!='${EMPTY}' and '${defaultClient3}'=='clientPhoneNumber' ManageClientPhoneNumberObjectV2 ${sourceList}
|
||||
# Run Keyword If '${addTestClentIPFlag}'=='1' and '${defaultClient4}'!='${EMPTY}' and '${defaultClient4}'=='clientApn' ManageClientApnObjectV2 ${sourceList}
|
||||
|
||||
AnalysisObjectV2 ${policy} source ${sourceList}
|
||||
AnalysisObjectV2 ${policy} destination ${destinationList}
|
||||
AnalysisObjectV2 ${policy} filterList ${filterList}
|
||||
Set To Dictionary ${returnDict} source=${sourceList} destination=${destinationList} filterList=${filterList}
|
||||
Log ${policy}
|
||||
|
||||
|
||||
ManageClientIPObjectV2
|
||||
[Arguments] ${emptyList}
|
||||
# 增加引用测试终端IP策略对象
|
||||
@@ -280,6 +295,30 @@ ManageClientSubIDObjectV2
|
||||
${obj1} Create Dictionary objectId=${testClentSubID} protocolField=${protocolField}
|
||||
Append To List ${emptyList} ${obj1}
|
||||
|
||||
ManageClientImsiObjectV2
|
||||
[Arguments] ${emptyList}
|
||||
# 增加引用测试终端Imsi策略对象
|
||||
${protocolField} Set Variable
|
||||
insert_policyId_to_file1 addpolicySubId ${testClentSubID}
|
||||
${obj1} Create Dictionary objectId=${testClentSubID} protocolField=TSG_FILED_GTP_IMSI
|
||||
Append To List ${emptyList} ${obj1}
|
||||
|
||||
ManageClientPhoneNumberObjectV2
|
||||
[Arguments] ${emptyList}
|
||||
# 增加引用测试终端phonenumber策略对象
|
||||
${protocolField} Set Variable
|
||||
log ${testClentSubID}
|
||||
${obj1} Create Dictionary objectId=${testClentSubID} protocolField=TSG_FILED_GTP_PHONE_NUMBER
|
||||
Append To List ${emptyList} ${obj1}
|
||||
|
||||
ManageClientApnObjectV2
|
||||
[Arguments] ${emptyList}
|
||||
# 增加引用测试终端apn策略对象
|
||||
${protocolField} Set Variable
|
||||
insert_policyId_to_file1 addpolicySubId ${testClentSubID}
|
||||
${obj1} Create Dictionary objectId=${testClentSubID} protocolField=TSG_FILED_GTP_APN
|
||||
Append To List ${emptyList} ${obj1}
|
||||
|
||||
AnalysisObjectV2
|
||||
[Arguments] ${policy} ${objectType} ${objList}
|
||||
Log To Console Call AnalysisObjectV2
|
||||
|
||||
Reference in New Issue
Block a user