cps.git
2 months agoAdd container yaml for CPS 3.4.4 58/137358/1
danielhanrahan [Fri, 23 Feb 2024 14:52:06 +0000 (14:52 +0000)]
Add container yaml for CPS 3.4.4

- added container yaml to release the docker images for CPS 3.4.4

Issue-ID: CPS-2120
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I9786dd5a3fc4d1597e24304236c427c0658c44b1

2 months agoAdd maven stage yaml for CPS 3.4.4 57/137357/1
danielhanrahan [Fri, 23 Feb 2024 14:06:20 +0000 (14:06 +0000)]
Add maven stage yaml for CPS 3.4.4

- maven stage yaml to release 3.4.4

Issue-ID: CPS-2120
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iad423641f9fb214d195a6376d5c0496dff52bc79

2 months agoUpdate release notes for CPS 3.4.4 56/137356/1
danielhanrahan [Fri, 23 Feb 2024 13:27:37 +0000 (13:27 +0000)]
Update release notes for CPS 3.4.4

- updated release notes for 3.4.4
- no openapi changes

Issue-ID: CPS-2120
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I1634ed15b058e50c205dcf15ad59c21cce0e4972

2 months agoMerge "CmNotificationSubscription event from Dmi Plugin"
Lee Anjella Macabuhay [Fri, 23 Feb 2024 11:09:00 +0000 (11:09 +0000)]
Merge "CmNotificationSubscription event from Dmi Plugin"

2 months agoError reporting when registering cm handle with alternate id 39/137239/9
halil.cakal [Mon, 19 Feb 2024 21:37:25 +0000 (21:37 +0000)]
Error reporting when registering cm handle with alternate id

- refactored registration code all use cases; 1 method for each action
- introduce new cps error code; 111

- TODO: error reporting registration, UPDATE

Issue-ID: CPS-2100

Change-Id: I5049777ee4e08fdc94aa1db09e668e952ed8e1c3
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoMerge "NCMP to DMI CmSubscription Event"
Lee Anjella Macabuhay [Fri, 23 Feb 2024 10:24:09 +0000 (10:24 +0000)]
Merge "NCMP to DMI CmSubscription Event"

2 months agoMerge "NCMP to Client Cm Subscription Event"
Lee Anjella Macabuhay [Thu, 22 Feb 2024 15:47:20 +0000 (15:47 +0000)]
Merge "NCMP to Client Cm Subscription Event"

2 months agoIntroduce class for Module Delta during module sync 40/137340/4
danielhanrahan [Thu, 22 Feb 2024 10:20:17 +0000 (10:20 +0000)]
Introduce class for Module Delta during module sync

Removed ImmutableTriple<String, Map<String, String>, Collection<ModuleReference>>
and replaced it with a ModuleDelta class to hold results.

Split syncAndCreateOrUpgradeSchemaSetAndAnchor into methods
syncAndCreateSchemaSetAndAnchor and syncAndUpgradeSchemaSet

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I95462ab55dcae7d98b9e2671fc278c4ded45f3fc

2 months agoImprove performance of moduleSetTag lookup 47/137347/2
danielhanrahan [Wed, 21 Feb 2024 16:37:19 +0000 (16:37 +0000)]
Improve performance of moduleSetTag lookup

- Using absolute cps-path /dmi-registry/cm-handles is faster
  than descendant cps-path //cm-handles due to CPS-2087.
- Converting DataNodes to YangModelCmHandle allows checking if
  the handles are READY without needing to send additional DB
  queries via cmHandleQueries::cmHandleHasState.

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ied7e884b0f779f394854603a7f8b186d09eb5be8

2 months agoMerge "Refactor YangDataConverter.convertCmHandleToYangModel"
Sourabh Sourabh [Thu, 22 Feb 2024 10:51:18 +0000 (10:51 +0000)]
Merge "Refactor YangDataConverter.convertCmHandleToYangModel"

2 months agoRefactor check for no new modules in Module Sync 46/137346/1
danielhanrahan [Wed, 21 Feb 2024 19:50:32 +0000 (19:50 +0000)]
Refactor check for no new modules in Module Sync

This change moves the check for no new module references into
DmiModelOperations::getNewYangResourcesFromDmi
(The method is only used by ModuleSyncService)

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I3cc65e7a327148ebe01b98b61dc64b70872e2cf5

2 months agoRefactor YangDataConverter.convertCmHandleToYangModel 45/137345/1
danielhanrahan [Wed, 21 Feb 2024 17:31:44 +0000 (17:31 +0000)]
Refactor YangDataConverter.convertCmHandleToYangModel

