summaryrefslogtreecommitdiffstats
path: root/csit/README.md
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-12-19 09:45:08 +0000
committeradheli.tavares <adheli.tavares@est.tech>2025-01-10 11:47:16 +0000
commit7a6c3faeb0134776d46352f51f02cf6b2aef72b7 (patch)
treee9fcbc4e1ad8ca7c0ad32b780402f59803801a24 /csit/README.md
parentff37c033e7c25e1dd4ab6a1cc5b3913d27a37b0b (diff)
General improvements on CSIT scripts
- some issues with functions order - clear waiting times for docker containers to come up - --local flag added to make it easier to run tests with local images Issue-ID: POLICY-5239 Change-Id: I3bcbfd88f45110436b2b0fda16c61936ef919f95 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/README.md')
-rw-r--r--csit/README.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/csit/README.md b/csit/README.md
new file mode 100644
index 00000000..f0c44823
--- /dev/null
+++ b/csit/README.md
@@ -0,0 +1,43 @@
+# Running Policy Framework CSIT
+
+## Using Docker Compose environment
+
+Policy Framework Continuous System and Integration Tests are executed daily on jenkins jobs
+targeting master branch. The runs are available at https://jenkins.onap.org/view/policy/
+
+The CSIT suites are also used by developers as another guarantee that new code or changes
+delivered on main code do not affect the expected behaviour for the already delivered
+functionalities or new tests are added when a new functionality is added.
+
+To execute the tests on a local environment, the steps are the following:
+
+> all the instructions assume docker repository was cloned to /git/policy/docker
+
+- after cloning the project, go to ../docker/csit
+- to run a test, execute the run-project-csit.sh script
+
+`./run-project-csit.sh <policy-component>`
+
+The options for <policy-component> are:
+- api
+- pap
+- apex-pdp
+- clamp (for runtime-acm and participants)
+- drools-pdp
+- drools-applications
+- xacml-pdp
+- distribution
+- opa-pdp
+
+The command above with download the latest SNAPSHOT version available for the policy-component
+being tested. Version is collected from [PF Release Data](https://github.com/onap/policy-parent/blob/master/integration/src/main/resources/release/pf_release_data.csv)
+
+To start the containers with images generated in local environment, the script can be run with the
+flag `--local`
+
+`./run-project-csit.sh api --local`
+
+The command above with start the docker containers for `policy-api` and `policy-db-migrator` using
+the latest image created at the local environment. When using the flag `--local` it will look for
+all the policy components needed for the test suites to be executed. The support services like
+PostgreSQL, Kafka, Prometheus, Grafana will always be downloaded if not present.