nonrtric.git
4 years agoMerge "Documentation reorganisation"
Henrik Andersson [Mon, 30 Mar 2020 11:55:50 +0000 (11:55 +0000)]
Merge "Documentation reorganisation"

4 years agoImproved java class documentation 35/3035/2
PatrikBuhr [Fri, 27 Mar 2020 14:44:54 +0000 (15:44 +0100)]
Improved java class documentation

Removed sprinng boot actuator from the generated
open API documentation.

Bugfix, only one Application configuration object can exist.

Change-Id: Iabed9a95995a2e1aadf6f9e3b7188b04e73838ec
Issue-ID: NONRTRIC-164
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoDocumentation reorganisation 24/3024/2
maximesson [Thu, 26 Mar 2020 15:43:27 +0000 (16:43 +0100)]
Documentation reorganisation

Change-Id: I8db9e11ba1f979970c189f81c743f6009dcda8f0
Issue-ID: NONRTRIC-166
Signed-off-by: maximesson <maxime.bonneau@est.tech>
4 years agoMerge "A1 controler access can be both OSC and ORAN versions of A1"
John Keeney [Fri, 27 Mar 2020 09:53:21 +0000 (09:53 +0000)]
Merge "A1 controler access can be both OSC and ORAN versions of A1"

4 years agoMerge "Sonar fix in log aspect"
Henrik Andersson [Fri, 27 Mar 2020 08:58:43 +0000 (08:58 +0000)]
Merge "Sonar fix in log aspect"

4 years agoA1 controler access can be both OSC and ORAN versions of A1 91/2991/1
PatrikBuhr [Thu, 26 Mar 2020 09:58:51 +0000 (10:58 +0100)]
A1 controler access can be both OSC and ORAN versions of A1

Change-Id: I3c77a11f67cad6fceb3346ac13b62929def822a1
Issue-ID: NONRTRIC-164
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMerge "Generalization of controller"
John Keeney [Thu, 26 Mar 2020 09:32:41 +0000 (09:32 +0000)]
Merge "Generalization of controller"

4 years agoSonar fix in log aspect 72/2972/1
Lathish [Wed, 25 Mar 2020 12:40:34 +0000 (12:40 +0000)]
Sonar fix in log aspect

Issue-ID: NONRTRIC-170
Change-Id: Ie72a3e6c6a9d9c42753fb2404f68dfae86ddd1f0
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
4 years agoMerge "Removing release file for nearric simulator"
Henrik Andersson [Wed, 25 Mar 2020 06:55:56 +0000 (06:55 +0000)]
Merge "Removing release file for nearric simulator"

4 years agoRemoving release file for nearric simulator 40/2940/2
maximesson [Tue, 24 Mar 2020 08:43:14 +0000 (09:43 +0100)]
Removing release file for nearric simulator

Since the simulator has been moved to its own repo,
the release file for it should be removed from this repo.

Change-Id: I0cbb68a43662dbbd486ab61bf6e8d42cfc0b733b
Issue-ID: NONRTRIC-88
Signed-off-by: maximesson <maxime.bonneau@est.tech>
4 years agoRemove release file for dashboard 39/2939/3
elinuxhenrik [Tue, 24 Mar 2020 08:46:14 +0000 (09:46 +0100)]
Remove release file for dashboard

Since the dashboard has been moved to its own repo,
the release file for it should be removed from this repo.

Change-Id: I06385ff2b75062f3b3d7648b985d4041b38c98d5
Issue-ID: NONRTRIC-168
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoGeneralization of controller 13/2913/2
PatrikBuhr [Mon, 23 Mar 2020 06:17:28 +0000 (07:17 +0100)]
Generalization of controller

Prepare for controller supporting several A1 influenced APIs
(southbound).

Change-Id: I7748dc834f8c24d4a9877f158d17b84d43a1bb53
Issue-ID: NONRTRIC-164
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMoving the near-rt-ric simulator 23/2923/2
maximesson [Tue, 17 Mar 2020 08:32:03 +0000 (09:32 +0100)]
Moving the near-rt-ric simulator

Change-Id: I115b4d26cc15103ff1eeed192f2377ed39b1fb3a
Issue-ID: NONRTRIC-88
Signed-off-by: maximesson <maxime.bonneau@est.tech>
4 years agoMerge "Remove dashboard"
John Keeney [Mon, 23 Mar 2020 09:13:29 +0000 (09:13 +0000)]
Merge "Remove dashboard"

