aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-08-18Upgrade/downgrade on existent tables and indexes.adheli.tavares27-74/+340
Issue-ID: POLICY-3535 Change-Id: I755bb0f279f4255eb9c452b9f569a88de69e14f2 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-08-18Merge "Add db-migrator to CSIT tests"Jim Hahn3-2/+65
2021-08-17Remove EPL-1.0 licenseJim Hahn1-16/+18
ONAP does not allow code containing an EPL-1.0 license. To address this, the offending file was re-cloned, this time from ci-management, which does not contain the EPL-1.0 license. Issue-ID: POLICY-3431 Change-Id: Idd973e71beb57d55b7086f52abefd3bc5c5de65d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-12Add db-migrator to CSIT testsktimoney3-2/+65
Issue-ID: POLICY-3491 Change-Id: I987986da7325a040b80b031ae4e7fbf9776c4c54 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-08-10use url resource for docker-tag -- dockerTaka Cho4-58/+16
use groovy url resource from docker repo to identify the tag for docker With this change, the "SNAPSHOT-latest" docker tag will change from "2.3.0-SNAPSHOT-latest" to "2.3-SNAPSHOT-latest" for jdk/jre alpine base image as well as db_migrator docker. Also fix a bug in println groovy script. Issue-ID: POLICY-3378 Change-Id: I72bd15e2535f688629ee5f1a823409d8fe83cdb1 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-09Merge "Add db-migrator to CSIT"Ajith Sreekumar3-0/+0
2021-08-09Add db-migrator to CSITktimoney3-0/+0
Update file permissions for db-migrator scripts Issue-ID: POLICY-3491 Change-Id: I6895d27cb45dcdb9faa94ef5dc5e97b610ba3509 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-08-06move docker-build groovy script to docker repoTaka Cho1-0/+34
For all docker builds, policy is using groovy-maven-plugin to run a groovy script to determine the tag for docker. The plan is: 1, move docker-tag groovy script to docker repo. 2, change source for groovy-maven-plugin to a URL below, that will point to the source code from step #1. <configuration> <source>https://raw.githubusercontent.com/onap /policy-docker/master/utils/groovy /docker-tag.groovy</source> </configuration> Issue-ID: POLICY-3378 Change-Id: Iff1f09e5ae47205240305b09602c49d403fad98f Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-03Refactor pap csit test casesRam Krishna Verma3-144/+112
Refactored pap csit test cases to * remove code duplication * create methods for rest call * improve assertions * make it easy to add new test cases Issue-ID: POLICY-3525 Change-Id: I60a5a9128ca6e97044d5de13fb14610d721c78d2 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-30Update parameters for distribution CSITJim Hahn1-5/+8
Policy/distribution has been modified to use RestClientParams, thus the corresponding json was modified to match. Issue-ID: POLICY-3456 Change-Id: I64b5f4caf2f927b62b8a02f3352d083f06483937 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-29Add policy audit to pap csitRam Krishna Verma1-0/+32
Adding policy audit api's to pap csit. However, I see that pap csit file can be refactored and lot of duplications can be removed. Will do it as part of next review. Issue-ID: POLICY-3340 Change-Id: I4334ad957ae70c4bcc9f3aa18d882042ce96d57f Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-29Merge "Update db-migrator to include ability to deal with partial installs"Jim Hahn66-419/+506
2021-07-28Move policy-db-migrator to separate containerktimoney2-0/+156
Issue-ID: POLICY-3458 Change-Id: I4ae930d7f903efc4cf10dfca88dfed843ea29edb Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-07-27Update db-migrator to include ability to deal with partial installsktimoney66-419/+506
Allow user to upgrade or downgrade form a release that did not complete successfully Issue-ID: POLICY-3490 Change-Id: Ie14a744246f26a9036066b9f4064bca0c23290be Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-07-21Merge "Use docker registry properties in docker images"Jim Hahn2-6/+2
2021-07-21Merge "Update db-migrator to include rollback functionality"Ajith Sreekumar1-23/+86
2021-07-20Update db-migrator to include rollback functionalityktimoney1-23/+86
Issue-ID: POLICY-3490 Change-Id: Ibd1898819a5cb70f25bf69d71f2975dd2845389e Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-07-19Use docker registry properties in docker imagesJim Hahn2-6/+2
Issue-ID: POLICY-3374 Change-Id: Icebaf8184c2177778891bcd24a61ec93b2a46491 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-19Remove operationshistory10 DBJim Hahn1-1/+1
The operationshistory10 DB is no longer needed; removed from the CSIT. Issue-ID: POLICY-3419 Change-Id: Ifcf3022a9b9ca92ad3d4f00402ee4e8b141d40ba Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-14Base policy-jdk image on onap-python imageJim Hahn1-2/+2
The onap-java image only installs the java jre, but policy needs the jdk, thus we have been uninstalling the jre and then installing the jdk. Unfortunately, this means that the policy-jdk image does not use the latest ONAP-specified point release for either the java jdk OR python. With this change, the policy-jdk image will start with the onap-python image instead, thus python, at least will be up to date, even if the jdk is not. Note: tried using the latest adoptjdk image, but apparently there's something different about that image that triggers a stack overflow in apex-pdp. Consequently, we'll stay with the openjdk installed via alpine "apk". This is still java 11, which satisfies ONAP requirements, it just isn't the point release that is preferred. Issue-ID: POLICY-3486 Change-Id: I0959c7048a38e30927b37b58deb887cc961a2150 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-14Merge "Move drools-pdp db-migrator to separate container"Jim Hahn205-0/+4876
2021-07-13Change to xacml applicationParametersDragosh, Pamela (pd1248)1-1/+3
Issue-ID: POLICY-3326 Change-Id: I116bade6fd8da23363af78e89beb23ee6e73d577 Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2021-07-13Merge "Check exit status of wait_topic in xacml-pdp CSIT"Jim Hahn2-1/+3
2021-07-13Move drools-pdp db-migrator to separate containerktimoney205-0/+4876
Note: Instructions on how to use: https://wiki.onap.org/display/DW/Instructions+for+running+db-migrator Issue-ID: POLICY-3458 Change-Id: I42bce63eca94333c6aaab0e27eb3e514bb844661 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-07-12Check exit status of wait_topic in xacml-pdp CSITJim Hahn2-1/+3
Added code to the xacml-pdp robot script to check the exit status of wait_topic, to ensure that it succeeded. Issue-ID: POLICY-3473 Change-Id: Ie47bb861cd331c42aa5ae4f91c38a259796be842 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-12Update APEX CSIT tests to cover multiple outputsa.sreekumar9-19/+2998
As part of this review, a new policy is executed in APEX-PDP that interacts with AAI and CDS simulators. At each execution phase, along with sending a request to AAI/CDS, a log event is also sent to DMaaP notifying every action taken. This is done using the multiple output support. Change-Id: If34df13823196f9ece9b5ce6448b6652507f0b63 Issue-ID: POLICY-3466 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-07-06Replace POLICY-STATISTICS with POLICY-HEARTBEATJim Hahn1-1/+1
Eliminated the separate topic/feed for policy statistics and replaced it with a topic/feed for heatbeats, as that will be used for both heartbeats AND statistics. Issue-ID: POLICY-3460 Change-Id: Ie81a9c3d263db969a8c14597910f75724c244952 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-01Add POLICY-STATISTICS topic to CSITsJim Hahn1-1/+9
Added the topic. Also reduced the heartbeat interval so that statistics will be updated more frequently, reducing the time that some of the tests take. Issue-ID: POLICY-3405 Change-Id: I532a89b3e29884cf19f3a070d725280d9d10b637 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-30Fix related to name and statistics changes in CSITa.sreekumar2-3/+5
Change-Id: Iaeaadca083431a8b8df8043f73146fb31a09f3e0 Issue-ID: POLICY-3410 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-06-28Don't regenerate policy root CA in CSITsJim Hahn1-1/+10
If the truststore already contains a root CA for policy, then the script should not regenerate a root CA, as it interferes with pods that are brought up in subsequent runs. Issue-ID: POLICY-3384 Change-Id: I0c46fd23bd24ffd2add4e2d4914b6198a6f4b18f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-22Add CSIT for clamp controlloopSirisha_Manchikanti14-1/+711
Add CSIT testcases, scripts and a seperate docker-compose file for integration testing between controlloop components, this involves integration between Mariadb, Dmaap, ControlLoop-Runtime, Policy-Participant, Policy-API and DCAE-Participant docker images. Issue-ID: POLICY-3217 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Id7cb1451afc4331b4ed1ad1ac6c2528a747eaaa0
2021-06-16Use newer onap docker base imageJim Hahn2-2/+2
Modified the docker files to use the newer onap docker base image. Issue-ID: POLICY-3390 Change-Id: Ia9b57d1909917225b22eea5920f91ad193655911 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-15Merge "Change container name to simulator in CSITs"Pamela Dragosh7-20/+35
2021-06-14Don't save private keyJim Hahn6-68/+42
GitHub complains if you include a private key in a repo. Modified the CSITs to generate the root CA so that it's private key does not have to be stored. Issue-ID: POLICY-3384 Change-Id: I4bebc3e4b0e386047d7f6fbd19150812cb605899 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-14Change container name to simulator in CSITsJim Hahn7-20/+35
Changed the container name of message-router to simulator. Also introduced aliases for aai-sim, so-sim, etc. Issue-ID: POLICY-3384 Change-Id: Ife8c7c69d2342f256d6bcfb0d6704734472b5554 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-11Rename to message-routerJim Hahn35-410/+163
Modified the CSITs to use message-router for the simulator name. Also added a Root CA so that the ssl certificates can be signed. Removed property file overrides that are no longer needed. Issue-ID: POLICY-3384 Change-Id: I6f1bc53f192567eeab0e71a64d9eaec814a38dd0 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-04Don't use pip3 wrapper scriptJim Hahn9-24/+25
The pip3 script generates a warning saying to use "python3 -m pip" instead. Modified the code as such. Issue-ID: POLICY-3155 Change-Id: I852583bea88b6d4b969a1aba20e7b9193fa24732 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-03Use local version of the include scriptarkadiusz.adamski2-10/+5
- Use local version of the include-raw-integration-install-robotframework.sh script - correct name of pip python module Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: Iba43621b3c8aebfa715cee91a75fd6832ccbc2be
2021-06-02Use python3 for CSITsarkadiusz.adamski11-26/+94
- use python3 and pip3 in scripts - update robot-framework-http library, so it can use python3 - update selenium2library, so it can use python3 Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I5a6a4fe43e54366859049e1d43bbce599dacd14e
2021-05-19Test csit verify jobsRam Krishna Verma1-2/+2
Test the csit verify jobs created as part of https://gerrit.onap.org/r/c/ci-management/+/121407 Issue-ID: POLICY-3257 Change-Id: I03bbfc2113c18c704c28270fe9c6720ddbc0e7ef Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-14Merge "Update comments in test plans"Pamela Dragosh7-7/+7
2021-05-13Merge "add https telemetry configuration for csits"Ram Krishna Verma3-0/+127
2021-05-13Update comments in test plansJim Hahn7-7/+7
Changed the directory name in the test plan comments, now that they've been moved to docker/csit. Issue-ID: POLICY-3299 Change-Id: Ie17e01ff68a6d2caca9750736724a6e97a8ac20d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-13Fix distribution csit failureRam Krishna Verma1-1/+2
Fixing the path of the mount path from where csar files will be copied into the container. Issue-ID: POLICY-3257 Change-Id: Ibea35730439ae757578660d327f0fc26e3ad45a8 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-13add https telemetry configuration for csitsjhh3-0/+127
Issue-ID: POLICY-3230 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I89c932753cd236ab1e696004834db430c175f953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-05-13Merge "Move remaining CSITs from to docker/csit"Ram Krishna Verma39-23/+9206
2021-05-12Move remaining CSITs from to docker/csitJim Hahn39-23/+9206
Moved the remaining CSITs from the individual policy repos to the docker repo. The files are unchanged, except for removing trailing spaces and adding newlines to the end of a few of them. The two exceptions were the setup.sh scripts for drools-apps and distribution, in which "/csit" is no longer being appended to the TESTPLANDIR, as that variable now already includes "/csit". Issue-ID: POLICY-3299 Change-Id: I4dd381ad7d916f334cfbcbfb541c78db97012dd2 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-11Fix xacml-pdp csit test casesRam Krishna Verma1-12/+12
In the recent runs, it was found that get statitcs might take few seconds longer after the actual deployment of policies. So, increasing the "max" wait time for the test cases to 1 min. And it won't slow down the tests as the check will be made every 15 sec to verify if the assertions are passing. The moment they pass, it will move on. Issue-ID: POLICY-3257 Change-Id: Ifb00a7745b054fe490dd66cc680732893ff2b31a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-10Merge csits into docker/csitJim Hahn11-37/+339
Decided to move CSIT test source code from the individual repos into the docker repo. This review modifies the scripts to begin the process, and includes the CSIT code from xacml-pdp, as the first one to move. Note: while the xacml-pdp files are new to the docker repo, they are not actually new, thus their licenses were retained. Issue-ID: POLICY-3299 Change-Id: I7cce548ceec38c9c1615af883f08eb118e84d132 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-19Make base image name a propertyliamfallon2-4/+12
The base image name is not configurable for Policy builds. This change makes the base image name configurable so it can be reconfigured if needs be. Issue-ID: POLICY-2971 Change-Id: I8ba39aa109c5b4ddb516c27f65bf20dc1020d220 Signed-off-by: liamfallon <liam.fallon@est.tech>