From c8f068ae3412560a01ddf0fd3951ee807edc83f2 Mon Sep 17 00:00:00 2001 From: "aditya.puthuparambil" Date: Thu, 28 May 2020 18:00:19 +0100 Subject: [PATCH] Stability test documentation changes as PAP version is added as Env Variable Issue-ID: POLICY-2544 Signed-off-by: aditya.puthuparambil Change-Id: Id590a23a5142f5589f3f3ac92a4ef57f08a5688d --- docs/development/devtools/pap-s3p.rst | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/docs/development/devtools/pap-s3p.rst b/docs/development/devtools/pap-s3p.rst index 2002327f..5ae58ff5 100644 --- a/docs/development/devtools/pap-s3p.rst +++ b/docs/development/devtools/pap-s3p.rst @@ -151,15 +151,23 @@ The jmx file is present in the policy/pap git repository. Install simulators in VM1 ------------------------- -For installing simulator, there is a script placed at `install simulator script `_ +Clone PAP to VM1 using the following command : -Copy the script & all related files in virtual machine and run it. +.. code-block:: bash + + root@policytest-policytest-3-p5djn6as2477:~$ git clone http://gerrit.onap.org/r/policy/pap + +For installing simulator, execute the script `setup_components.sh` as shown below: + +.. code-block:: bash + + root@policytest-policytest-3-p5djn6as2477:~$ ./pap/testsuites/stability/src/main/resources/simulatorsetup/setup_components.sh After installation make sure that following 4 docker containers are up and running. .. code-block:: bash - root@policytest-policytest-3-p5djn6as2477:/home/ubuntu/simulator# docker ps + root@policytest-policytest-3-p5djn6as2477:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 887efa8dac12 nexus3.onap.org:10001/onap/policy-api "bash ./policy-api.sh" 6 days ago Up 6 days 0.0.0.0:6969->6969/tcp policy-api 0a931c0a63ac pdp/simulator:latest "bash pdp-sim.sh" 6 days ago Up 6 days pdp-simulator @@ -169,15 +177,24 @@ After installation make sure that following 4 docker containers are up and runni Install PAP in VM2 ------------------ -For installing PAP, there is a script placed at `install pap script `_ +Clone PAP to VM2 using the following command : + +.. code-block:: bash + + root@policytest-policytest-3-p5djn6as2477:~$ git clone http://gerrit.onap.org/r/policy/pap + +For installing PAP, execute the script `setup_pap.sh` as shown below: + +.. code-block:: bash -Copy the script & all related files in virtual machine and run it. + root@policytest-policytest-3-p5djn6as2477:~$ cd pap/testsuites/stability/src/main/resources/papsetup/ + root@policytest-policytest-3-p5djn6as2477:~$ ./setup_pap.sh After installation make sure that following docker container is up and running. .. code-block:: bash - root@policytest-policytest-0-uc3y2h5x6p4j:/home/ubuntu/pap# docker ps + root@policytest-policytest-0-uc3y2h5x6p4j:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 42ac0ed4b713 nexus3.onap.org:10001/onap/policy-pap:2.2.3-SNAPSHOT "bash ./policy-pap.sh" 3 days ago Up 3 days 0.0.0.0:6969->6969/tcp, 0.0.0.0:9090->9090/tcp policy-pap -- 2.16.6