This method redundantly takes cmHandleId as a parameter, even though
the DataNode representing a CM-handle is guaranteed to have the ID
in a leaf called 'id'.

Issue-ID: CPS-245
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ib10097b6e13f7188fd933d6f6913110ec664273e

2 months agoImprove unit test for regsitration, upgrade 39/137339/2
ToineSiebelink [Wed, 21 Feb 2024 15:42:45 +0000 (15:42 +0000)]
Improve unit test for regsitration, upgrade

- verify schema set is created
- add test case for upgarde to same tag

Issue-ID: CPS-2027
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Id853f477d2a90a86d13828a27b9269c62e1d9462

2 months agoMerge "adding isUniqueSubscriptionId method"
Priyank Maheshwari [Wed, 21 Feb 2024 15:10:02 +0000 (15:10 +0000)]
Merge "adding isUniqueSubscriptionId method"

2 months agoUpgrade yang modules using module set tag 52/137252/2
danielhanrahan [Wed, 21 Feb 2024 12:38:05 +0000 (12:38 +0000)]
Upgrade yang modules using module set tag

- New algorithm is implemented as per the pseudo code -> https://wiki.onap.org/display/DW/CPS-1733%3A+Upgrade+YANG+Schema-Set+for+CM+Handle+Using+a+Module+Set+Tag

Issue-ID: CPS-2027
Change-Id: I78fc1c8f927de1a1b814c3c1c62351dda58f2139
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
2 months agoNCMP to Client Cm Subscription Event 33/137333/1
mpriyank [Wed, 21 Feb 2024 12:21:18 +0000 (12:21 +0000)]
NCMP to Client Cm Subscription Event

- CmNotificationSubscriptionNcmpOut event to inform the client about the
  subscription he requested
- Testware for the same
- Code to provide the data to this producer will be part of other
  patches

Issue-ID: CPS-2108
Change-Id: Ic302e798a20da54dd3c56d2cb792b800446cc2d3
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoFix handling of blank moduleSetTag 28/137328/1
danielhanrahan [Wed, 21 Feb 2024 10:02:19 +0000 (10:02 +0000)]
Fix handling of blank moduleSetTag

Handling of blank moduleSetTag is very inconsistent.
Sometimes it will be returned as null, '' or 'not-specified'.
Specifically in the case of MODULE_UPGRADE_FAILED, on the retry,
a blank moduleSetTag will be returned as 'not-specified', leading
to incorrect upgrade.

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I3f4290dc5659c386c7b2b924325da2560d00d73b

2 months agoAdd moduleSetTag when getting a CM handle 86/137286/3
danielhanrahan [Mon, 19 Feb 2024 18:39:37 +0000 (18:39 +0000)]
Add moduleSetTag when getting a CM handle

Test changes:
- Check moduleSetTag (and alternateId) in unit test of get CM handle.
- Verify moduleSetTag is updated in tests of CM handle upgrade.

Code changes:
- Set moduleSetTag when converting a YangModelCmHandle to
  NcmpServiceCmHandle.
- Set moduleSetTag in YangModelCmHandle copy constructor.
- Minor refactor using StringUtils::isBlank.

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6a9a92aa58d15c6ecf5a6bb21aa5c9d6ec8dc817

2 months agoRemove alternate ID caches 94/137294/3
leventecsanyi [Tue, 20 Feb 2024 12:15:11 +0000 (13:15 +0100)]
Remove alternate ID caches

    - removed alternate id cache related classes and updated deployment.rst

Issue-ID: CPS-2107
Change-Id: I567af7b2f44107fceffaef370205b00a5cf79522
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoCmNotificationSubscription event from Dmi Plugin 23/137323/1
mpriyank [Tue, 20 Feb 2024 13:32:23 +0000 (13:32 +0000)]
CmNotificationSubscription event from Dmi Plugin

- Added infrastructure related code to read event from the dmi plugin
- Just consuming and reading the message.
- Core logic to introduced to be part of subsequent patches

Issue-ID: CPS-2106
Change-Id: Ic58f4f80b3dded32df95daecac42315fa9212f58
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "Use DB for checking Alternate IDs"
Toine Siebelink [Mon, 19 Feb 2024 17:29:57 +0000 (17:29 +0000)]
Merge "Use DB for checking Alternate IDs"

2 months agoadding isUniqueSubscriptionId method 82/137282/1
emaclee [Mon, 19 Feb 2024 12:56:46 +0000 (12:56 +0000)]
adding isUniqueSubscriptionId method

Issue-ID: CPS-2044
Change-Id: I26b209ead80add7e60b4de9257a9f5c326ddea6f
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2 months agoNCMP to DMI CmSubscription Event 79/137279/2
mpriyank [Mon, 19 Feb 2024 11:30:01 +0000 (11:30 +0000)]
NCMP to DMI CmSubscription Event