4 years agoMerge "Spring Aspect logging"
John Keeney [Fri, 20 Mar 2020 18:18:06 +0000 (18:18 +0000)]
Merge "Spring Aspect logging"

4 years agoSpring Aspect logging 77/2877/2
Lathish [Thu, 19 Mar 2020 15:24:32 +0000 (15:24 +0000)]
Spring Aspect logging

Issue-ID: NONRTRIC-170
Change-Id: I297c19fbb66de9abd6a62b115561c092368f0391
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
4 years agoMerge "Bugfix, version negotiation"
John Keeney [Fri, 20 Mar 2020 12:04:12 +0000 (12:04 +0000)]
Merge "Bugfix, version negotiation"

4 years agoBugfix, version negotiation 96/2896/1
PatrikBuhr [Fri, 20 Mar 2020 10:05:18 +0000 (11:05 +0100)]
Bugfix, version negotiation

The STD was using getTypes, but that will never fail in that version.

Change-Id: I686cd226c27bb5b22dcc643298ac7dcb7d5cd721
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMerge "Renamed things to fit with namechange of RicSynchronizationTask"
John Keeney [Fri, 20 Mar 2020 08:46:52 +0000 (08:46 +0000)]
Merge "Renamed things to fit with namechange of RicSynchronizationTask"

4 years agoRemove dashboard 94/2894/1
elinuxhenrik [Fri, 20 Mar 2020 08:41:11 +0000 (09:41 +0100)]
Remove dashboard

Change-Id: Ie4b99fc7b9e5c3cfb7c9ca9584bc59902316c5ae
Issue-ID: NONRTRIC-168
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRenamed things to fit with namechange of RicSynchronizationTask 43/2843/3
elinuxhenrik [Wed, 18 Mar 2020 09:04:13 +0000 (10:04 +0100)]
Renamed things to fit with namechange of RicSynchronizationTask

Change-Id: I6de98e23eac06b8a54a8dc706904b3650a5014ee
Issue-ID: NONRTRIC-117
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "HttStatus from PUT Service"
Henrik Andersson [Thu, 19 Mar 2020 14:29:09 +0000 (14:29 +0000)]
Merge "HttStatus from PUT Service"

4 years agoHttStatus from PUT Service 72/2872/1
PatrikBuhr [Thu, 19 Mar 2020 13:20:16 +0000 (14:20 +0100)]
HttStatus from PUT Service

For PUT Service, HttpStatus CREATED is returned for new service and
OK for and update one.

Change-Id: I15ae61d33b581f25a3ac2eeb4260d2a086c07382
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoBugfix Dmaap responses without body 66/2866/1
PatrikBuhr [Thu, 19 Mar 2020 12:05:39 +0000 (13:05 +0100)]
Bugfix Dmaap responses without body

Change-Id: If6887e0ad57a45b14c273ee4bb78e342cc41f183
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoAdded GET policy_ids in the agent NBI 45/2845/3
PatrikBuhr [Wed, 18 Mar 2020 12:38:58 +0000 (13:38 +0100)]
Added GET policy_ids in the agent NBI

Change-Id: I474982d9b2052f23a69247afaceb4772972057ab
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoRemoved support for the non used A1 1.0 standard 31/2831/3
PatrikBuhr [Tue, 17 Mar 2020 15:15:01 +0000 (16:15 +0100)]
Removed support for the non used A1 1.0 standard

Change-Id: I85001d6c6bcff641db15de0bce27b99008dd74e9
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoImplemented policy get-status 30/2830/3
PatrikBuhr [Tue, 17 Mar 2020 14:30:40 +0000 (15:30 +0100)]
Implemented policy get-status

Implemented policy get-status in the controller and in the adaptor in the
policy agent.

Change-Id: Ibed0013d6116382e428b9244eacec36ab3ec65a4
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoHandling of A1 STD 1.1 83/2783/4
PatrikBuhr [Mon, 16 Mar 2020 11:33:29 +0000 (12:33 +0100)]
Handling of A1 STD 1.1

Handling of Http status and bodies from A1 error responses so that
the information is passed nack to the agent NBI.

Change-Id: Ia3e571b37d4a425410f21168d04f5ef442d14607
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMerge "Fix wrong Sonar suppressions"
Henrik Andersson [Tue, 17 Mar 2020 14:21:31 +0000 (14:21 +0000)]
Merge "Fix wrong Sonar suppressions"

