X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-PDP%2Fconfig_testing%2Ftest_PolicyEngine.xml;fp=ONAP-PDP%2Fconfig_testing%2Ftest_PolicyEngine.xml;h=13c126364b1e0d9cda82cbddd2b9bc535e45af07;hb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;hp=0000000000000000000000000000000000000000;hpb=4ca818fdfb9b807562166800a086b413593d6894;p=policy%2Fengine.git diff --git a/ONAP-PDP/config_testing/test_PolicyEngine.xml b/ONAP-PDP/config_testing/test_PolicyEngine.xml new file mode 100644 index 000000000..13c126364 --- /dev/null +++ b/ONAP-PDP/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. + + +