- Ncmp to have a producer which converts
  CmNotificationSubscriptionDmiInEvent to Cloud event and then publishes
  it
- For now , using the old topic prefix as topic name. Once topic names
  are finalized then they can be configured
- Testware for the publishing code

Issue-ID: CPS-2103
Change-Id: I83b6ce5b6647e92313839b25492cb076e528ce3e
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoTests of CM-handle module upgrade & moduleSetTag 76/137276/2
danielhanrahan [Mon, 19 Feb 2024 09:55:37 +0000 (09:55 +0000)]
Tests of CM-handle module upgrade & moduleSetTag

Integration tests covering scenarios of the creation and upgrade of
CM-handles with:
- no moduleSetTag
- new moduleSetTag
- existing moduleSetTag
Failing tests are marked @Ignore.

Issue-ID: CPS-2102
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Id5567e08a13d8c26dc7b6458f0af8449bef6f082

2 months agoUse DB for checking Alternate IDs 11/137211/8
halil.cakal [Mon, 12 Feb 2024 11:41:00 +0000 (11:41 +0000)]
Use DB for checking Alternate IDs

- do NOT use hazelcast cache
- introduced AlternateIcChecker
- use checks during Inital registration

- TODO: remvoe Hazalcast Cache (once perf test are OK)
- TODO: use checks during UPDATE registration
- TODO: error reporting during registration

Issue-Id: CPS-2049

Change-Id: I0adcac52a7a49e26301758eafc4684152ddfcaf5
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoAdd NCMP to integration-test module 14/137214/4
danielhanrahan [Tue, 13 Feb 2024 11:12:29 +0000 (11:12 +0000)]
Add NCMP to integration-test module

- Add NCMP to integration test base class
- Use MockRestServiceServer to mock DMI responses in groovy tests
- Added tests for CM-handle registration to READY and LOCKED states
- Add test of CM-handle deregistration

Issue-ID: CPS-2033
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I89f9f8aab2bba9d4eb5b3136a2feb238e7cf1b06

2 months agoMerge "Mapper to form event for DMI Plugin"
Lee Anjella Macabuhay [Wed, 14 Feb 2024 14:26:52 +0000 (14:26 +0000)]
Merge "Mapper to form event for DMI Plugin"

2 months agoMerge "Clean up of integration-test base classes"
Lee Anjella Macabuhay [Wed, 14 Feb 2024 11:48:45 +0000 (11:48 +0000)]
Merge "Clean up of integration-test base classes"

2 months agoMerge "Faster absolute xpath query using parent path lookup"
Lee Anjella Macabuhay [Wed, 14 Feb 2024 11:30:37 +0000 (11:30 +0000)]
Merge "Faster absolute xpath query using parent path lookup"

2 months agoClean up of integration-test base classes 12/137212/4
danielhanrahan [Tue, 13 Feb 2024 11:12:29 +0000 (11:12 +0000)]
Clean up of integration-test base classes

- Remove TestConfig and instead use auto-configuration
- Add needed application.yml config
- Refactor helper methods for creating JSON

Issue-ID: CPS-2090
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4f618a1d4a83e9c75e468928c257b817d449c22f

2 months agoMerge "Remove liquibase test changelog"
Lee Anjella Macabuhay [Wed, 14 Feb 2024 11:13:01 +0000 (11:13 +0000)]
Merge "Remove liquibase test changelog"

2 months agoFaster absolute xpath query using parent path lookup 13/137213/3
danielhanrahan [Mon, 20 Nov 2023 16:37:46 +0000 (16:37 +0000)]
Faster absolute xpath query using parent path lookup

Issue-ID: CPS-2087
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I62b452f34f08a32a6d80671c7af560fbceec1285

2 months agoMerge "Update release notes for Extending Module API retrieval"
Toine Siebelink [Wed, 14 Feb 2024 08:43:58 +0000 (08:43 +0000)]
Merge "Update release notes for Extending Module API retrieval"

2 months agoRemove liquibase test changelog 09/137209/2
danielhanrahan [Tue, 13 Feb 2024 09:53:07 +0000 (09:53 +0000)]
Remove liquibase test changelog

Complete liquibase changelog takes under 1 second to run,
so having separate changelog for integration tests offers
no benefit.

Issue-ID: CPS-2090
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ib0e928f35d401b91c23dfcb5dc82c77778a044dc

2 months agoMapper to form event for DMI Plugin 40/137140/5
mpriyank [Tue, 6 Feb 2024 13:39:29 +0000 (13:39 +0000)]
Mapper to form event for DMI Plugin