4 years agoMerge "Report code coverage of A1 controller to Sonar"
Henrik Andersson [Tue, 17 Mar 2020 14:21:01 +0000 (14:21 +0000)]
Merge "Report code coverage of A1 controller to Sonar"

4 years agoFix wrong Sonar suppressions 25/2825/1
elinuxhenrik [Tue, 17 Mar 2020 13:50:12 +0000 (14:50 +0100)]
Fix wrong Sonar suppressions

Change-Id: I91c4c23e8ac9f64c4e1619ac3525ca5ae3ba5f35
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoReport code coverage of A1 controller to Sonar 23/2823/1
RehanRaza [Tue, 17 Mar 2020 13:07:54 +0000 (14:07 +0100)]
Report code coverage of A1 controller to Sonar

Change-Id: I20281a64df0e242e973fa3e0ac17d5e955a4de8b
Issue-ID: NONRTRIC-116
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Remove code smell and bug"
Henrik Andersson [Tue, 17 Mar 2020 12:50:26 +0000 (12:50 +0000)]
Merge "Remove code smell and bug"

4 years agoRemove code smell and bug 19/2819/1
elinuxhenrik [Tue, 17 Mar 2020 09:21:39 +0000 (10:21 +0100)]
Remove code smell and bug

Change-Id: I77e57ed585d5d9425d8fe8e4589a25cf7b61adf3
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove sonar code smells from sdnc-a1-controller 17/2817/1
RehanRaza [Mon, 16 Mar 2020 15:26:25 +0000 (16:26 +0100)]
Remove sonar code smells from sdnc-a1-controller

Change-Id: I85344bad6ac1a9205320d5b158040c5d94e56ea2
Issue-ID: NONRTRIC-142
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoFix sonar bugs in sdnc-a1-controller 04/2804/1
RehanRaza [Mon, 16 Mar 2020 12:43:41 +0000 (13:43 +0100)]
Fix sonar bugs in sdnc-a1-controller

Change-Id: I3fde295b25c2b7b9534422424221f29a0e03290d
Issue-ID: NONRTRIC-116
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoFix Sonar security vulnerabilities 77/2777/1
RehanRaza [Fri, 13 Mar 2020 15:51:37 +0000 (16:51 +0100)]
Fix Sonar security vulnerabilities

Change-Id: I33e94fe2701508216c2389db75e826f2cc705f15
Issue-ID: NONRTRIC-141
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Add sdnc-a1-controller in build process"
Henrik Andersson [Thu, 12 Mar 2020 15:03:23 +0000 (15:03 +0000)]
Merge "Add sdnc-a1-controller in build process"

4 years agoAdd sdnc-a1-controller in build process 42/2742/3
RehanRaza [Tue, 10 Mar 2020 12:57:37 +0000 (13:57 +0100)]
Add sdnc-a1-controller in build process

Change-Id: I9cfbed450e4a6550878d93ed3701d56dec52ae8c
Issue-ID: NONRTRIC-116
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Added a test for service supervision"
Henrik Andersson [Thu, 12 Mar 2020 10:29:56 +0000 (10:29 +0000)]
Merge "Added a test for service supervision"

4 years agoMerge "improve dockerized test"
Henrik Andersson [Thu, 12 Mar 2020 10:29:41 +0000 (10:29 +0000)]
Merge "improve dockerized test"

4 years agoAdded a test for service supervision 50/2750/5
PatrikBuhr [Wed, 11 Mar 2020 13:15:50 +0000 (14:15 +0100)]
Added a test for service supervision

Added that when service supervision deletes policices, it will
grant a shared lock of the RIC (which it must).

PUT and DELETE a policy will trigger keep alive of the owning service

Change-Id: I6770694a5dbff3b8d635a9997265292ad3c0f524
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMerge "Fix security vulnerability"
Henrik Andersson [Wed, 11 Mar 2020 15:52:00 +0000 (15:52 +0000)]
Merge "Fix security vulnerability"

4 years agoimprove dockerized test 57/2757/1
YongchaoWu [Thu, 5 Mar 2020 11:44:08 +0000 (12:44 +0100)]
improve dockerized test

Include dashbaord and SDNC A1 Adapter bringing up in the test start.

Issue-ID: NONRTRIC-148
Signed-off-by: YongchaoWu <yongchao.wu@est.tech>
Change-Id: I5f8a94192dde0a5d97113df9173c5f9a9e76024c

