From 073cc188efe9abb4c010cf674e34e2cf46ef1c52 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Mon, 31 Jul 2017 08:47:35 +0000 Subject: [POLICY-73] replace openecomp for policy-engine Change-Id: I54072f6bcd388c0e05562614ee89b4ae7ad67004 Signed-off-by: Guo Ruijing Signed-off-by: Pamela Dragosh --- ONAP-XACML/config_testing/test_PolicyEngine.xml | 595 ++++++++++++++++++++++++ 1 file changed, 595 insertions(+) create mode 100644 ONAP-XACML/config_testing/test_PolicyEngine.xml (limited to 'ONAP-XACML/config_testing/test_PolicyEngine.xml') diff --git a/ONAP-XACML/config_testing/test_PolicyEngine.xml b/ONAP-XACML/config_testing/test_PolicyEngine.xml new file mode 100644 index 000000000..b5206a89a --- /dev/null +++ b/ONAP-XACML/config_testing/test_PolicyEngine.xml @@ -0,0 +1,595 @@ + + + + + Test Policies for the ProtoType PolicyEngineAPI + + + + Check if the CPU Utilization or Memory reach the threshold values. + + CPU + + + + 95 + + + Memory + + + + 95 + + + + + + Spinoff if the VM if CPU or memory value reaches the threshold + + CPU + + + + 90 + + + Memory + + + + 90 + + + + + Json Test + + + + + JSON + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_json.json + + + + + + Json + Config test + + + + + JSON + + + + JSONconfig + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_json.json + + + + + + XML test + + + + + XML + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_xml.xml + + + + + + XML + Config test + + + + + XML + + + + XMLConfig + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_xml.xml + + + + + + Properties Test + + + + + Properties + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_prop.properties + + + + + + Properties + Config Test + + + + + Properties + + + + PropConfig + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_prop.properties + + + + + + Other Test + + + + + Other + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_other.txt + + + + + + Other + Config Test + + + + + Other + + + + OtherConfig + + + + ACCESS + + + + Config + + + + + + + + + Configuration + + + http://localhost:5443/config/test_other.txt + + + + + + JSON + Attributes + + + + + JSON + + + + JSONconfig + + + + TestSubject + + + + ACCESS + + + + TestJSON + + + + Config + + + + Test + + + + + + + + + Configuration + + + http://localhost:5443/config/test_json.json + + + + + + XML + Attributes + + + + + XML + + + + XMLConfig + + + + TestSubject + + + + ACCESS + + + + TestJSON + + + + Config + + + + Test + + + + + + + + + Configuration + + + http://localhost:5443/config/test_xml.xml + + + + + + Prop + Attributes + + + + + Properties + + + + PropConfig + + + + TestSubject + + + + ACCESS + + + + TestJSON + + + + Config + + + + Test + + + + + + + + + Configuration + + + http://localhost:5443/config/test_prop.properties + + + + + + Other + Attributes + + + + + Other + + + + Otherconfig + + + + TestSubject + + + + ACCESS + + + + TestJSON + + + + Config + + + + Test + + + + + + + + + Configuration + + + http://localhost:5443/config/test_other.txt + + + + + + + Permit to RESET VM if the values reach the threshold settings. + + + + + Restart + + + + + + + + Restart VM if this condition is met + + true + + + + + + Restart + + + + + + + + + Permit to SpinOff VM if the values reach the threshold settings. + + + + + SpinOff + + + + + + + + SpinOff VM if this condition is met + + true + + + + + + SpinOff + + + PDPAction + + + REST + + + + + + GET + + + http://localhost:8635/RESTjson/PDP/VM/$com.att.labs.onap.obligation.spinoff/$com.att.labs.onap.obligation.server + + + + + + Deny all the other requests. + + + -- cgit 1.2.3-korg