- cmSubscriptionPredicate to CmNotificationSubscriptionDmiInEvent mapper code and
  testware.
- Based on the delta we find , we will be sending the events to the dmi
  plugins. Finding delta code will be separate patchset

Issue-ID: CPS-2060
Change-Id: If1e15679b72c39352e3cf166651226df7e207ce0
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoUpdate release notes for Extending Module API retrieval 87/137187/2
halil.cakal [Thu, 8 Feb 2024 12:15:48 +0000 (12:15 +0000)]
Update release notes for Extending Module API retrieval

- Add the user story: CPS-1135 for CPS version 3.4.3

Issue-ID: CPS-1135

Change-Id: I9e9cdc5f648d38eb4dbd76cc98a884fed03a28b2
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoPrefix with CmNotificationSubscription refactoring 10/137210/1
mpriyank [Tue, 13 Feb 2024 11:50:23 +0000 (11:50 +0000)]
Prefix with CmNotificationSubscription refactoring

- event schemas are now suffixed with CmNotificationSubscription
- testware updated appropriately

Issue-ID: CPS-2091
Change-Id: I9d0c4bdfaf7ea94812d35b071824d0fb083aa845
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoMerge "Update cm-data-subscriptions model"
Lee Anjella Macabuhay [Tue, 13 Feb 2024 10:54:02 +0000 (10:54 +0000)]
Merge "Update cm-data-subscriptions model"

2 months agoMerge "Add a configurable delay to the DMI stub"
Sourabh Sourabh [Tue, 13 Feb 2024 10:08:11 +0000 (10:08 +0000)]
Merge "Add a configurable delay to the DMI stub"

2 months agoMerge "Fix test failure by ordering leaf-lists"
Priyank Maheshwari [Tue, 13 Feb 2024 09:47:35 +0000 (09:47 +0000)]
Merge "Fix test failure by ordering leaf-lists"

2 months agoMerge "Create schemas for notification service in cps-core"
Priyank Maheshwari [Tue, 13 Feb 2024 09:24:00 +0000 (09:24 +0000)]
Merge "Create schemas for notification service in cps-core"

2 months agoUpdate cm-data-subscriptions model 05/137205/3
mpriyank [Mon, 12 Feb 2024 16:16:36 +0000 (16:16 +0000)]
Update cm-data-subscriptions model

- rename leaf-list subscribers to subscriptionIds
- code using the same also updated
- not creating a new version of model as nobody is using it at the
  moment

Issue-ID: CPS-2088
Change-Id: I43d679047bdfc665b56f262757acc4bbaba2733f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoCmSubscription minor code refactoring 78/137178/10
mpriyank [Wed, 7 Feb 2024 14:55:03 +0000 (14:55 +0000)]
CmSubscription minor code refactoring

- As per discusstion , refactoring the naming of the classes and caches
- Combining the validation service with CmSubscriptionPersistence
  service
- removed dmiCmNotificationScopeFilter class and the attributes are part
  of Predicates only

Issue-ID: CPS-2078
Change-Id: Ic2b3ee28a150f3ae6e0911e88296f01e22604ef5
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoFix test failure by ordering leaf-lists 91/137191/8
danielhanrahan [Thu, 8 Feb 2024 15:04:05 +0000 (15:04 +0000)]
Fix test failure by ordering leaf-lists

YANG specifies two ways that leaf-lists can be ordered:
- ordered-by user: original order in JSON is preserved
- ordered-by system (default): it is up to the system how to order

For leaf-lists to preserve same order as the JSON, the Yang module
must specify 'ordered-by user'. To ensure consistent behaviour even
when system ordering is used, the leaf-list is sorted during parsing.

- Add 'ordered-by user' to authors field in bookstore.yang
- Sort leaf-list during parsing when using 'ordered-by system'
- Add new tests to verify ordering

Issue-ID: CPS-2057
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6ab688ec2fa4a22182e853d1a8b26642f278c40a

2 months agoInclude integration test results in Jacoco 02/137202/3
danielhanrahan [Fri, 9 Feb 2024 17:40:18 +0000 (17:40 +0000)]
Include integration test results in Jacoco

integration-test module is not recording code coverage due to
incorrectly overriding the maven surefire config from parent pom.

Issue-ID: CPS-2086
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I774c64acedca546f5c01403597bd9f5010de73d2

2 months agoAdd a configurable delay to the DMI stub 96/137196/3
JvD_Ericsson [Wed, 31 Jan 2024 13:47:28 +0000 (13:47 +0000)]
Add a configurable delay to the DMI stub

Added realistic default delay to application.yaml
Added realistic default delay to docker-compose.yml