4 years agoFix security vulnerability 56/2756/1
RehanRaza [Wed, 11 Mar 2020 15:24:21 +0000 (16:24 +0100)]
Fix security vulnerability

Change-Id: I7e07370f8a3f5ae4f20f535f805c672c43047aa8
Issue-ID: NONRTRIC-141
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoRemove Security issue and bug and fix copyrights 54/2754/2
elinuxhenrik [Wed, 11 Mar 2020 14:28:46 +0000 (15:28 +0100)]
Remove Security issue and bug and fix copyrights

Change-Id: I3190a0fbca8df4e861edd82b1c900e19c1b6c24a
Issue-ID: NONRTRIC-141
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoAdd tests for RefreshConfigTask 38/2738/3
elinuxhenrik [Tue, 10 Mar 2020 17:45:54 +0000 (18:45 +0100)]
Add tests for RefreshConfigTask

Change-Id: I201e4a27415bfc62a9492fbbe744a4f469f6e963
Issue-ID: NONRTRIC-139
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove new code smells 10/2710/5
elinuxhenrik [Mon, 9 Mar 2020 14:58:27 +0000 (15:58 +0100)]
Remove new code smells

Change-Id: Ifec818702cca925d7e687af155d2253703faf27a
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "REST error codes"
Henrik Andersson [Wed, 11 Mar 2020 12:05:01 +0000 (12:05 +0000)]
Merge "REST error codes"

4 years agoMerge "Rename Onap A1 client"
Henrik Andersson [Wed, 11 Mar 2020 11:41:36 +0000 (11:41 +0000)]
Merge "Rename Onap A1 client"

4 years agoMerge "Near-RT RIC simulator updates"
Henrik Andersson [Wed, 11 Mar 2020 11:38:39 +0000 (11:38 +0000)]
Merge "Near-RT RIC simulator updates"

4 years agoMerge "Add unit test for portal in dashboard"
Henrik Andersson [Wed, 11 Mar 2020 11:38:06 +0000 (11:38 +0000)]
Merge "Add unit test for portal in dashboard"

4 years agoNear-RT RIC simulator updates 36/2736/1
BjornMagnussonXA [Tue, 10 Mar 2020 15:32:08 +0000 (16:32 +0100)]
Near-RT RIC simulator updates

Added function to read metrics data.

Change-Id: I7f02eab917e3838e50600d6eeaa1027186fdfef9
Issue-ID: NONRTRIC-154
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
4 years agoREST error codes 12/2712/3
PatrikBuhr [Mon, 9 Mar 2020 07:01:52 +0000 (08:01 +0100)]
REST error codes

Added tests of error codes for the policy agent REST API,
and fixed problems found.
Updated swagger generated API spec.
Fixed so that the HttpStatus is propagated back in Dmaap responses
also for successful cases.

This commit resolves NONRTRIC-155 and NONRTRIC-156

Change-Id: I061c9b22787916c196b2ba1da552413e05d244ca
Issue-ID: NONRTRIC-155
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoRename Onap A1 client 31/2731/2
RehanRaza [Tue, 10 Mar 2020 09:24:50 +0000 (10:24 +0100)]
Rename Onap A1 client

Change-Id: I651b1f278b92659b5c5a58a972a39c7b603fc716
Issue-ID: NONRTRIC-161
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoAdd unit test for DashboardUserManager 13/2713/1
RehanRaza [Mon, 9 Mar 2020 15:22:58 +0000 (16:22 +0100)]
Add unit test for DashboardUserManager

Change-Id: I6f31bf4525d9837e94d65122f2cd66a508b1fa6e
Issue-ID: NONRTRIC-160
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoAdd unit test for portal in dashboard 11/2711/1
RehanRaza [Mon, 9 Mar 2020 14:59:15 +0000 (15:59 +0100)]
Add unit test for portal in dashboard

Change-Id: Ib906b0fdfb1bf5dfb76340ffe0e674c122310b7d
Issue-ID: NONRTRIC-159
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoAdded JUnit tests for DmaapMessageHandler 04/2704/2
elinuxhenrik [Mon, 9 Mar 2020 08:42:16 +0000 (09:42 +0100)]
Added JUnit tests for DmaapMessageHandler

