diff options
Diffstat (limited to 'tests/policy/suite1/Policy-CSIT.robot')
-rw-r--r-- | tests/policy/suite1/Policy-CSIT.robot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/policy/suite1/Policy-CSIT.robot b/tests/policy/suite1/Policy-CSIT.robot index 785619f9..7855b76b 100644 --- a/tests/policy/suite1/Policy-CSIT.robot +++ b/tests/policy/suite1/Policy-CSIT.robot @@ -12,6 +12,7 @@ ${RESOURCE_PATH_CREATE} /pdp/api/createPolicy ${RESOURCE_PATH_CREATE_PUSH} /pdp/api/pushPolicy ${RESOURCE_PATH_CREATE_DELETE} /pdp/api/deletePolicy ${RESOURCE_PATH_GET_CONFIG} /pdp/api/getConfig +${RESOURCE_PATH_LISTPOLICY} /pdp/api/listPolicy ${CREATE_CONFIG_VFW_TEMPLATE} ${CURDIR}/configpolicy_vFW_R1.template ${CREATE_CONFIG_VDNS_TEMPLATE} ${CURDIR}/configpolicy_vDNS_R1.template ${CREATE_CONFIG_VCPE_TEMPLATE} ${CURDIR}/configpolicy_vCPE_R1.template @@ -24,6 +25,7 @@ ${CREATE_OPS_VDNS_TEMPLATE} ${CURDIR}/opspolicy_VDNS_R1.template ${DEL_POLICY_TEMPLATE} ${CURDIR}/deletepolicy.template ${GETCONFIG_TEMPLATE} ${CURDIR}/getconfigpolicy.template ${GETOOF_TEMPLATE} ${CURDIR}/getoofpolicy.template +${LISTPOLICY_TEMPLATE} ${CURDIR}/listpolicy.template ${CONFIG_POLICY_VFW_NAME} vFirewall ${CONFIG_POLICY_VFW_TYPE} MicroService ${CONFIG_POLICY_VDNS_NAME} vLoadBalancer @@ -115,6 +117,9 @@ HPA Get OOF Policy Sleep 5s Get OOF HPA Policy +ListPolicy + ListPolicy test com.Config_Sample.1.xml + *** Keywords *** VFW Policy Tests @@ -358,3 +363,12 @@ Upload DRL file # ${files}= Create Dictionary file ${file_data} ${put_resp} = Run Policy Post form Request ${RESOURCE_PATH_UPLOAD} ${files} Should Be Equal As Strings ${put_resp.status_code} 200 + +ListPolicy test + [Documentation] Listing Config Policies + [Arguments] ${policy_name} + ${dict}= Create Dictionary policy_name=${policy_name} + ${output} = Fill JSON Template File ${LISTPOLICY_TEMPLATE} ${dict} + ${put_resp} = policy_interface.Run Policy Post Request ${RESOURCE_PATH_LISTPOLICY} ${output} + Should Be Equal As Strings ${put_resp.status_code} 200 + |