Fix broken links
[policy/parent.git] / docs / development / devtools / 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 ONAP installation,
14 and/or a docker-compose set up similar to the one executed by CSIT tests.
15
16 General Setup
17 *************
18
19 ONAP OOM kubernetes
20 -------------------
21
22 For installation instructions, please refer to the following documentation:
23
24 `OOM Documentation <https://docs.onap.org/projects/onap-oom/en/latest/>`_
25
26 At a minimum policy needs the following components installed:
27
28 - onap base charts
29 - AAF for certificate generation
30 - DMaaP message-router for communication among policy components.
31
32 docker-compose based
33 --------------------
34
35 A smaller testing environment can be put together by replicating the CSIT test environment:
36
37 `Policy CSIT Test infrastructure <https://git.onap.org/policy/docker/tree/csit>`_
38
39 Testing procedures
40 ******************
41
42 The smoke tests should be focused on verifying the proper workings of the xacml
43 PDP and dependent components.   The following scenarios should be considered:
44
45 - PDP-X registration with PAP.
46 - PDP-X restarts and re-registration with PAP.
47 - Healtchecks
48 - Statistics and Prometheus metrics.
49 - Verify decision with monitoring policies.
50 - Verify decision with optimization policy.
51 - Verify decision with min/max policy.
52 - Verify decision with frequency limiter policy.
53 - Verify decision with default guard policy.
54 - Verify decision with naming policy.
55
56 The following testsuites contain everything necessary for the previous verifications:
57
58 - `CSIT Robot framework <https://github.com/onap/policy-docker/blob/master/csit/resources/tests/xacml-pdp-test.robot>`_
59 - `JMeter S3P <https://github.com/onap/policy-xacml-pdp/blob/master/testsuites/stability/src/main/resources/testplans/stability.jmx>`_
60