Change-Id: I1c64731d1921b0f5c13c4c895d45cef5932d4850
Issue-ID: NONRTRIC-131
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoCreate JUnit tests for DmaapMessageConsumer 03/2703/3
elinuxhenrik [Mon, 9 Mar 2020 08:39:49 +0000 (09:39 +0100)]
Create JUnit tests for DmaapMessageConsumer

Change-Id: I987e89c52d5f9eccdcc958dbb571e5d7683d6097
Issue-ID: NONRTRIC-131
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove code smells 02/2702/2
elinuxhenrik [Mon, 9 Mar 2020 08:37:37 +0000 (09:37 +0100)]
Remove code smells

Change-Id: Idb8644ba89de3210ca069f8a92b0d4148b47a61f
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "Adding tests for EnvironmentProcessor"
Henrik Andersson [Mon, 9 Mar 2020 11:47:10 +0000 (11:47 +0000)]
Merge "Adding tests for EnvironmentProcessor"

4 years agoMerge "Add unit tests for PolicyAgentApi in dashboard"
Henrik Andersson [Mon, 9 Mar 2020 09:39:13 +0000 (09:39 +0000)]
Merge "Add unit tests for PolicyAgentApi in dashboard"

4 years agoAdding tests for EnvironmentProcessor 81/2681/3
elinuxhenrik [Thu, 5 Mar 2020 08:32:27 +0000 (09:32 +0100)]
Adding tests for EnvironmentProcessor

Change-Id: I3218a6e9d976855ca11e7c2d25fe424656b245b0
Issue-ID: NONRTRIC-138
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "Simplified startup"
Henrik Andersson [Fri, 6 Mar 2020 13:24:11 +0000 (13:24 +0000)]
Merge "Simplified startup"

4 years agoAdd unit tests for PolicyAgentApi in dashboard 95/2695/1
RehanRaza [Fri, 6 Mar 2020 10:05:36 +0000 (11:05 +0100)]
Add unit tests for PolicyAgentApi in dashboard

Change-Id: I248dc88b0d00563a10c1bb3040b3bc795885cbf7
Issue-ID: NONRTRIC-153
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoSimplified startup 94/2694/4
PatrikBuhr [Fri, 6 Mar 2020 07:33:57 +0000 (08:33 +0100)]
Simplified startup

Simplified configuration handling.
Fixed sonar issues.

Change-Id: I34873e3a8e8a276df9316cae3750f9090d3ba3cb
Issue-ID: NONRTRIC-149
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoRemove new code smells 80/2680/1
elinuxhenrik [Thu, 5 Mar 2020 07:43:04 +0000 (08:43 +0100)]
Remove new code smells

Remove code smells introduced in the latest commits.

Change-Id: I4b75545a2498364c44c30a8a3b13d38db91d18a5
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove policies from repository when Ric is removed from configuration 74/2674/1
elinuxhenrik [Wed, 4 Mar 2020 15:53:19 +0000 (16:53 +0100)]
Remove policies from repository when Ric is removed from configuration

When a Ric is removed from the configuration, all policies created for
that Ric must be removed from the repository to keep the consistency of
the repository.

Change-Id: I7f400de008a16e02457bb055f2fdb67b978d5658
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoAdd tests for StartupService 71/2671/3
elinuxhenrik [Wed, 4 Mar 2020 14:04:32 +0000 (15:04 +0100)]
Add tests for StartupService

Change-Id: I686d0acb2a0ca976923c6cfeed1502ebae52cb80
Issue-ID: NONRTRIC-140
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMake naming consistent regarding synchronization 70/2670/2
elinuxhenrik [Wed, 4 Mar 2020 12:22:22 +0000 (13:22 +0100)]
Make naming consistent regarding synchronization

When the class RecoveryTask was renamed to SynchronizationTask some
variables where not correctly named. This is corrected in this commit.

Also contains some minor formatting changes to align to the formatting standard.

Change-Id: I10a0d9bcf02c1b342da142f5669469875328d9a6
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove code smells in Policy Agent 64/2664/3
elinuxhenrik [Wed, 4 Mar 2020 08:13:50 +0000 (09:13 +0100)]
Remove code smells in Policy Agent

Change-Id: I3885bd0e1c7940c2929f8890705f0d3e31c89470
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoFixed concurrency problems 65/2665/3
PatrikBuhr [Wed, 4 Mar 2020 08:01:51 +0000 (09:01 +0100)]
Fixed concurrency problems

The resource locking is enabled and reactive.

