CLAMP-Controlloop Control loop interacts with Policy framework to create and deploy policies.
This test makes sure the interaction between policy and controlloop is working works as expected.
Testing Procedure:
- Control loop runtime, DMaap, Policy participant are deployed in k8s cluster along with POLICY.
- Commission a TOSCA template containing the definition of a Control loop from POLICY GUI. The definitions include policy participant and a control loop element that creates and deploys required policies.
- (Sample TOSCA template used for policy creation and deployment click-here)
- Verify the commissioning is successful from GUI to the control loop runtime.
- Instantiate the control loop from GUI.
- Verify the instance properties of Control loop elements are editable.
- Verify the instance created successfully with default state "UNINITIALISED".
- Change the state of Control loop from "UNINITIALISED" to "PASSIVE" and make sure the policy participant has created the defined policy types from TOSCA template by querying the policy types from POLICY API.
- Change the state of Control loop from "PASSIVE" to "RUNNING". Verify the policy participant has deployed the policies defined for the control loop element in POLICY PAP for all the pdp groups.
- Change the state of Control loop from "RUNNING" to "PASSIVE". Verify the policies are undeployed in Policy PAP for all the pdp groups.
- Change the state back to "UNINITIALISED". This should delete the policy types that was created in POLICY API.
Repeat the test with multiple combinations of control loop state changes and make sure the policy participant can create/deploy/undeploy policies and the interaction between CLAMP policy participant and POLICY is working fine.