Issue-ID: CPS-2053
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I756774e9538926aa341f1338fcb6882951ce3e69

2 months agoCreate schemas for notification service in cps-core 07/137007/3
rajesh.kumar [Mon, 5 Feb 2024 13:37:11 +0000 (19:07 +0530)]
Create schemas for notification service in cps-core

Add schema files for notification service

Issue-ID:CPS-2066
Change-Id: I56c34400dc73c71b936a51260efd230205abbacd
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
2 months agoMerge "Add CSIT test: Delete CM Handle"
Toine Siebelink [Thu, 8 Feb 2024 16:40:21 +0000 (16:40 +0000)]
Merge "Add CSIT test: Delete CM Handle"

2 months agoMerge "Correct use of Spock setup and cleanup methods (no need for @Before @After)"
Toine Siebelink [Thu, 8 Feb 2024 16:38:37 +0000 (16:38 +0000)]
Merge "Correct use of Spock setup and cleanup methods (no need for @Before @After)"

2 months agoMerge "Revert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error...
Toine Siebelink [Thu, 8 Feb 2024 16:36:52 +0000 (16:36 +0000)]
Merge "Revert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection""

2 months agoRevert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection" 51/137051/1
Levente Csanyi [Thu, 8 Feb 2024 16:12:06 +0000 (16:12 +0000)]
Revert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection"

This reverts commit 67681820f2a7fea88cbc6cbe5b3d483dae506d55.

Reason for revert: does not work

Change-Id: I92c063b59261d25774ee34664d834399c269f0c2
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoMerge "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection"
Toine Siebelink [Thu, 8 Feb 2024 14:08:47 +0000 (14:08 +0000)]
Merge "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection"

2 months agoIntroduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection 11/137111/16
leventecsanyi [Thu, 1 Feb 2024 12:35:52 +0000 (13:35 +0100)]
Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection

    - added business logic to check duplicated ids (create and update scenarios)
    - added new unit test for CmHandleIdMapperSpec
    - added test for the new registration scenario

Issue-ID: CPS-1988
Change-Id: I4bf2e25c87c57938d336f2fe70378b400bab07b0
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoCorrect use of Spock setup and cleanup methods (no need for @Before @After) 82/137182/4
ToineSiebelink [Wed, 7 Feb 2024 17:07:25 +0000 (17:07 +0000)]
Correct use of Spock setup and cleanup methods (no need for @Before @After)

- unfortunately we copied the bad test code for logging about 4 times alraedy...
- simplified setup for WatchdogSchedulingConfigurerSpec

Issue-ID:CPS-465

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I8d068541263272fdf99a6e30d365d85e31726432

2 months agoMerge "CmHandle delete is failing with InternalServerError: Null key is not allowed...
Toine Siebelink [Thu, 8 Feb 2024 10:48:23 +0000 (10:48 +0000)]
Merge "CmHandle delete is failing with InternalServerError: Null key is not allowed - add missing unit test"

2 months agoAdd alternateId to legacy lcm-event 01/137101/4
JvD_Ericsson [Wed, 31 Jan 2024 15:01:31 +0000 (15:01 +0000)]
Add alternateId to legacy lcm-event

Issue-ID: CPS-2039
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I03863e986ea6b847fd7d25e55a24f948ca9a983d

2 months agoMerge "Replace sleep with PollingConditions"
Toine Siebelink [Wed, 7 Feb 2024 17:47:19 +0000 (17:47 +0000)]
Merge "Replace sleep with PollingConditions"

2 months agoMerge "Orphaned modules are removed from the DB before cmhandle removal"
Toine Siebelink [Wed, 7 Feb 2024 17:36:05 +0000 (17:36 +0000)]
Merge "Orphaned modules are removed from the DB before cmhandle removal"

2 months agoBump CPS to 3.4.4-SNAPSHOT 81/137181/1
danielhanrahan [Wed, 7 Feb 2024 16:07:27 +0000 (16:07 +0000)]
Bump CPS to 3.4.4-SNAPSHOT

- bump CPS to 3.4.4-SNAPSHOT and update the docs

Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I1658c83642c8e64903f4bc03b74b6f5726d0227e

2 months agoAdd CSIT test: Delete CM Handle 33/137133/8
halil.cakal [Tue, 6 Feb 2024 11:54:51 +0000 (11:54 +0000)]
Add CSIT test: Delete CM Handle

- Add new csit test to ncmp inventory

Issue-ID: CPS-2073
Change-Id: Ie683f043b2dc1cc742945a4874f19688a8702009
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoAdd container yaml for CPS 3.4.3 80/137180/1
danielhanrahan [Wed, 7 Feb 2024 15:45:06 +0000 (15:45 +0000)]
Add container yaml for CPS 3.4.3