Change-Id: Ibf83dddaa41cde9224ea52dbfda9dcbc9e4361a6
Issue-ID: NONRTRIC-107
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoBugfix, no response sent to Dmaap for PUT 66/2666/1
PatrikBuhr [Wed, 4 Mar 2020 08:37:29 +0000 (09:37 +0100)]
Bugfix, no response sent to Dmaap for PUT

The asynch Web client by default emits Mono.empty() when there is no body,
now an empty string is returned instead.

Change-Id: I8963a93bd41c7654cddd9e01700883d472c0d3f0
Issue-ID: NONRTRIC-107
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoMerge "Remove code smells in dashboard"
Henrik Andersson [Wed, 4 Mar 2020 07:52:01 +0000 (07:52 +0000)]
Merge "Remove code smells in dashboard"

4 years agoMerge "Fixed concurrency problems"
Henrik Andersson [Wed, 4 Mar 2020 07:32:30 +0000 (07:32 +0000)]
Merge "Fixed concurrency problems"

4 years agoRemove code smells in dashboard 39/2639/4
elinuxhenrik [Tue, 3 Mar 2020 16:00:20 +0000 (17:00 +0100)]
Remove code smells in dashboard

Change-Id: I0478cbf0a45aea9a646fe028838f323e425effaf
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "Print the short description of exception in OscA1Client"
Henrik Andersson [Tue, 3 Mar 2020 13:43:37 +0000 (13:43 +0000)]
Merge "Print the short description of exception in OscA1Client"

4 years agoMerge "Changed the Dmaap message payload"
Henrik Andersson [Tue, 3 Mar 2020 13:43:23 +0000 (13:43 +0000)]
Merge "Changed the Dmaap message payload"

4 years agoFixed concurrency problems 25/2625/4
PatrikBuhr [Mon, 2 Mar 2020 07:30:16 +0000 (08:30 +0100)]
Fixed concurrency problems

Added fixes of concurrecy problems, when consistency check is done, policies cannot be created/deleted
Added a unit test that tests concurrent execution
Improved trace
PUT policy, return HTTP status CREATE for new policy (OK for updated)

Improved the recovery handling and the consistency monitoring

Change-Id: I2504fce35dc6e3371c7d4cf389528ce75eda442d
Issue-ID: NONRTRIC-107
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoPrint the short description of exception in OscA1Client 34/2634/3
RehanRaza [Tue, 3 Mar 2020 12:36:45 +0000 (13:36 +0100)]
Print the short description of exception in OscA1Client

Avoid garbage from running the unit-tests which cause exceptions.
Now, it prints just one line:
ERROR org.oransc.policyagent.clients.OscA1Client - Unexpected response for policy type: {"type":"type1"}, exception: org.json.JSONException: JSONObject["create_schema"] not found.

Change-Id: I6c5d0037b9d068a1fd069d521af1070a8ec55c54
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Remove unused exceptions from dashboard backend"
Henrik Andersson [Tue, 3 Mar 2020 09:42:44 +0000 (09:42 +0000)]
Merge "Remove unused exceptions from dashboard backend"

4 years agoChanged the Dmaap message payload 26/2626/3
PatrikBuhr [Mon, 2 Mar 2020 11:18:56 +0000 (12:18 +0100)]
Changed the Dmaap message payload

The Dmaap message payload is changed from String to a json object.

Change-Id: I1e928eca6c7de6105673aa53da09c1271de80764
Issue-ID: NONRTRIC-107
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
4 years agoRemove unused exceptions from dashboard backend 28/2628/1
RehanRaza [Mon, 2 Mar 2020 14:39:16 +0000 (15:39 +0100)]
Remove unused exceptions from dashboard backend

Change-Id: Id6000c262bb7d21d46dc7b33b4083a12d5ad84e3
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Junit tests for ServiceException"
Henrik Andersson [Mon, 2 Mar 2020 13:45:07 +0000 (13:45 +0000)]
Merge "Junit tests for ServiceException"

4 years agoMerge "Fix code error simulator"
Henrik Andersson [Mon, 2 Mar 2020 13:44:49 +0000 (13:44 +0000)]
Merge "Fix code error simulator"

4 years agoJunit tests for ServiceException 67/2567/3
maximesson [Mon, 24 Feb 2020 16:27:32 +0000 (17:27 +0100)]
Junit tests for ServiceException

