junit5 dependencies
[policy/parent.git] / docs / development / devtools / smoke / xacml-smoke.rst
1 .. This work is licensed under a
2 .. Creative Commons Attribution 4.0 International License.
3 .. http://creativecommons.org/licenses/by/4.0
4
5 .. _policy-api-smoke-testing-label:
6
7 .. toctree::
8    :maxdepth: 2
9
10 XACML PDP Smoke Test
11 ~~~~~~~~~~~~~~~~~~~~
12
13 The policy-xacml-pdp smoke testing can be executed against a kubernetes based policy framework installation,
14 and/or a docker-compose set up similar to the one executed by CSIT tests.
15
16 General Setup
17 *************
18
19 PF kubernetes Install
20 ---------------------
21
22 For installation instructions, please refer to the following documentation:
23
24 `Policy Framework K8S Install <https://docs.onap.org/projects/onap-policy-parent/en/latest/development/devtools/testing/csit.html>`_
25
26 The script referred to in the above link should handle the install of the of microk8s, docker and other required components for the install of the policy framework and clamp components. The scripts are used by policy as a means to run the CSIT tests in Kubernetes.
27
28 docker-compose based
29 --------------------
30
31 A smaller testing environment can be put together by replicating the docker-based CSIT test environment. Details are on the same page as K8s setup:
32
33 `Policy CSIT Test Install Docker <https://docs.onap.org/projects/onap-policy-parent/en/latest/development/devtools/testing/csit.html>`_
34
35 Testing procedures
36 ******************
37
38 The smoke tests should be focused on verifying the proper workings of the xacml
39 PDP and dependent components. The following scenarios should be considered:
40
41 - PDP-X registration with PAP.
42 - PDP-X restarts and re-registration with PAP.
43 - Healtchecks
44 - Statistics and Prometheus metrics.
45 - Verify decision with monitoring policies.
46 - Verify decision with optimization policy.
47 - Verify decision with min/max policy.
48 - Verify decision with frequency limiter policy.
49 - Verify decision with default guard policy.
50 - Verify decision with naming policy.
51
52 The following testsuites contain everything necessary for the previous verifications:
53
54 - `CSIT Robot framework <https://github.com/onap/policy-docker/blob/master/csit/resources/tests/xacml-pdp-test.robot>`_
55 - `JMeter S3P <https://github.com/onap/policy-xacml-pdp/blob/master/testsuites/stability/src/main/resources/testplans/stability.jmx>`_
56