summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test
AgeCommit message (Collapse)AuthorFilesLines
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)PatrikBuhr6-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 entriesPatrikBuhr2-1/+11
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>
2021-01-15Added a prefix to the PMS NBIPatrikBuhr1-3/+3
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>
2020-12-14Removing host from genernated docPatrikBuhr1-1/+3
Change-Id: If25daa12d270a43928f583d3a5cbc2258bb426d9 Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-12-08Add generation of API yaml fileelinuxhenrik1-1/+1
Change-Id: I3f3091c76b926425f9a2187e43dd03a1cdb4bda6 Issue-ID: CCSDK-2736 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-24Added GET configPatrikBuhr2-13/+26
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 smellselinuxhenrik3-2/+5
Change-Id: I0a9b8624eda84d74b0f7f00a4981917255744d26 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-17Sort out Maven dependencies in PMSelinuxhenrik1-6/+0
Change-Id: I56a1f7187d53d57d54b5341f3b2dedb0464e3e27 Issue-ID: CCSDK-2502 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-17Add ConfigurationControllerelinuxhenrik3-13/+178
Change-Id: I281398dc663c5778ea6a5c34262a5684db4df0d0 Issue-ID: CCSDK-2966 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-11-10Merge "Bugfix, GET policy V2"KAPIL SINGAL2-42/+57
2020-11-10Merge "Break out configuration file read"KAPIL SINGAL2-36/+134
2020-11-10Bugfix, GET policy V2PatrikBuhr2-42/+57
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-36/+134
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 proxyPatrikBuhr4-4/+6
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 dotPatrikBuhr1-13/+16
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 changesPatrikBuhr5-56/+124
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-28Remove code for sdnc onap controllerecaiyanlinux3-314/+42
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-26Added support for policy status notificationsPatrikBuhr11-122/+127
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.0PatrikBuhr3-111/+377
Change-Id: I82a00dced95b76c97bf93c61a65a8c9d8157a00f Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-19Merge "Made DmaapMessageConsumer asynchronuous"KAPIL SINGAL3-137/+79
2020-10-19Made DmaapMessageConsumer asynchronuousPatrikBuhr3-137/+79
Change-Id: Ib3d4951f3f9b2061353b5e50f427559a3781b10e Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-16Add A1 Adapter API documentationelinuxhenrik2-2/+2
Change-Id: Id19e858c67681b781871169ef79da5edf48c5cb2 Issue-ID: CCSDK-2833 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-10-12Improvent of usage of AsynchRestClientPatrikBuhr2-19/+18
Change-Id: I34ce159abacde85cfe7631402491e457d30c7097 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-09Improvent of AsynchRestClientPatrikBuhr6-44/+41
Previously, the cert and the trust databases was read each time a AsynchRestClient was created. Now, they are only read once. This has performance impact. Change-Id: I7a480a64542187d79ffc2ee7427e0140f45afadc Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-10-05Generated api/api_generated.jsonPatrikBuhr1-6/+23
Change-Id: I22142f7752dd3876a689742af17caaf74c13f349 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-09-03Fixing and Refactoring POM'sSingal, Kapil (ks220y)22-577/+575
Adding missing xml tag and parent pom referencing Issue-ID: CCSDK-2730 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I2fa6eb3aea80480452122a62b417a2e944732645
2020-09-01Fixing instable testPatrikBuhr1-3/+11
The testcase in question should wait util the available so that the data synchronization does not iterfere. Change-Id: I152bb5db25cb7d55a0c677595027ef72577f84c0 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-08-31Fixed so that ApplicationTest(s) is run by mvn testPatrikBuhr3-20/+7
For some reason 'mvn test' skips tests in files named ApplicationTestV1 and ApplicationTestV2 They are renamed, and moved to controllers. Change-Id: I9563f1dcc5ffce98be1b744159fd4a75d3992b19 Issue-ID: CCSDK-2502 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-08-27Merge "DMAAP Improvements"KAPIL SINGAL3-91/+103
2020-08-27DMAAP ImprovementsPatrikBuhr3-91/+103
When a syntactically incorrect DMAAP is receiced, a response is generated to simplify trouble shooting. Change-Id: I949df0c13e056fa5713a4af6dfc870e1b7078c0a Issue-ID: CCSDK-2498 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-08-25Some improvements if NBI V2.0PatrikBuhr2-26/+11
Improved generated swagger API. Furter alignments to https://opensource.zalando.com/restful-api-guidelines/#118 Improved unitttest for faulty JSON in configuration. Changed names: "NonRT-RIC" to "Non-RT RIC" and "NearRT-RIC" to "Near-RT RIC" Change-Id: I4ca0d45605a770b5c33e34019671e088e3fe979d Issue-ID: CCSDK-2498 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-08-24Fix Sonar issueselinuxhenrik2-8/+7
Change-Id: I868d22847853ba7646164c2234b608ec319085ab Issue-ID: CCSDK-2502 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
2020-08-20REST Style alignment for A1 Policy ManagementPatrikBuhr16-94/+957
Created a structure for support of different NBI APIs. A version 2 is started, which introduces changes initiated by reviews and aligns to https://opensource.zalando.com/restful-api-guidelines/#118 More alignment will be done in later commits. Issue-ID: CCSDK-2498 Change-Id: I810ecce79b5e2462cc77a1c2e7c638fbc6d54774 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
2020-08-04Add seed code for A1 policy management serviceRehanRaza30-0/+5478
Change-Id: I4925a613a85b182aab6d78dafd55ec333acba49d Issue-ID: CCSDK-2617 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>