- added container yaml to release the docker images for CPS 3.4.3

Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2e0563a1942d571135ce688c1a339cd4a56f7458

2 months agoAdd maven stage yaml for CPS 3.4.3 79/137179/1
danielhanrahan [Wed, 7 Feb 2024 15:39:22 +0000 (15:39 +0000)]
Add maven stage yaml for CPS 3.4.3

- maven stage yaml to release 3.4.3

Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iaef72394a7ddc64999c95c96aed9873a6487be77

2 months agoUpdate release notes for CPS 3.4.3 76/137176/2
danielhanrahan [Wed, 7 Feb 2024 14:21:58 +0000 (14:21 +0000)]
Update release notes for CPS 3.4.3

- updated release notes for 3.4.3
- updated openapi files

Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2ded94a243dbe93885525d73f90dde3dbbb79696

2 months agoReplace sleep with PollingConditions 10/137110/5
JvD_Ericsson [Thu, 1 Feb 2024 13:55:50 +0000 (13:55 +0000)]
Replace sleep with PollingConditions

Issue-ID: CPS-1950
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I0e23c697ef6b5a134295728f352f2dff7be05a62

2 months agoOrphaned modules are removed from the DB before cmhandle removal 51/137151/1
sourabh_sourabh [Wed, 7 Feb 2024 10:26:33 +0000 (10:26 +0000)]
Orphaned modules are removed from the DB before cmhandle removal

- changed sequence of delete schema set by cascade to remove unused yang
  resource modules at last.

Issue-ID: CPS-2031
Change-Id: Icefc075165231cc4b9b170e04a2d12af645529e9
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoCmHandle delete is failing with InternalServerError: Null key is not allowed - add... 38/137138/2
leventecsanyi [Tue, 6 Feb 2024 12:56:13 +0000 (13:56 +0100)]
CmHandle delete is failing with InternalServerError: Null key is not allowed - add missing unit test

Issue-ID: CPS-2064
Change-Id: If765c25cae8d69796fff219fc39ab27455bfd957
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoMerge "Fix: Documentation for Delta Feature"
Priyank Maheshwari [Wed, 7 Feb 2024 09:27:29 +0000 (09:27 +0000)]
Merge "Fix: Documentation for Delta Feature"

2 months agoMerge "Add integration test for extending API: Get Module Definitions"
Toine Siebelink [Tue, 6 Feb 2024 17:46:51 +0000 (17:46 +0000)]
Merge "Add integration test for extending API: Get Module Definitions"

2 months agoMerge "Add maven classifier to Spring Boot JAR"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 14:35:04 +0000 (14:35 +0000)]
Merge "Add maven classifier to Spring Boot JAR"

2 months agoMerge "[BUG] Retry interval for kafka consumer"
Toine Siebelink [Tue, 6 Feb 2024 11:53:52 +0000 (11:53 +0000)]
Merge "[BUG] Retry interval for kafka consumer"

2 months agoFix: Documentation for Delta Feature 08/137008/1
Arpit Singh [Tue, 6 Feb 2024 11:24:50 +0000 (16:54 +0530)]
Fix: Documentation for Delta Feature

Issue-ID: CPS-2074
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: Ib32b4c75f7eb5402367f69a077c447a3eb062b0b

2 months agoMerge "Limit heap size in Groovy integration tests"
Priyank Maheshwari [Tue, 6 Feb 2024 11:10:25 +0000 (11:10 +0000)]
Merge "Limit heap size in Groovy integration tests"

2 months agoMerge "CmSubscription service layer method #1"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:49:21 +0000 (10:49 +0000)]
Merge "CmSubscription service layer method #1"

2 months agoMerge "CmSubscription validate datastore"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:49:01 +0000 (10:49 +0000)]
Merge "CmSubscription validate datastore"

2 months agoMerge "moduleSetTag and cmhandle upgrade functionalities fix"
Toine Siebelink [Tue, 6 Feb 2024 10:47:40 +0000 (10:47 +0000)]
Merge "moduleSetTag and cmhandle upgrade functionalities fix"

2 months ago[BUG] Retry interval for kafka consumer 31/137131/1
mpriyank [Tue, 6 Feb 2024 10:44:14 +0000 (10:44 +0000)]
[BUG] Retry interval for kafka consumer

- added retry interval of 10 seconds in case of any auth exception when
  consuming kafka messages.
- This fix prevents us from restarting the whole app inorder to restart
  the consumer.