Change-Id: I2cfd6f749413ed1a52169e66ec5772d009e63f23
Issue-ID: NONRTRIC-132
Signed-off-by: maximesson <maxime.bonneau@est.tech>
4 years agoFix year in licenses 85/2585/3
elinuxhenrik [Wed, 26 Feb 2020 14:37:17 +0000 (15:37 +0100)]
Fix year in licenses

Change-Id: I402c8209bdd794cd8f796fb4c8342ccd41a22e60
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove code smells and increase code coverage 60/2560/6
elinuxhenrik [Mon, 24 Feb 2020 08:17:11 +0000 (09:17 +0100)]
Remove code smells and increase code coverage

Added new test cases.

Change-Id: Ie0e726d7ff6ea185282010f66e842b973b4718c2
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove lambda code smells from policyagent/clients 88/2488/9
elinuxhenrik [Wed, 12 Feb 2020 15:46:51 +0000 (16:46 +0100)]
Remove lambda code smells from policyagent/clients

Change-Id: I9f4ef0041989d6565b0982e35e3521968e7d59fc
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoFix code error simulator 63/2563/3
maximesson [Mon, 24 Feb 2020 16:15:50 +0000 (17:15 +0100)]
Fix code error simulator

Change-Id: Ie94ed551e68cc6bb764aaaccb0ed824554392b91
Issue-ID: NONRTRIC-78
Signed-off-by: maximesson <maxime.bonneau@est.tech>
4 years agoRemove code smells 85/2485/7
elinuxhenrik [Wed, 12 Feb 2020 14:04:50 +0000 (15:04 +0100)]
Remove code smells

Removed code smells in Application, ApplicationConfig,
ApplicationConfigParser, RicConfig, Ric, and Rics.

Change-Id: I8006ee0050335aff92a3382f1998e0c2e1c8e6d3
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoRemove code smells from policyagent/clients 73/2473/10
elinuxhenrik [Tue, 11 Feb 2020 15:55:33 +0000 (16:55 +0100)]
Remove code smells from policyagent/clients

Change-Id: I7d5ffdb75573f153102f240352820fd5fcd9e795
Issue-ID: NONRTRIC-142
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
4 years agoMerge "Add unit test for StdA1Client"
Henrik Andersson [Wed, 26 Feb 2020 09:10:14 +0000 (09:10 +0000)]
Merge "Add unit test for StdA1Client"

4 years agoMerge "Add unit tests for SdnrOnapA1Client"
Henrik Andersson [Wed, 26 Feb 2020 07:19:59 +0000 (07:19 +0000)]
Merge "Add unit tests for SdnrOnapA1Client"

4 years agoAdd unit tests for SdnrOnapA1Client 55/2555/5
RehanRaza [Mon, 24 Feb 2020 08:22:07 +0000 (09:22 +0100)]
Add unit tests for SdnrOnapA1Client

Change-Id: If0e7859b1c9f109df2a19a57e33dea847d9fe1b2
Issue-ID: NONRTRIC-127
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoAdd unit test for StdA1Client 57/2557/3
RehanRaza [Mon, 24 Feb 2020 08:32:15 +0000 (09:32 +0100)]
Add unit test for StdA1Client

Change-Id: I96c3651bae52d724bce60d7bab9042e07b7c7f1a
Issue-ID: NONRTRIC-128
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoAdd unit tests for OscA1Client 56/2556/2
RehanRaza [Mon, 24 Feb 2020 08:27:26 +0000 (09:27 +0100)]
Add unit tests for OscA1Client

Change-Id: I3141ae1a92a263f019fbe68f0319429aac6827e7
Issue-ID: NONRTRIC-125
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Add unit tests for SdncOscA1Client"
Henrik Andersson [Tue, 25 Feb 2020 09:26:33 +0000 (09:26 +0000)]
Merge "Add unit tests for SdncOscA1Client"

4 years agoAdd unit tests for SdncOscA1Client 86/2486/3
RehanRaza [Wed, 12 Feb 2020 14:13:49 +0000 (15:13 +0100)]
Add unit tests for SdncOscA1Client

Change-Id: Icb62bdf45cea91cbf609647c3953304edb7296d6
Issue-ID: NONRTRIC-126
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
4 years agoMerge "Add unit tests for AsyncRestClient"
Henrik Andersson [Tue, 25 Feb 2020 08:26:37 +0000 (08:26 +0000)]
Merge "Add unit tests for AsyncRestClient"