aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-09-09Release xacml-pdp 2.1.25.0.0-ONAPPamela Dragosh1-0/+4
Releasing 2.1.2 Issue-ID: POLICY-2045 Change-Id: I2c7c1968a6b194d7f582062a27416ffc57c4ad68 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-09Upgrade to released artifactsPamela Dragosh1-3/+3
Upgrade to released parent, common and models Issue-ID: POLICY-2045 Change-Id: I4ee2e7d752d45449d7d2c0173c3b6b672e160166 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-09Integrate using Policy Type to find MatchablePamela Dragosh26-175/+1186
Utilize's Jim's helper class to pull from API policy types definitions so that Xacml PDP can determine which properties are "matchable". Override initialize to set translator parameters. Utilize the metadata section of ToscaProperties to store the matchable field. Updated Matchable Request to be dynamic with respect to the incoming resource attributes. Stored the policy types as JSON. Issue-ID: POLICY-1899 Change-Id: Icff3605495b0a34ebfcdfa54346095ce2d8468a4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-03Change "pap" to "policy-api" in xacml-pdp configJim Hahn1-1/+1
The json config file is really only an example, but the example leads users down the wrong path, because it implies that xacml-pdp connects to "pap" to get policy type information, when it actually talks to "policy-api". Updated the config file. Change-Id: Id2a42264591acd37b7813673fdcaa790257a9d8a Issue-ID: POLICY-1911 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-30Get policy type from policy-apiJim Hahn17-79/+616
Added a class to retrieve a policy type from the policy-api. Updated property files to include parameters that are needed to configure it. Updates per review comments: - change PolicyApi to PolicyApiCaller - use HttpClientFactory - removed superfluous constructors from exception classes - changed parameters to use RestServerParameters instead of BusTopicParams Change-Id: I8aad6ca5a733c8ad9cc983496e745ebe7400dd17 Issue-ID: POLICY-1911 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-23XACML junit spews dmaap errorsJim Hahn1-1/+1
Modified junit parameters to specify "noop" instead of "dmaap" in the topic properties, eliminating the dmaap error messages from the log. Change-Id: I350d988d10219e6ded2c011a4ed117fd5e71876a Issue-ID: POLICY-1725 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-22update keystorejhh2-0/+0
Issue-ID: POLICY-1988 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I544a0bdf63582cdff74765d7fad1b7f993d0bfa0 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-08-08Review maven dependency for snakeyamlBruno Sakoto1-2/+1
Remove explicit version for snakeyaml maven dependency and inherit it from integration parent artifact. Issue-ID: POLICY-1603 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Iae360f073f9962014fbb64dbe150e75edc49d039
2019-08-07Bump version of policy/xacml-pdpJim Hahn14-16/+16
Change-Id: I2770d2803c79b5eb72b69bb6aa4a1da43a0f6a0b Issue-ID: POLICY-1965 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-06Add release 2.1.1 filejhh1-0/+4
Issue-ID: POLICY-1953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I352905ea9e2876879896cc0842df43139d487d65
2019-08-06Update to latest common/models released versionsjhh1-2/+2
policy/models: 2.1.2 policy/common: 1.5.1 Issue-ID: POLICY-1953 Change-Id: I9ea6939e760ae5098896aedcfa632cc7426e927d Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-07-31Merge "Use new addTopic() method in xacml-pdp"Jorge Hernandez3-18/+5
2019-07-31Merge "Fix guard table creation during startup issue"Ram Krishna Verma1-2/+40
2019-07-30Fix guard table creation during startup issueMichael Mokry1-2/+40
- Added -hpolicydb to the mysql command in the script - Made this configurable by utilizing the existing parameters in xacml.properties for db connections. No OOM or CSIT changes should be needed now. PATCH UPDATE: - used Awk to extract property values - removed echo except one needed for the base64 command, as far as I can tell it is needed when assigning output to a variable, I tried to get it to work unsuccessfully. - added exit code 2 for missing properties as suggested by Jorge and Jim PATCH UPDATE: - remove echo from base64 using Jim's suggestion - Added code to remove escape backslashes from properties file, I didn't see these locally but when testing in windriver they show up in the xacml.properties file on OOM installs - More changes per Jorge's latest review Change-Id: I79c0502d8a4fadd2160785014fcb9db3c0faab5e Issue-ID: POLICY-1934 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-07-30Use new addTopic() method in xacml-pdpJim Hahn3-18/+5
Replaced ParameterUtils with the use of the new addTopic(TopicParameterGroup) method. Change-Id: I35bf8a78d4670835dda005cdb218665a3bf48a16 Issue-ID: POLICY-1953 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-26Add stopBubbling to lombok.config for XACML-PDPJim Hahn1-0/+1
Change-Id: If489f95f80f324620bbcdca85d0fe2b4b2285d31 Issue-ID: POLICY-1938 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-24Merge "Add more junit coverage to xacml-pdp (round #2)"Jim Hahn9-81/+932
2019-07-24Merge "S3P Stability and Performance Tests"Pamela Dragosh2-95/+1972
2019-07-23Add more junit coverage to xacml-pdp (round #2)Jim Hahn9-81/+932
Also removed unused methods. Also extracted constants. Change-Id: I8d2cff05a365f145f2080369e9ea52d08be7e508 Issue-ID: POLICY-1772 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-23S3P Stability and Performance TestsMichael Mokry2-95/+1972
- Modified the jmeter scripts to include performance and stability testing with Decision APIs Change-Id: If10e5c598406af21d620b359a1f20b64fd433b18 Issue-ID: POLICY-1773 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-07-23Fixed xacml-pdp registrationJim Hahn2-38/+46
Apparently, TimerTasks may not be cancelled and then re-scheduled. Modified the code to use a scheduled thread pool instead. Change-Id: I2e26a5a37636f570f362481823a0274fe558e2e9 Issue-ID: POLICY-1939 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-23Add junit coverage to xacml-pdpJim Hahn11-51/+1041
Change-Id: I9b59dcd27705e40c424b6a76420e0395adbe44bb Issue-ID: POLICY-1772 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-17Modify xacml-pdp to use RestServer from commonJim Hahn2-171/+9
Change-Id: I331483e2e28f2c57160b3eaace40fc84a1c13727 Issue-ID: POLICY-1652 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-10Added comment to checkstyle suppressionJim Hahn1-5/+11
Change-Id: I7c7c89e8b4367bbc2ea7a97e403eb253e955a9a5 Issue-ID: POLICY-1074 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-08Fix xacml-pdp due to sonar changes in commonJim Hahn3-11/+13
Fixed breakages due to changes made in policy/common to satisfy sonar. Change-Id: I6c655ca9509bc1d52277d55b02103e9875de2c29 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-04Remove topic.properties and incorporate into overall config file for xacmla.sreekumar19-357/+240
Change-Id: I3be6248db65041f5d9b7acfcf0fcd2f49d9d70f8 Issue-ID: POLICY-1744 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-07-03Fix xacml decision policy-typePamela Dragosh3-9/+27
Wrong attribute id was being used. Added info logging statement to assist in debugging. Added JUnit to support this. Issue-ID: POLICY-1843 Change-Id: I11d83574f91751804a45281d2e0c9cd3150e30eb Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-07-01Use ToStringTester from utils-testramverma2-3/+3
Changing ToStringTester from utils to utils-test. Bumping the policy/common & policy/models version. Change-Id: Idf665bc92345c445f483ebfb190d39c7019280aa Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-06-28Bump xacml-pdp to 2.1.1-SNAPSHOTPamela Dragosh14-14/+14
Released 2.1.0 Issue-ID: POLICY-1737 Change-Id: Ieb3015e9373a9a71a71f2811cbc6db9315d58109 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-28Remove POLICY_PDPX_HOME in policy-pdpx.sh and Dockerfileshaoqiu2-12/+12
Update the policy-pdpx.sh and Dockerfile according to the comments in commit: https://gerrit.onap.org/r/c/policy/api/+/89972 Issue-ID: POLICY-1702 Change-Id: Id46c108f5893d3e81e2038d9d5063b9f8a5eb5ee Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-06-26Fix xacml-pdp latest tag2.1.0Pamela Dragosh1-12/+12
Eliminating the patch - using Rashmi's changes. Issue-ID: POLICY-1737 Change-Id: Iaacd198aeca5daef71e4356f7446e23b9c65d9ce Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> Signed-off-by: pdragosh <pdragosh@research.att.com>
2019-06-24Upgrade to release common & modelsPamela Dragosh1-2/+2
Released common 1.5.0 and models 2.1.0 Issue-ID: POLICY-1737 Change-Id: Ia5bf6965c7c85b1de74b90b1d4fd179cac01bdea Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-21Merge "Create simple way to populate guard table"Jorge Hernandez2-0/+53
2019-06-20Merge "Upgrade to release 3.0.0 parent"Jim Hahn1-1/+1
2019-06-20Upgrade to release 3.0.0 parentPamela Dragosh1-1/+1
Policy/parent released Issue-ID: POLICY-1737 Change-Id: I8814c011b923286b714ab5e97fb3665d58c9f40c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-20Create simple way to populate guard tableMichael Mokry2-0/+53
Created a script that takes in the guard type as argument and executes the sql in a .sql file to insert data Made changes based on review comments: 1) Moved it all to the testsuite package 2) Modified the script to remove the guard type argument and replaced it with a parameter for the filename 3) added exit 1 where applicable 4) renamed sql file to be more general and avoid a specific use case. Change-Id: I89a2fa81153449b6716d9d215aa2af56748212b4 Issue-ID: POLICY-1786 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-06-19Update totalPoliciesCount statisticJim Hahn9-5/+38
Modified the code to set the policy count statistic at start-up and whenever the policy list is changed. Also fixed a couple of checkstyle issues in guard. Change-Id: I92017fe64cd5d19c36908347193cc21d183f051e Issue-ID: POLICY-1844 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-19Merge "Create the operationshistory table from pdpx"Pamela Dragosh5-5/+80
2019-06-18Create the operationshistory table from pdpxMichael Mokry5-5/+80
Added create table sql statement to the policy-pdpx.sh to create the operationshistory table during xacml-pdp installation Added changes per Jorge's review 1) Added sql file with create table statement 2) Added bash script to execute sql file 3) modified policy-pdpx.sh to execute new bash script 4) other changes Change-Id: Iaae63dc65db1ff9181de12928e072f04c87e50e7 Issue-ID: POLICY-1827 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-06-17Change getCanonicalName() to getName() in xacml-pdpJim Hahn2-3/+3
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Change-Id: Id9ad514a7ba10e7cdbf292bba2b07135bdbd2572 Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-05Fix xacml docker chmodJim Hahn1-1/+1
The chmod in the docker builder for my local VM does not appear to support the "+x" style options. Modified the xacml docker file to use "755" instead. Change-Id: I6cba12e62d84f626e03b3aee33d50d71faa602c4 Issue-ID: POLICY-1829 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-30Bump xacml-pdp to version 2.1.0Jim Hahn14-18/+18
Change-Id: I231fa4c077db75d426278f6f718876bb2c76a8db Issue-ID: POLICY-1747 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-23Bump to 2.0.2-SNAPSHOTPamela Dragosh14-14/+14
Released 2.0.1 Issue-ID: POLICY-1700 Change-Id: Idc1d8602b276c9ad3199c57723dd053fb1dd48a3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-22Update INFO.yaml to add Jim and Ram4.0.0-ONAP2.0.1liamfallon1-1/+17
Issue-ID: POLICY-1775 Change-Id: Id8da2edad9bbc5e47162b14eaea713ca66accc19 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-05-17Merge "Add SON Handler monitoring policy type"Jorge Hernandez1-0/+3
2019-05-17Add SON Handler monitoring policy typePamela Dragosh1-0/+3
Missing for this use case is the monitoring policy type for the 5G OOF PCI use case. Updated name to follow convention. Issue-ID: POLICY-1779 Change-Id: I88c6c235288b9090161338695a2a55e5b1900b98 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-16Merge "Change to fix SQLInvalidAuthorizationSpecException"Pamela Dragosh3-1/+19
2019-05-16Bump snapshot 2.0.1Pamela Dragosh14-14/+14
Released so bumping to next patch Issue-ID: POLICY-1630 Change-Id: Ib91063848e1a757b0a251052ce8ec61dace85d88 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-16Change to fix SQLInvalidAuthorizationSpecExceptionMichael Mokry3-1/+19
Added code to decode password and set property Change-Id: Ied806fcceeaa44d53ca39af636da620fb824e41d Issue-ID: POLICY-1760 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-05-14Upgrade to release policy/models2.0.0Pamela Dragosh1-1/+1
Version 2.0.0 Issue-ID: POLICY-1630 Change-Id: I6255f19fe204e54dc6d52eae875071a946ebca8b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>