diff options
author | pdragosh <pdragosh@research.att.com> | 2019-04-16 13:19:45 -0400 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2019-04-18 22:52:14 -0500 |
commit | 3f9a0960ae775678d1e1d4b598b593b59146cb0f (patch) | |
tree | 5fb1c4b7cd581b8ca136b509dfff059b2bebc069 /tests/policy | |
parent | 898e2cb62a58a6c8fe851bb6c41e9ae61ac9ace0 (diff) |
Finish drools CSIT infra
Basic health check for now. Need to have ci-management
jobs enabled for this to work on every merge.
Cleaning out unused scripts and mock server. Renaming
policy engine script so its obvious that is what it is for.
Issue-ID: POLICY-1651
Change-Id: I469823795d4a9f5531d150610ba2ed0b75585677
Signed-off-by: pdragosh <pdragosh@research.att.com>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Signed-off-by: pdragosh <pdragosh@research.att.com>
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'tests/policy')
-rw-r--r-- | tests/policy/drools-applications/drools-applications-test.robot | 17 | ||||
-rw-r--r-- | tests/policy/engine/Policy-CSIT.robot (renamed from tests/policy/suite1/Policy-CSIT.robot) | 0 | ||||
-rw-r--r-- | tests/policy/engine/__init__.robot (renamed from tests/policy/suite1/__init__.robot) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vCPE.template (renamed from tests/policy/suite1/configpolicy_vCPE.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vCPE_R1.template (renamed from tests/policy/suite1/configpolicy_vCPE_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vDNS.template (renamed from tests/policy/suite1/configpolicy_vDNS.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vDNS_R1.template (renamed from tests/policy/suite1/configpolicy_vDNS_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vFW.template (renamed from tests/policy/suite1/configpolicy_vFW.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/configpolicy_vFW_R1.template (renamed from tests/policy/suite1/configpolicy_vFW_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/createpolicy.template (renamed from tests/policy/suite1/createpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/deletepolicy.template (renamed from tests/policy/suite1/deletepolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/getconfigpolicy.template (renamed from tests/policy/suite1/getconfigpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/getoofpolicy.template (renamed from tests/policy/suite1/getoofpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/global_properties.robot (renamed from tests/policy/suite1/global_properties.robot) | 0 | ||||
-rw-r--r-- | tests/policy/engine/json_templater.robot (renamed from tests/policy/suite1/json_templater.robot) | 0 | ||||
-rw-r--r-- | tests/policy/engine/listpolicy.template (renamed from tests/policy/suite1/listpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/multiple_pushpolicy.template (renamed from tests/policy/suite1/multiple_pushpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/multiple_unpushpolicy.template (renamed from tests/policy/suite1/multiple_unpushpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/oofpolicy_HPA_R1.template (renamed from tests/policy/suite1/oofpolicy_HPA_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_VDNS.template (renamed from tests/policy/suite1/opspolicy_VDNS.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_VDNS_R1.template (renamed from tests/policy/suite1/opspolicy_VDNS_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_VFW.template (renamed from tests/policy/suite1/opspolicy_VFW.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_VFW_R1.template (renamed from tests/policy/suite1/opspolicy_VFW_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_vCPE.template (renamed from tests/policy/suite1/opspolicy_vCPE.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_vCPE_R1.template (renamed from tests/policy/suite1/opspolicy_vCPE_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_vOLTE.template (renamed from tests/policy/suite1/opspolicy_vOLTE.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/opspolicy_vOLTE_R1.template (renamed from tests/policy/suite1/opspolicy_vOLTE_R1.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/policy_interface.robot (renamed from tests/policy/suite1/policy_interface.robot) | 0 | ||||
-rw-r--r-- | tests/policy/engine/pushpolicy.template (renamed from tests/policy/suite1/pushpolicy.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/sdncnamingpolicy_vFW.template (renamed from tests/policy/suite1/sdncnamingpolicy_vFW.template) | 0 | ||||
-rw-r--r-- | tests/policy/engine/sdncnamingpolicy_vPG.template (renamed from tests/policy/suite1/sdncnamingpolicy_vPG.template) | 0 |
31 files changed, 17 insertions, 0 deletions
diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot new file mode 100644 index 00000000..cf4d3cea --- /dev/null +++ b/tests/policy/drools-applications/drools-applications-test.robot @@ -0,0 +1,17 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Test Cases *** +Alive + [Documentation] Runs Policy PDP Alive Check + ${auth}= Create List demo@people.osaaf.org demo123456! + Log Creating session https://${POLICY_DROOLS_IP}:9696 + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /policy/pdp/engine headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['alive']} True diff --git a/tests/policy/suite1/Policy-CSIT.robot b/tests/policy/engine/Policy-CSIT.robot index 514cc840..514cc840 100644 --- a/tests/policy/suite1/Policy-CSIT.robot +++ b/tests/policy/engine/Policy-CSIT.robot diff --git a/tests/policy/suite1/__init__.robot b/tests/policy/engine/__init__.robot index c7970e6a..c7970e6a 100644 --- a/tests/policy/suite1/__init__.robot +++ b/tests/policy/engine/__init__.robot diff --git a/tests/policy/suite1/configpolicy_vCPE.template b/tests/policy/engine/configpolicy_vCPE.template index e3e3a2d0..e3e3a2d0 100644 --- a/tests/policy/suite1/configpolicy_vCPE.template +++ b/tests/policy/engine/configpolicy_vCPE.template diff --git a/tests/policy/suite1/configpolicy_vCPE_R1.template b/tests/policy/engine/configpolicy_vCPE_R1.template index 77653c3f..77653c3f 100644 --- a/tests/policy/suite1/configpolicy_vCPE_R1.template +++ b/tests/policy/engine/configpolicy_vCPE_R1.template diff --git a/tests/policy/suite1/configpolicy_vDNS.template b/tests/policy/engine/configpolicy_vDNS.template index ab1d2e0d..ab1d2e0d 100644 --- a/tests/policy/suite1/configpolicy_vDNS.template +++ b/tests/policy/engine/configpolicy_vDNS.template diff --git a/tests/policy/suite1/configpolicy_vDNS_R1.template b/tests/policy/engine/configpolicy_vDNS_R1.template index 185a7c72..185a7c72 100644 --- a/tests/policy/suite1/configpolicy_vDNS_R1.template +++ b/tests/policy/engine/configpolicy_vDNS_R1.template diff --git a/tests/policy/suite1/configpolicy_vFW.template b/tests/policy/engine/configpolicy_vFW.template index 39e99e7b..39e99e7b 100644 --- a/tests/policy/suite1/configpolicy_vFW.template +++ b/tests/policy/engine/configpolicy_vFW.template diff --git a/tests/policy/suite1/configpolicy_vFW_R1.template b/tests/policy/engine/configpolicy_vFW_R1.template index 067ed07f..067ed07f 100644 --- a/tests/policy/suite1/configpolicy_vFW_R1.template +++ b/tests/policy/engine/configpolicy_vFW_R1.template diff --git a/tests/policy/suite1/createpolicy.template b/tests/policy/engine/createpolicy.template index 7c693e84..7c693e84 100644 --- a/tests/policy/suite1/createpolicy.template +++ b/tests/policy/engine/createpolicy.template diff --git a/tests/policy/suite1/deletepolicy.template b/tests/policy/engine/deletepolicy.template index 55510102..55510102 100644 --- a/tests/policy/suite1/deletepolicy.template +++ b/tests/policy/engine/deletepolicy.template diff --git a/tests/policy/suite1/getconfigpolicy.template b/tests/policy/engine/getconfigpolicy.template index 611e65d0..611e65d0 100644 --- a/tests/policy/suite1/getconfigpolicy.template +++ b/tests/policy/engine/getconfigpolicy.template diff --git a/tests/policy/suite1/getoofpolicy.template b/tests/policy/engine/getoofpolicy.template index 37fe0471..37fe0471 100644 --- a/tests/policy/suite1/getoofpolicy.template +++ b/tests/policy/engine/getoofpolicy.template diff --git a/tests/policy/suite1/global_properties.robot b/tests/policy/engine/global_properties.robot index e0c816ea..e0c816ea 100644 --- a/tests/policy/suite1/global_properties.robot +++ b/tests/policy/engine/global_properties.robot diff --git a/tests/policy/suite1/json_templater.robot b/tests/policy/engine/json_templater.robot index a1cc7e35..a1cc7e35 100644 --- a/tests/policy/suite1/json_templater.robot +++ b/tests/policy/engine/json_templater.robot diff --git a/tests/policy/suite1/listpolicy.template b/tests/policy/engine/listpolicy.template index aef17a23..aef17a23 100644 --- a/tests/policy/suite1/listpolicy.template +++ b/tests/policy/engine/listpolicy.template diff --git a/tests/policy/suite1/multiple_pushpolicy.template b/tests/policy/engine/multiple_pushpolicy.template index 5f20b647..5f20b647 100644 --- a/tests/policy/suite1/multiple_pushpolicy.template +++ b/tests/policy/engine/multiple_pushpolicy.template diff --git a/tests/policy/suite1/multiple_unpushpolicy.template b/tests/policy/engine/multiple_unpushpolicy.template index afee7aeb..afee7aeb 100644 --- a/tests/policy/suite1/multiple_unpushpolicy.template +++ b/tests/policy/engine/multiple_unpushpolicy.template diff --git a/tests/policy/suite1/oofpolicy_HPA_R1.template b/tests/policy/engine/oofpolicy_HPA_R1.template index 3a170b20..3a170b20 100644 --- a/tests/policy/suite1/oofpolicy_HPA_R1.template +++ b/tests/policy/engine/oofpolicy_HPA_R1.template diff --git a/tests/policy/suite1/opspolicy_VDNS.template b/tests/policy/engine/opspolicy_VDNS.template index 801773d5..801773d5 100644 --- a/tests/policy/suite1/opspolicy_VDNS.template +++ b/tests/policy/engine/opspolicy_VDNS.template diff --git a/tests/policy/suite1/opspolicy_VDNS_R1.template b/tests/policy/engine/opspolicy_VDNS_R1.template index 92627cc2..92627cc2 100644 --- a/tests/policy/suite1/opspolicy_VDNS_R1.template +++ b/tests/policy/engine/opspolicy_VDNS_R1.template diff --git a/tests/policy/suite1/opspolicy_VFW.template b/tests/policy/engine/opspolicy_VFW.template index 224f5cf4..224f5cf4 100644 --- a/tests/policy/suite1/opspolicy_VFW.template +++ b/tests/policy/engine/opspolicy_VFW.template diff --git a/tests/policy/suite1/opspolicy_VFW_R1.template b/tests/policy/engine/opspolicy_VFW_R1.template index a93063f7..a93063f7 100644 --- a/tests/policy/suite1/opspolicy_VFW_R1.template +++ b/tests/policy/engine/opspolicy_VFW_R1.template diff --git a/tests/policy/suite1/opspolicy_vCPE.template b/tests/policy/engine/opspolicy_vCPE.template index c17a1bc6..c17a1bc6 100644 --- a/tests/policy/suite1/opspolicy_vCPE.template +++ b/tests/policy/engine/opspolicy_vCPE.template diff --git a/tests/policy/suite1/opspolicy_vCPE_R1.template b/tests/policy/engine/opspolicy_vCPE_R1.template index 36695daa..36695daa 100644 --- a/tests/policy/suite1/opspolicy_vCPE_R1.template +++ b/tests/policy/engine/opspolicy_vCPE_R1.template diff --git a/tests/policy/suite1/opspolicy_vOLTE.template b/tests/policy/engine/opspolicy_vOLTE.template index e43a3e6f..e43a3e6f 100644 --- a/tests/policy/suite1/opspolicy_vOLTE.template +++ b/tests/policy/engine/opspolicy_vOLTE.template diff --git a/tests/policy/suite1/opspolicy_vOLTE_R1.template b/tests/policy/engine/opspolicy_vOLTE_R1.template index ff5fc42c..ff5fc42c 100644 --- a/tests/policy/suite1/opspolicy_vOLTE_R1.template +++ b/tests/policy/engine/opspolicy_vOLTE_R1.template diff --git a/tests/policy/suite1/policy_interface.robot b/tests/policy/engine/policy_interface.robot index 745f7817..745f7817 100644 --- a/tests/policy/suite1/policy_interface.robot +++ b/tests/policy/engine/policy_interface.robot diff --git a/tests/policy/suite1/pushpolicy.template b/tests/policy/engine/pushpolicy.template index 7e236e3d..7e236e3d 100644 --- a/tests/policy/suite1/pushpolicy.template +++ b/tests/policy/engine/pushpolicy.template diff --git a/tests/policy/suite1/sdncnamingpolicy_vFW.template b/tests/policy/engine/sdncnamingpolicy_vFW.template index d9c773d1..d9c773d1 100644 --- a/tests/policy/suite1/sdncnamingpolicy_vFW.template +++ b/tests/policy/engine/sdncnamingpolicy_vFW.template diff --git a/tests/policy/suite1/sdncnamingpolicy_vPG.template b/tests/policy/engine/sdncnamingpolicy_vPG.template index 9bae20a1..9bae20a1 100644 --- a/tests/policy/suite1/sdncnamingpolicy_vPG.template +++ b/tests/policy/engine/sdncnamingpolicy_vPG.template |