aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2023-03-31Fix some issues identified by sonarJohnKeeney2-3/+4
Change-Id: Ia1f1ebb3c0dec111d4544d750f983ebb7976d761 Issue-ID: CCSDK-3882 Signed-off-by: JohnKeeney <john.keeney@est.tech>
2023-03-01Update to JDK 17 & Springboot 3JohnKeeney3-4/+4
Issue-ID: CCSDK-3858 Change-Id: I3b0f9b391590684b222494bd648328626a3f9efb Signed-off-by: JohnKeeney <john.keeney@est.tech>
2023-02-27Removal of usage of DMaaPPatrikBuhr19-575/+21
Issue-ID: CCSDK-3852 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I88a370ea81f56763f54fde472c30d894c0df04e3
2023-02-02surefire-report summary generation including JUnit DisplayNamehalil.cakal20-0/+162
Issue-ID: CCSDK-3844 Change-Id: I696b0ff3001eb6170787ebdbd249507cc761c12a Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-01-19Changes needed for springboot version 2.7.7PatrikBuhr2-4/+3
Change-Id: Ie13ba28d3d9bf62a7851145ab84d3a1509d84261 Issue-ID: CCSDK-3841 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2023-01-11A1-PMS, graceful shutdownPatrikBuhr3-3/+37
Support for granceful shutdown via signal "SIGTERM" and via calling REST POST /actuator/shutdown Issue-ID: CCSDK-3830 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ibc71cd8a2c9f44ec844ab49c8f225ae128549776
2022-12-28ONAP PMS - new RICs must be locked before synchPatrikBuhr3-45/+24
Bugfix, new RICs must also be locked before synch. Otherwise other activities may interfere. Improved the synch. Previously, all policies were removed from the NearRT-RIC and eventually recreated. After this fix, only unknwon policies are removed. Change-Id: Ic6224aeb93ef91579cfb8894329538baf1829283 Issue-ID: CCSDK-3827 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2022-12-06A1-PMS, make service id optional in PUT PolicyPatrikBuhr1-4/+44
Improved API documentation. Fixed a bug that lead to that a policy could be connected to several services if the service_id was changed. Change-Id: I211f5db32747fc912b7ba85bfbc15ce50ee725dd Issue-ID: CCSDK-3819 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2022-11-11Support for using Amazon S3 - Cloud Object StoragePatrikBuhr3-50/+74
Introduce using Amazon S3 - Cloud Object Storage - AWS for storing of data. Change-Id: I68365c24c63544b5ad8e958a98f48d95f83e3084 Issue-ID: CCSDK-3810 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2022-11-01sonarcloud fixeshalil.cakal1-35/+36
Sonarqube fixes Issue-ID: CCSDK-3766 Change-Id: Ib03463a13194c18b00ed0d99754d7884af0d805f Signed-off-by: halil.cakal <halil.cakal@est.tech>
2022-10-19Merge "Metrics and statistics for A1 PMS"Dan Timoney2-1/+156
2022-10-17Metrics and statistics for A1 PMShalil.cakal2-1/+156
Enable app metrics to be collected by Prometheus Patch set 2: Remove hardcoded defines ccsdk.sli dependency Issue-ID: CCSDK-3766 Change-Id: I58f05390007b74e58427b9be2711912c551d6e1e Signed-off-by: halil.cakal <halil.cakal@est.tech>
2022-09-29Minor logging improvementPatrikBuhr1-3/+3
Debug logging of REST response body in case of error. Removed some irrelevant logs. Issue-ID: CCSDK-3766 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I3c7b62acd1736f9447e3494c655d85372a4c521f
2022-08-12NONRTRIC PMS, updated certsPatrikBuhr1-4/+6
Updated certificate (which was expired). Issue-ID: CCSDK-3683 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I373bf34bc0a1bb0b5b5ff00f0f98da080ba794ff
2022-07-06NONRTRIC PMS, updated SDNC rest interfacePatrikBuhr3-9/+0
Update path and output-json for SDNC rest interface - A1 Kohn Issue-ID: CCSDK-3193 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I9f29df244671558f6ae788f862aa620e4e4a9466
2022-06-10NONRTRIC PMS, Sporadic instabilityPatrikBuhr4-24/+39
Some further simplifications and added test. Issue-ID: CCSDK-3683 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I1ec98017d63047a0036db5ea12f770db00b1152b
2022-06-09NONRTRIC PMS, Sporadic instabilityPatrikBuhr1-0/+16
Attempt to stablize the synch. Issue-ID: CCSDK-3683 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ieda858e76082fd5224ac43f153e8967f871322d8
2022-06-07NONRTRIC PMS, Sporadic instabilityPatrikBuhr2-56/+16
Attempt to stablize the synch. Issue-ID: CCSDK-3683 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ie0f266e2eef23e91dcf6f5925a577bb930b6d9e8
2022-05-24NONRTRIC PMS removalof usage of immutablePatrikBuhr14-139/+77
Issue-ID: CCSDK-3629 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ib256d15a035133e25cd455fae44cfe33d8b82797
2022-05-16Merge "Documentation updates"Dan Timoney1-1/+1
2022-05-12Documentation updatesJohnKeeney1-1/+1
Updated RTD documentation, and fixed some typos in java files conatining annotations used to generate OpenAPI (json, yaml, html) specs & docs. Issue-ID: CCSDK-3616 Change-Id: Iefa905f4c0f13cb013872d4858232695fc107927 Signed-off-by: JohnKeeney <john.keeney@est.tech>
2022-05-12NONRTRIC PMS added support for custom A1 adaptersPatrikBuhr10-2/+52
Added support for added external A1-P adapter. This makes it possible to design and include adapter to APIs for accessing of A1 policies (in a NearRT-RIC) without any changes in this SW. Issue-ID: CCSDK-3655 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Idc7bf97963a2455bde983b06a5f861df77d901ae
2022-03-31NONRTRIC PMS using authorization tokenPatrikBuhr11-19/+64
Added support for PMS sending an authorization token in each REST call(in the HTTP header). The token is read from a file. Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I92229f67d2c1486530f3c6ebb22f60bd3b359676
2022-03-25NONRTRIC Minor changesPatrikBuhr1-1/+4
Some version updated and changes related to swagger documentation generation. Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I59311f5fd09face79e9dce185c65374522dcb40e
2022-02-10NONRTRIC Improved tracesPatrikBuhr1-2/+2
Improved traces Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I1ef76b859e24f4ea503c8e28e503528c98de4342
2022-02-09Updated Lock to avoid starvationPatrikBuhr3-24/+36
The lock class is made more greedy so all locks are granted in the requested order. Previously, an exclusive lock could be discriminated. Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: If2dd171409c58eacbccce9569b2f6694e09992a2
2022-02-01NONRTRIC - 3PP dependency version updatePatrikBuhr1-2/+1
Updated json version +Also fixed a trace message Issue-ID: CCSDK-3581 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I68cfebdd1fdfbc72683d85e9e9bcd201eb7d1e85
2022-01-24Merge "Fixed a unittest so it does not open an http port"Dan Timoney1-0/+7
2022-01-21Fixed a unittest so it does not open an http portPatrikBuhr1-0/+7
Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I697f6fa780109f4a8fae399b4da882e06036ec15
2022-01-14Update a test that is failing on windowsJohnKeeney1-2/+4
Issue-ID: CCSDK-3560 Change-Id: I8e5cc80af234b97ba319fe1bf2551e2b999eb858 Signed-off-by: JohnKeeney <john.keeney@est.tech>
2022-01-12PMS, Removed use of CBSPatrikBuhr2-312/+2
Removing usage of the deprecated component CBS, which was used for application configuration data. Change-Id: I11fbc1ff6e6caa1af448bc2918f4364777094e25 Issue-ID: CCSDK-3560 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2022-01-10A1 Policy Management, Removal of deprecated APIPatrikBuhr2-791/+10
The V1 of the policy management API is removed from the code. Issue-ID: CCSDK-3559 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I0b5cde71770fca3826ad18025094d1c8423f4cf3
2021-11-29A1 Policy ManagementPatrikBuhr2-5/+1
Removed regexp parameter due to sonar warning. Skipping reading of config file unless it has been changed. Issue-ID: CCSDK-3495 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I27bece78c99e0354cd476bb2e060788d40f2cbaf
2021-10-15Improving searching for policy types - A1 JakartaPatrikBuhr2-11/+59
The querying for supported policy types is enhanced so that an application can get a list of all policy types that are compatible with a given version. This means added query parameters for GET types. Simplified exception handling. Issue-ID: CCSDK-3495 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Iedc2267e4fe2b5e2c17d688e315893c354379930
2021-10-11Create a json schema for validation of the configuration of the A1 PMS - A1 ↵PatrikBuhr3-3/+4
Jakarta Enabling the feature by default and fixing so that the schema can be loaded from the jar. Issue-ID: CCSDK-3468 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I49a41b9124b74d5019200cc9b6eb48c5d46b043d
2021-09-22Create a json schema for validation of the configuration of the A1 PMS - A1 ↵PatrikBuhr2-4/+25
Jakarta To create a json schema to be used for validation of the PMS configuration. The schema shall be used by PMS. It can also be used by the end user. The documentation should be updated on how can be done. Issue-ID: CCSDK-3468 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I9932fa42ff40681098764c8dc84ac201bb3fabaf
2021-09-01Bugfix, timing issue in a unittest (3rd)PatrikBuhr1-55/+54
Issue-ID: CCSDK-3421 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ic474388cbe59c848e1f4693ba1bf258e77852d98
2021-08-26Bugfix, timing issue in a unittest1.2.0PatrikBuhr1-8/+8
Issue-ID: CCSDK-3421 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I66bec17ab17d189740c50d6cc8af473b5a0fbbd4
2021-08-19Bugfix, timing issue in a unittestPatrikBuhr1-1/+7
Issue-ID: CCSDK-3421 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I6fc0f78806dd46b6824433304fa89d97c66e9aa5
2021-08-18Update springboot version of the Policy Management Service (version 2.5)PatrikBuhr4-12/+21
This required some changes due to not backwards compatible changes. - The API to springboot WebClient is changed, which is wrapped in class AsyncRestClient. - The validation of trusted certs is made more strict. The Owner field of the peer cert must contain the name ofthe using host. The uniitest tests this, so the cert in config is updated (Owner is "localhost"). Change-Id: Ia954b0ee5942884cd4b9fd82769bc8089dc35c53 Issue-ID: CCSDK-3421 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-06-07Fix Sonar issueselinuxhenrik1-4/+4
Issue-ID: CCSDK-3255 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech> Change-Id: Iaf070882fac078d3441748b6dfc7218b1ac1ab31
2021-05-19PMS Bugfix - A1 IstanbulPatrikBuhr3-5/+5
Bugfix, rejecting putting and getting configuratioon via REST if the consul is used (then the configuration file has no effect).. Issue-ID: CCSDK-3256 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ia3b4a387f450b137b576a9d82ba2f7093a5839ef
2021-05-05PMS Persistent storage of service definitions - A1 IstanbulPatrikBuhr1-4/+31
Bugfix,only sending AVAILABLE notifications for RICs that has been successfully synched. Issue-ID: CCSDK-3256 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ic915c3d83a51ac23cb4652bda9ab696fc27bae3d
2021-04-30PMS Persistent storage of service definitions - A1 IstanbulPatrikBuhr5-27/+76
Storing or registerred services to survice a restart. Change-Id: If1b41d0a3c995b51bb93000caca5ecff9da6fbc1 Issue-ID: CCSDK-3256 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-04-20PMS Persistent storage of policies and type definitions - A1 IstanbulPatrikBuhr4-35/+31
Bugfix,improved traces, avoiding synch for RICs after restart. Change-Id: I35ae834cd73cde6b108b941aa0f2c43eeda9379e Issue-ID: CCSDK-3256 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-04-08Merge "PMS Persistent storage of policies and type definitions - A1 Istanbul"Dan Timoney15-172/+140
2021-04-07PMS Persistent storage of policies and type definitions - A1 IstanbulPatrikBuhr15-172/+140
Policy types and type definitions are stored persistently to survive a restart of PMS. Change-Id: Ideae4dae5b6f9de2b82127e65ce5184d615c8fd4 Issue-ID: CCSDK-3256 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-03-26Ingnoring RIC faulty configuration entriesPatrikBuhr1-0/+2
Ignoring RIC figuration entries where the baseUrl is empty. Change-Id: I50e63c964375d009a927290ab1ba0895a7f8888c Issue-ID: CCSDK-3227 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-02-02Improved API documentationPatrikBuhr2-17/+18
Using swagger3 and improving the API documatation. Change-Id: I31f7783e0a6e6fd7698c68e5df6f2d306bce6816 Issue-ID: CCSDK-3127 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-01-21PMS API Documentation updatesPatrikBuhr1-3/+7
Change-Id: I2a02145c48fd4b022b2e17b157760bd7ddb8128f Issue-ID: CCSDK-3077 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>