summaryrefslogtreecommitdiffstats
path: root/cps-service/src/test/resources
AgeCommit message (Collapse)AuthorFilesLines
2022-12-22Merge "XML content on create anchors node support"Toine Siebelink3-0/+63
2022-12-22XML content on create anchors node supportMichal Jagiello3-0/+63
Add XML content type support on anchor node creation. Issue-ID: CPS-1257 Change-Id: I7e7a9a1961b6e81de93a4e32e842b47f8a163a09 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Signed-off-by: Lee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>
2022-12-22Add fix for posting nodes with xPath with '/'emaclee1-4/+4
- YangUtils method changed from using REGEX to cps path parser - unit test added for cps path util Issue-ID: CPS-1433 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ibb9efdd09423f9bade4a4a557d7d9ed49aa44ef4
2022-12-12Fix DataNodeBuilder for ChoiceNodesLena Peuker2-0/+35
Fix implemented to handle YangChoiceNode in right format Issue-ID: CPS-1352 Signed-off-by: Lena Peuker <PeukerL@telekom.de> Change-Id: I48d433bac96cfc647bc31c82817870995bace860
2022-11-02Ensure prefix is correct module prefixToineSiebelink1-0/+3
- Moved Prefix logic from RI to Service layer - Prefix is no PREFIX propety, not the moduel name! == RI (DB Layer) Changes - Removed prefix logic incl hazelcast - Added new basic ri-test for getDataNode and assert prefix is null - Updated exsiting ri-test to us getDataNode - Updated existing ri-test to only use " where really needed == CPS Service Layer Changes - Introduced PrefixResolver with clear and limited responsibility - Use PrefixResolver where needed - Cache prefix map per anchor, use cached entry when available - Disabled SONAR on new Regex == REST Layer - Use PrefixResolver where needed Issue-ID: CPS-1353 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ie16f0e1ee1c280f3eb69c9e64fab69a780fb692a
2022-10-04Tests added for multiple data tree analysisemaclee2-0/+31
**this commit is for analysis purposes only, not for merge - add unit test for gson JSONreader - add unit test for ODL JsonParserStream Issue-ID: CPS-1286 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ia4a8c3e36f83b4cd857b4ff20f6a37e418ffd2ec
2022-06-30Kafka consumer can not be turned offJosephKeenan1-2/+1
-NOTE: Build will fail until docker-compose version issues on build server are fixed --Ticket raised https://jira.linuxfoundation.org/plugins/servlet/theme/portal/2/IT-24219 -added flag for async -added response if async is triggered without being enabled & associated test -modified to use one global flag for notifications Issue-ID: CPS-1088 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: If9d988b4dcb71bf37c1b1bf9464090782708ffc2
2022-05-25Async request response NCMP -> ClientJosephKeenan1-0/+1
-Added consumer for DMI events and producer for forwarding to client -Added schemas for events -Updated tests -Added new module for ncmp events -Used mapstruct for event mapping Issue-ID: CPS-830 Change-Id: I096d08af9d69092cf8651e11eaa00ce441fc3605 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-01-28Support 'public' Cm Handle PropertiesDylanB95EST1-42/+0
Add support for new Public Additional Properties list to Register CM Handles API Issue-ID: CPS-677 Change-Id: I6efc88734da2416f72f71a403622e519398b502d Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-09-02Add property to enable Notification Sevice async processingRenu Kumari1-4/+6
- made notification service synchronous by default - added new property to enable async processing if required Issue-ID: CPS-630 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I28c2c98d7a79219a5932732d2940f5ac37bf1653
2021-08-25Merge "Process data-updated event asynchronously"Toine Siebelink1-2/+7
2021-08-24Process data-updated event asynchronouslyRenu Kumari1-2/+7
- notification is processed asynchronously using defined threadpool - updated docker-compose and readme to add dataspace filtering variables Issue-ID: CPS-526 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7f827250f45cb9e3db2f060e9b3a089a4eaee05c
2021-08-24Update CmHandle in DMI-Registry for a DMI-Plugin Instance in NCMP as part of ↵DylanB95EST1-0/+42
dmi registration. Updating existing CM-Handles created previously as part of CPS-442 Note - Can only update cm handles and properties which already exist. Issue-ID: CPS-443 Change-Id: Ib05a4e01336ca463578b45917dcdfe715b6bad07 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-08-17Filter data updated events based on configured patternRenu Kumari1-1/+3
Issue-ID: CPS-469 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7810990b54c3140677184ea671164b8835a6afbb
2021-07-20Support text() conditionToineSiebelink2-1/+19
- Added Antlr parsing of text() condition (as an optional additional to any query) - Implemented text-condition combined with descendants - Refactor descendants queries into using one more flexible Custom (native) Query builder - Refactor ALL cpsPath queries to now use FragmentRepositoryCpsPathQuery (custom query builder) - Refactor Antrl code to simply parsing of cpsPath and allow all combinations (no more query types, addresses CPS-436) - Minor clean up of some minor convention issues in CpsAdminServiceImplSpec.groovy (found during groovy demo) - Update .rst documentation of xPaths - Fixed incorrect matching of additional list indexes using more precise SIMILAR-TO regex in postgreSQL - Documented special chararter limitation (CPS-500) - Checked for consistent use of term 'CPS path' in documentation and error message - Included (updated) copyright in all .SQL test files Issue-ID: CPS-452 Issue-ID: CPS-436 Issue-ID: CPS-500 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: If422d25cafd2850d25c9a28dea16ba7a5f93dddb
2021-07-07Sending Data Updated Event to kafkaRenu Kumari1-0/+41
Issue-ID: CPS-374 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I05fedcace42b84575411df26c586788bffe6b846
2021-06-29Update CPS ran model schema to the latest versionshivasubedi2-24/+135
- file name updates - fixed sql statements in the forward and rollback files - Updated to use insert statements instead of update statements - Removing liquibase steps Issue-ID: CPS-451 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I3e08574837dfa0f16cf06a16b07de24788923411
2021-04-07Fix xpath building for data nodes addressing YANG augmentationRuslan Kashapov7-7/+1057
Issue-ID: CPS-316 Change-Id: I8aa0960c2a6af2b8fe5bc2fb90efe36baee7a881 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-23Updating RAN Inventory tests to use the latest model and dataniamhcore2-74/+84
Issue-ID: CPS-200 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I22fbfd66a2f355f38dc4502445df8041ed0db7c5
2021-02-18E2E RAN Schema Model - yang model vs data testRuslan Kashapov2-0/+1993
Issue-ID: CPS-196 Change-Id: I0171dfc2f82505c8ae8497ff49fe3eb28e1972a6 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-08E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell mapping' ↵puthuparambil.aditya3-45/+28
with updated data Issue-ID: CPS-199 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ic399198bd583217d96d0f5306078563b23ae54fd
2021-02-05Custom Model E2E Network Slicing - RAN Inventoryniamhcore2-0/+207
Issue-ID: CPS-200 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I846ff2928de6e1fae1483ced05d66cfd1e44615e
2021-02-03E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell mapping'puthuparambil.aditya2-0/+195
Issue-ID: CPS-199 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id8f7f595d04eb492c3ea065b8fcbf8ac9f3641bc
2021-01-28Fix the datanode build logic (incorrect parsing of containers and mapped lists)Ruslan Kashapov2-0/+52
Issue-ID: CPS-198 Change-Id: Ideb89f777a1bc155603152991174680fad8bb513 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-20Test E2E Network Slicing model with CPSRishi.Chail3-0/+3094
Added TC with yang schema sets which are base for E2E Network slicing Issue-ID: CPS-169 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I7f082833880157a1711b5a380697c8ba75a1a39f
2020-12-24Create schema set REST API and service levelRuslan Kashapov1-0/+15
Issue-ID: CPS-123 Change-Id: Ie6d5fd4755454331415af7b80eaf85925efab395 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-17Decouple YangUtils testClaudio David Gasparini1-0/+0
from YangTextSchemaSourceSet test responsabilities. - Remove deprecated YangUtils method for handle files Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I971f818a55efd9659481bb13476dd67106cecab7
2020-11-19Adding & Testing method for breaking JSON Data into 'fragments'ToineSiebelink2-21/+46
Improving Bookstore test model https://jira.onap.org/browse/CPS-32 Issue-ID: CPS-32 Change-Id: Ie03e03c041233aa908ab55902c1b387f96eb1c2e Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-11-06Move cps files to root dirJessica Wagantall4-0/+85
Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>