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.