aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/main
AgeCommit message (Collapse)AuthorFilesLines
2022-01-12PMS, Removed use of CBSPatrikBuhr5-158/+7
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 APIPatrikBuhr11-1087/+13
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
2022-01-05A1 Policy ManagementPatrikBuhr1-0/+7
Prepare to step springboot fwk to version 2.6.2 Adding a log statement Issue-ID: CCSDK-3495 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I33fcba31de2ffc259d3366056f979141816f0fb2
2021-12-29A1 Policy ManagementPatrikBuhr3-16/+30
Sorting of compatible policy type IDs Issue-ID: CCSDK-3495 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I9b092b82a24e951f0ac1f446b37cc0db2d644e3a
2021-11-29A1 Policy ManagementPatrikBuhr5-31/+18
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-11-11A1 Policy ManagementPatrikBuhr7-75/+63
Minor simplifications. Issue-ID: CCSDK-3495 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Id90cf9dfeb2b56561baf19391ddc858fc762888c
2021-10-15Improving searching for policy types - A1 JakartaPatrikBuhr15-151/+279
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 ↵PatrikBuhr1-9/+13
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-10-07Create a json schema for validation of the configuration of the A1 PMS - A1 ↵PatrikBuhr1-1/+1
Jakarta Bugfix, wrong behviour using old application.yaml files. Issue-ID: CCSDK-3468 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: I66013a62b550366f48665b0ecf30939dc8f4e0b5
2021-09-22Create a json schema for validation of the configuration of the A1 PMS - A1 ↵PatrikBuhr5-6/+209
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-14Policy Management Service, support for SEC4 and SEC5 - A1 Jakarta1.2.1PatrikBuhr3-3/+12
Added support for using protocols SEC4 and SEC5 between the PMS and a HTTP proxy in order to make that communication encrypted. Change-Id: Ia0e992d2bc41db67203ec75a94c84aeecf77bdce Issue-ID: CCSDK-3459 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-08-18Update springboot version of the Policy Management Service (version 2.5)PatrikBuhr6-28/+19
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 IstanbulPatrikBuhr4-4/+44
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-7/+14
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 IstanbulPatrikBuhr7-33/+153
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 IstanbulPatrikBuhr8-67/+113
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 Timoney23-211/+458
2021-04-07PMS Persistent storage of policies and type definitions - A1 IstanbulPatrikBuhr23-211/+458
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-2/+8
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 documentationPatrikBuhr30-439/+610
Using swagger3 and improving the API documatation. Change-Id: I31f7783e0a6e6fd7698c68e5df6f2d306bce6816 Issue-ID: CCSDK-3127 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-01-29Upgrade springfox version to fix security issuesRehanRaza1-2/+2
Change-Id: I71b340cb63f3ea6f8814638517ad4482ed30c662 Issue-ID: CCSDK-3108 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2021-01-21PMS API Documentation updatesPatrikBuhr2-2/+2
Change-Id: I2a02145c48fd4b022b2e17b157760bd7ddb8128f Issue-ID: CCSDK-3077 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-01-15Added a prefix to the PMS NBIPatrikBuhr1-1/+1
Replaced the copied pms api files under offered api with symlinks. Change-Id: I9421fdb959078e5de1a20987f3c2a2fa626bb25d Issue-ID: CCSDK-3077 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2021-01-07Global Exception HandlerLathish11-171/+235
Issue-ID: CCSDK-3054 Change-Id: I0281e616b58bb405b4f79d046af5c30b82753ea0 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2020-12-14Removing host from genernated docPatrikBuhr1-15/+20
Change-Id: If25daa12d270a43928f583d3a5cbc2258bb426d9 Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-12-02Bugfix, adding default values for http proxy if missingPatrikBuhr1-2/+2
If the httpproxy parameters is missing in the application.yaml, the application will run and no proxies will be used. Previously it did not start. Change-Id: I5f532a0f106255cc3e30defc8191f674d8bf3731 Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-11-24Added GET configPatrikBuhr3-12/+42
Corrected config so that PUT config receives an object intestead of a string Change-Id: Id784cc2840a2e2e981b0c4e874b8a848964e00ea Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-11-18Remove Sonar code smellselinuxhenrik2-4/+3
Change-Id: I0a9b8624eda84d74b0f7f00a4981917255744d26 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-18Add logging to ConfigurationControllerelinuxhenrik1-0/+5
Change-Id: If05cec191896c6290086b8c3c1464f589a95e104 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-17Add ConfigurationControllerelinuxhenrik5-42/+87
Change-Id: I281398dc663c5778ea6a5c34262a5684db4df0d0 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-11Merge "Added documentation in the application-yaml"KAPIL SINGAL1-1/+1
2020-11-10Added documentation in the application-yamlPatrikBuhr1-1/+1
Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech> Change-Id: Ia28deef87353f00bd29b021679f5669a68495b66
2020-11-10Merge "Bugfix, GET policy V2"KAPIL SINGAL5-15/+22
2020-11-10Merge "Break out configuration file read"KAPIL SINGAL2-38/+103
2020-11-10Bugfix, GET policy V2PatrikBuhr5-15/+22
Did not return transient flag. Improved somew unittests Skipped unwanted service callback when RIC is removed Change-Id: I3ca3be5d4592c2a1b31d3b1a23fe601d1d3f85a2 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-11-09Break out configuration file readelinuxhenrik2-38/+103
Break out the reading of the configuration file to a separate class to prepare for the addition of a REST API to replace the configuration file. Change-Id: If61669563d8bc9b0b235a49a30fae3b3efbc5148 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-06Added support for using HTTP proxyPatrikBuhr8-38/+73
A HTTP proxy may be used to access NearRT-RICs For other HTTP acces; Consul; DMAAP, local, and R-APP callbacks no proxy is used. Change-Id: Ibc3ed8bada76cafb23323bf03b28a9876bed60eb Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-11-04Bugfix path elements containing dotPatrikBuhr2-7/+7
Springboot trunkates last URL path element if it contains a dot '.'. This is a workaround. Change-Id: I1ae4139468a2669bfd6e33ae9eff88b2fc2a2004 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-11-03Minor API changesPatrikBuhr12-41/+173
The callback registerred at service registration is formalized, documented and tested. Change-Id: Idb135ddcec1862da486c4abd287fd5c7a757d8eb Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-28Merge "Improved validation of parameters for putPolicy in the NBI"KAPIL SINGAL2-2/+5
2020-10-28Remove code for sdnc onap controllerecaiyanlinux8-245/+47
sdnc onap controller is dismissed rename SdncOscA1Client to CcsdkA1AdapterClient rename SdncJsonHelper to A1AdapterJsonHelper update comments accordingly Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech> Issue-ID: CCSDK-2502 Change-Id: If525dab599f9fd28203e85dcd57c010c67e20a8b
2020-10-28Improved validation of parameters for putPolicy in the NBIPatrikBuhr2-2/+5
Change-Id: I6aab3b8415986c48a111304df153b4c44586fcbf Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-26Added support for policy status notificationsPatrikBuhr15-173/+198
Revised the version 2 of the component NBI Change-Id: I06571bfaa47ea3098ef71ce271e710a45b2d96e3 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-21Added support for ORAN A1-P Version 2.0PatrikBuhr8-56/+308
Change-Id: I82a00dced95b76c97bf93c61a65a8c9d8157a00f Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-19Merge "Made DmaapMessageConsumer asynchronuous"KAPIL SINGAL3-86/+105
2020-10-19Made DmaapMessageConsumer asynchronuousPatrikBuhr3-86/+105
Change-Id: Ib3d4951f3f9b2061353b5e50f427559a3781b10e Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-16Add A1 Adapter API documentationelinuxhenrik1-1/+1
Change-Id: Id19e858c67681b781871169ef79da5edf48c5cb2 Issue-ID: CCSDK-2833 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-10-12Improvent of usage of AsynchRestClientPatrikBuhr3-8/+11
Change-Id: I34ce159abacde85cfe7631402491e457d30c7097 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-11Fix a compilation errorecaiyanlinux1-1/+1
Jenkins job is failing due to a compilation error RicSynchronizationTask is refactored in another commit for improvement of AsynchRestClient This place needs update too Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech> Issue-ID: CCSDK-2699 Change-Id: Icc806d48ed1dec6b05c99016a1e2207f52cbbdbd