summaryrefslogtreecommitdiffstats
path: root/s3p/README.stability.md
diff options
context:
space:
mode:
authorBilal A <bilal@research.att.com>2019-02-27 13:52:05 -0500
committerBilal A <bilal@research.att.com>2019-02-27 14:06:23 -0500
commitf762f7400752c848cba93d666f0b4549b667a134 (patch)
tree63acb6fe742ab93f439bae315c088f120ff99fb9 /s3p/README.stability.md
parent7101ee5fe217b6f3d864e2bda979fc0c14f7db92 (diff)
Changes directory structure of S3P Tests
Changes Include: a) Moving performance and stability tests into two separate directories. Change-Id: Ib98713b2c37658de16c5eb6ee8918b867bdf5b8a Issue-ID: POLICY-1462 Signed-off-by: Bilal A <bilal@research.att.com>
Diffstat (limited to 's3p/README.stability.md')
-rw-r--r--s3p/README.stability.md52
1 files changed, 0 insertions, 52 deletions
diff --git a/s3p/README.stability.md b/s3p/README.stability.md
deleted file mode 100644
index d96a8c41..00000000
--- a/s3p/README.stability.md
+++ /dev/null
@@ -1,52 +0,0 @@
-tability Test for Policy Distribution
-## Steps to Run stability test
-1. Download Apache JMeter
-Download JMeter 5.0 from https://jmeter.apache.org/download_jmeter.cgi, and extracted it locally.
-
-2. Launch the policy distribution service
-Launch the policy distribution service with the configuration from s3pConfig.json, you need to make sure when the service is being launched, the directory configured in s3pConfig.json by receptionHandlerConfigurationParameters.fileConfiguration.parameters.watchPath is a valid local directory(Default directory is /tmp/policy_distribution/csar/).
-The policy distribution service will use the FileSystemReceptionHandler plugin to monitor the local directory specified by the 'watchPath' parameter for newly added csar file, parse them to generate policies and forward it to PDP.
-```
-java -cp "<comma separated directories containing jar files>" org.onap.policy.distribution.main.startstop.Main -c s3pConfig.json
-```
- Or if you want to launch it from docker, please do the followings:
-```
-mkdir -p /tmp/policy_distribution/csar/
-docker run -d -e "CONFIG_FILE=/opt/app/policy/distribution/etc/s3pConfig.json" \
- -v /tmp/policy_distribution/csar/:/tmp/policy_distribution/csar/ \
- -p 6969:6969 \
- --name policy-distribution policy-distribution
-```
-Here we use -e option to "docker run" to pass the config file which the policy distribution service will be launched upon and use -v option to map the local host /tmp/policy_distribution/csar/ directory as the directory of /tmp/policy_distribution/csar/ within the policy-distribution docker.
-
-**NOTED:**
-Please make sure when you launch the policy distribution service, the following requirements are met:
-a. The policy PDP service is active, and can be reached using the parameters configured by policyForwarderConfigurationParameters.xacmlPdpConfiguration.parameters in the s3pConfig.json file.
-
-b. Make sure you have installed the AAF root CA either in local host or in the docker image(running as root):
-```
-curl -s https://git.onap.org/dmaap/buscontroller/plain/misc/cert-client-init.sh | bash --
-```
-
-3. Get the Jmeter configuration ans scripts
-Git clone the policy distribution code, and goto the s3p directory:
-```
-git clone https://git.onap.org/policy/distribution policy-distribution
-```
-
-4. Run the JMeter stability test
-```
-rm -f stability.log; <jmeter_dir>/bin/jmeter.sh -t stability.jmx -n -Jhost=<pdp service hostname> -Jduration=100 -l stability.log
-```
-Search for 'get policy failed' in the stability.log file to see if there is any errors found during the stability test.
-
-## JMeter properties
-We can configure the following properties when running the JMeter stability test for policy distribution
-| Property Name | Default Value | Description |
-|---------------|-------------|---------------|
-| host | pdp | PDP service host name or ip |
-| csardir | /tmp/policy_distribution/csar | Directory where to store the generated csar files |
-| duration | 30 | Number of seconds for how long to run the tests |
-| retry | 10 | Number of retry to retrieve the policy of each csar |
-| wait | 1000 | Milliseconds to wait between each retry |
-