Issue-ID: CPS-2070
Change-Id: Ie02d3cb686741cd92dd006dab1d49c3480d58720
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agomoduleSetTag and cmhandle upgrade functionalities fix 79/136979/11
sourabh_sourabh [Fri, 12 Jan 2024 10:24:42 +0000 (10:24 +0000)]
moduleSetTag and cmhandle upgrade functionalities fix

- Insert only unmapped yang resources
- In case of removed module call dmi plugin service to get modules.

Issue-ID: CPS-2027
Change-Id: Ic1903c20169a913c835a3eee909357daec45f51e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 months agoAdd maven classifier to Spring Boot JAR 04/136604/6
danielhanrahan [Fri, 2 Feb 2024 12:25:47 +0000 (12:25 +0000)]
Add maven classifier to Spring Boot JAR

Use a classifier so that both thin jar and spring boot jar are built.

Issue-ID: CPS-2072
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iafa35992db09abf01b82668cde0eb75f12db7258

2 months agoMerge "Set resource limits of docker-compose containers"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:17:06 +0000 (10:17 +0000)]
Merge "Set resource limits of docker-compose containers"

2 months agoCmHandle delete is failing with InternalServerError: Null key is not allowed 19/137119/2
leventecsanyi [Mon, 5 Feb 2024 10:19:34 +0000 (11:19 +0100)]
CmHandle delete is failing with InternalServerError: Null key is not allowed

   - added null check to alt id removal from cache

Issue-ID: CPS-2064
Change-Id: Iee484b96f505106613ce2d646898ca7ee3873f28
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 months agoCmSubscription service layer method #1 06/137106/3
mpriyank [Thu, 1 Feb 2024 10:57:02 +0000 (10:57 +0000)]
CmSubscription service layer method #1

- adding a service layer method to check if we have an ongoing
  cmsubscription or not.
- test scenario for the same.
- Other service layer method to be introduced in the subsequent patches.

Issue-ID: CPS-2042
Change-Id: I33637138457a0c5d49b80dd4967057bd5bfa69d4
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoDocumentation update for Delta Feature 01/137001/7
Arpit Singh [Tue, 30 Jan 2024 05:21:28 +0000 (10:51 +0530)]
Documentation update for Delta Feature

 - Documantation about Delta Feature
 - Documantation on API 1: Delta between 2 anchors

Issue-ID: CPS-2056
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: I9841ea166f7c57ab6218fefa5b577b4053e39490

2 months agoAdd integration test for extending API: Get Module Definitions 99/137099/3
halil.cakal [Tue, 30 Jan 2024 18:46:45 +0000 (18:46 +0000)]
Add integration test for extending API: Get Module Definitions

- Add new module: bookstore-types
- Import the new module from stores module
- Change integration testwares to comply with
  the new module
- Add new integration test for retrieving module
  definition

Issue-ID: CPS-1135
Change-Id: Ib51c998ceeab50d3fcea212ed55c8ab50ca09257
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoMerge "Extend API: Get Module Definitions"
Sourabh Sourabh [Thu, 1 Feb 2024 16:57:22 +0000 (16:57 +0000)]
Merge "Extend API: Get Module Definitions"

2 months agoExtend API: Get Module Definitions 85/137085/8
halil.cakal [Tue, 23 Jan 2024 10:05:36 +0000 (10:05 +0000)]
Extend API: Get Module Definitions

- add query parameters: module-name and revision to OpenAPI
- extend the controller method to hande the new parameters
- add the new method stack to the service layer
- extend the SQL query to support the new parameters
- add unit and integration testwares

Issue-ID: CPS-1135
Change-Id: I089ad2ad71effb58ac0ba809e9f441d6cdb59c4f
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 months agoCmSubscription validate datastore 08/137108/2
mpriyank [Thu, 1 Feb 2024 12:48:34 +0000 (12:48 +0000)]
CmSubscription validate datastore

- introduced isValidDatastore to check the incoming datastore against
  the valid datastore for this use case.
- Testware added

Issue-ID: CPS-2059
Change-Id: I2602396fe2f404789fc4e0f01850eeba2a75bd21
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 months agoLimit heap size in Groovy integration tests 89/137089/3
danielhanrahan [Mon, 29 Jan 2024 14:28:06 +0000 (14:28 +0000)]
Limit heap size in Groovy integration tests

Configure maven to limit heap size in integration tests to
help detect OutOfMemory errors in groovy tests.
The figure 512MB was chosen as this is 25% of 2GB
(JVM by default uses 25% of total memory for heap).

Issue-ID: CPS-2052
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ie1160f85ba3970e4c43fccee41c2821dc83a8e53

2 months agoSet resource limits of docker-compose containers 88/137088/3
danielhanrahan [Mon, 29 Jan 2024 13:44:13 +0000 (13:44 +0000)]
Set resource limits of docker-compose containers

