Upgrade springboot re-enable prometheus http stats
[policy/parent.git] / docs / development / devtools / drools-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 Policy Drools PDP and Applications Smoke Test
11 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12
13 The policy-drools-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 AAI, SO and other components can be simulated by installing the simulator charts:
33
34 `Policy Simulator Helm Chart <https://github.com/onap/policy-docker/tree/master/helm/policy/components/policy-models-simulator>`_
35
36 docker-compose based
37 --------------------
38
39 A smaller testing environment can be put together by replicating the CSIT test environment:
40
41 `Policy CSIT Test infrastructure <https://github.com/onap/policy-docker/tree/master/csit>`_
42
43 Testing procedures
44 ******************
45
46 The smoke tests should be focused on verifying the proper workings of drools
47 and dependent components.   The following scenarios should be considered:
48
49 - PDP-D registration with PAP.
50 - PDP-D restarts and re-registration with PAP.
51 - Proper workings of telemetry tool.
52 - Exploration of correct PDP-D states with the telemetry tool.
53 - Statistics and prometheus metrics.
54 - Verify correct states of API, PAP, and controllers using the PDP-D healthchecks.
55 - Verify distributed locking capability and proper use of the database.
56 - Verify vCPE, vDNS, and vFirewall use cases and recorded metrics.
57
58 The following testsuites contain everything necessary for the previous verifications:
59
60 - `CSIT Robot framework <https://github.com/onap/policy-docker/blob/master/csit/drools-applications/tests/drools-applications-test.robot>`_
61 - `JMeter S3P <https://github.com/onap/policy-drools-applications/blob/master/testsuites/stability/src/main/resources/s3p.jmx>`_
62