Without explicit limits, docker will use all available system
resources for containers. In order to better detect/reproduce
performance issues, limits are set to reflect those used in our
production deployment.

Issue-ID: CPS-2048
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I0549b7f9e57dff10c8b09d839ffb4979d66c643e

2 months agoIntroduce Hazelcast for alternateId-cmHandle relation 74/136974/26
leventecsanyi [Thu, 11 Jan 2024 11:53:26 +0000 (12:53 +0100)]
Introduce Hazelcast for alternateId-cmHandle relation

    - added new Hazelcast config
    - added cache initialization in CmHandleIdMapper
    - added unit tests
    - updated deployment.rst
    - refactored cache updating

Issue-ID: CPS-1988
Change-Id: Iea6f884e584bf8cea8612ddbced4329e783c60a5
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
3 months agoFix: Add six as dependency for sphinxcontrib-swaggerdoc 03/137103/1
Jessica Wagantall [Wed, 31 Jan 2024 19:59:37 +0000 (11:59 -0800)]
Fix: Add six as dependency for sphinxcontrib-swaggerdoc

Issue-ID: CIMAN-33
Change-Id: Ic9f1fcc4e220163e20bf61da0511d7479eb4f180
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
3 months agoMerge "Correct datastore names via DatastoreType Enum"
Priyank Maheshwari [Mon, 29 Jan 2024 13:33:05 +0000 (13:33 +0000)]
Merge "Correct datastore names via DatastoreType Enum"

3 months agoCorrect datastore names via DatastoreType Enum 78/137078/2
emaclee [Wed, 24 Jan 2024 18:46:15 +0000 (18:46 +0000)]
Correct datastore names via DatastoreType Enum

- Use existing DatastoreType enum in defining datastore name

Issue-ID: CPS-2046
Change-Id: I6f2f77c96b239546f7141267c0c01edfc599b445
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
3 months agoCloudEvents support for cps-core 72/137072/5
mpriyank [Tue, 23 Jan 2024 15:48:07 +0000 (15:48 +0000)]
CloudEvents support for cps-core

- Moving cloud events dependencies to the cps-service module instead of
  cps-ncmp-service
- Testware has moved and new tests also introduced
- EventsPublisher also moved

Issue-ID: CPS-2040
Change-Id: Ibafb15e7e9efbdbe1e00e2b4f0da820bbcead004
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 months agoMerge "Omitting the basic auth header in healthcheck test"
Priyank Maheshwari [Thu, 25 Jan 2024 13:38:02 +0000 (13:38 +0000)]
Merge "Omitting the basic auth header in healthcheck test"

3 months agoOmitting the basic auth header in healthcheck test 81/137081/3
waqas.ikram [Thu, 25 Jan 2024 11:36:16 +0000 (11:36 +0000)]
Omitting the basic auth header in healthcheck test

as it is not required and adding v3 to uri of api-docs

Issue-ID: CPS-2045
Change-Id: If229bbd46a5c5187ddac242f8bfda00d5c951995
Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
3 months agoMerge "CPS 1824: Delta Between 2 Anchors release notes"
Toine Siebelink [Thu, 25 Jan 2024 12:42:14 +0000 (12:42 +0000)]
Merge "CPS 1824: Delta Between 2 Anchors release notes"

3 months agoMerge "Add retry mechanism instead of sleep"
Toine Siebelink [Tue, 23 Jan 2024 12:02:12 +0000 (12:02 +0000)]
Merge "Add retry mechanism instead of sleep"

3 months agoAdd retry mechanism instead of sleep 61/137061/5
JvD_Ericsson [Mon, 22 Jan 2024 13:32:34 +0000 (13:32 +0000)]
Add retry mechanism instead of sleep

- replaced sleeps with retry mechanism
- removed unnecessary sleeps before polling
- changed formatting

Issue-ID: CPS-1093
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I7e26570eeedea09fd36f9c9bce87c4cd45906aa9

3 months agoCmSubscription review comments 68/137068/1
mpriyank [Mon, 22 Jan 2024 15:46:37 +0000 (15:46 +0000)]
CmSubscription review comments

- Removed the old deprecated cmSubscription json examples
- Incorporated minor review comments from myself

Issue-ID: CPS-1951
Change-Id: Ifadaa186cc210b81bb1b27f73f537e1c11bf461d
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 months agoRead and validate incoming sub create request from Kafka 96/136896/12
seanbeirne [Wed, 20 Dec 2023 16:37:37 +0000 (16:37 +0000)]
Read and validate incoming sub create request from Kafka

Issue-ID: CPS-1951
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I402dacc47c93e77a4ca63598acebe27c780951de