summaryrefslogtreecommitdiffstats
path: root/integration-test
AgeCommit message (Collapse)AuthorFilesLines
2024-11-29Merge "XML content support on Replace list content"Priyank Maheshwari2-6/+6
2024-11-28Merge "De-Registration without Orphaned Module Check"Toine Siebelink4-6/+16
2024-11-28De-Registration without Orphaned Module CheckToineSiebelink4-6/+16
- Testware updates to measure time spent for de-registration - Removed orphan check from module delete methods - Using @scheduled to run Db Cleaner method once (see https://lf-onap.atlassian.net/wiki/spaces/DW/pages/52494359/CPS-2478+Module+Sync+Inefficiencies#De-Registration:-Test-Measurements-With-and-Without-Orphanage-removal for reasoning) - Updated integration tests to call orphan check where need (after schema set deletion) Issue-ID: CPS-2478 Change-Id: I513af9d8bb88486a242284b58e0363a527346dd4 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-28XML content support on Replace list contentRudrangi Anupriya2-6/+6
Here to bring Support for XML Response Entity in Replace List content - Add ContentTypeInheadr in cpsData.yml to support application/xml - Add contentTypeInHeader parameter to accept xml in DataRestController.java - Modify the code return xml Data - written testcase for above changes made Issue-ID: CPS-2411 Change-Id: Ibb7ffb66ccdd03703266123c6d5c2eade0e7cb4a Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2024-11-26Implement ancestor axis in SQLdanielhanrahan1-0/+1
Currenty ancestor axis is implemented in Java using regex, which then sends a second SQL query to fetch ancestors. Implementing ancestor axis in SQL is more efficient, and is needed for limiting/paginating Cps Path Query results. Issue-ID: CPS-2416 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I0d8933f86c5a422f366ad7c417a17e263a13960f
2024-11-25Registration Optimization remaining Code CommentsToineSiebelink2-3/+3
Issue-ID: CPS-2478 Change-Id: I0aa3804225f053ff99176056fe71322a23cff31c Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-21Add Rest tests for yang module APIsdanielhanrahan1-0/+101
Add tests of following rest endpoints, including error scenarios: - /ncmp/v1/ch/${cmHandleReference}/modules - /ncmp/v1/ch/${cmHandleReference}/modules/definitions Change-Id: Ia4b5a638345840970794c7ae93dfd44e5ea62252 Issue-ID: CPS-2509 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
2024-11-18Test to highlight ModuleSetTag InefficienciesToineSiebelink6-61/+165
- Add (micrometer) instrumentation to expose inefficiencies - Add test config for micrometer - Add setup methods in base to create many cm handles - Set module sync parallelism to 2 for testing - Add clean up methods for hazelcast related tests - added test to show inefficiencies - POC 1 use hazelcast set to prevent multiple threads working on same ModuleSetTag - POC 2 'cache' module set tags per thread to prevent DB looks ups - Main inefficiency left: create schemaset for EACH cm Handled even if same tag. No easy PoC... Change-Id: Idf46b44c475a24727dd7084bb613459f4c29be55 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-11Configure Maven Profile for Performance Testssourabh_sourabh1-25/+0
- Enhance: Define global property for maven-resources-plugin and maven-failsafe-plugin version. - Updated Maven configuration to include performance test cases - Enable performance test inclusion in build with include-performance profile - Configured build to run all performance tests with include-performance profile Issue-ID: CPS-2491 Change-Id: Iecedfc0fce9ce8ed2bfab00784d22eb53cacd18a Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-11Merge "Support Alternate-Id for CPS-E05 data batch interface"Priyank Maheshwari1-2/+5
2024-11-05Support Alternate-Id for CPS-E05 data batch interfaceseanbeirne1-2/+5
Issue-ID: CPS-2274 Change-Id: I75163bc7943fca5cbbe8c24601a2dfc184a9e6cc Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-11-04Cm Avc Event to have same keympriyank1-1/+1
- incoming Cm Avc Event from DMI Plugin is consumed and forwarded to target topic - the key from source topic to be used in the target topic while forwarding - with same key the ordering of the message will be preserved - NOTE: the RTD related changes will be a separate patchset Issue-ID: CPS-2436 Change-Id: Ie692663706b378022ec0d621d92ca5054bad8d1b Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-04Verify LCM events during registrationmpriyank2-31/+65
- verifying the LCM state transition to ADVISED and then to READY state during cm handle registration - enhanced the base kafka test container to be thread safe - changed the auto offset reset policy for integration test to latest (default) from earliest - added retry mechanism to poll for the records Issue-ID: CPS-2468 Change-Id: Iabe603e1f5dd985899f04f5ace5d082acef7567a Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-10-29Merge "Support Alternate-Id for CPS-E05 id-searches and searchCmHandleIds"Daniel Hanrahan1-7/+12
2024-10-25Support Alternate-Id for CPS-E05 id-searches and searchCmHandleIdsseanbeirne1-7/+12
Issue-ID: CPS-2402 Issue-ID: CPS-2383 Change-Id: I5dd3132b70b401bf2f50f77c2c131d5d34aa0c0a Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-10-24Add multi-threaded Integration Test for Module SyncToineSiebelink12-41/+221
- Add tests for multi threaded scenarios around module sync - Disabled ModuleSyncWatchdog timer using long delay and interval - Call Module Sync method as needed for more control (sometimes it needs to be triggered twice like retry use cases as designed) - Improve NCMP performance test setup (consistent naming etc.) - Rename some production code method names to better reflect functionality - Disabled intermittent failing test for create cm handle as it is not asserting the correct message - Improved Code Coverage ModuleSyncWatchdog Issue-ID: CPS-2462 Change-Id: Ia907af77d2037309f1bbb73ea671679b788bab9e Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-10-17Release Stage 7 for 3.5.4seanbeirne1-1/+1
Issue-ID: CPS-2457 Change-Id: Id9a267c587f16f3fb5edb558b33cd0003864ed93 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-10-17Release notes and documentation updates for 3.5.4danielhanrahan1-2/+0
- Release notes update - Update openapi info.version to 3.5.4 - Update scheduled-tasks docs to reflect changes in retry mechanism - Update deployment docs to update configurable timer parameters - Remove unused locked-module-sync.sleep-time-ms Issue-ID: CPS-2457 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ieb559bbfe348848c4b8669410861edfeeb6c9bf3
2024-10-15Add missing duplication test in integration test suiteToineSiebelink1-1/+9
- Added test for ModuleSerive.createSchemaSetFromModules() - Unintendedly Updated one swagger file in docs because 1) DT team forgot to update the relevant file 2) Gers committed pom update to automatically update swagger files 3) I ran 'mvn install' Issue-ID: CPS-2399 Change-Id: I33261c32bbca58ff21aff3cde9588617199f104c Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-10-10use one hazelcast instance per jvmmpriyank1-0/+1
- updated all the cache(distributed datastructures) to use the same instance config now. - there will be just one instance per JVM now - Better cleanup of hz instance in the testware - Refactored the testware to verify the configs - Expected Impact on lowering the memory usage, less number of TCP communications between members - NOTE: we need to do a full regression as the changes impacts all the use cases which involves cache Issue-ID: CPS-2408 Change-Id: I7564992a9990f44ef3defb4f50cb7d094cad7b92 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-10-08Merge "Policy Executor: handle errors, part 2 (fighting between IntelliJ and ↵Sourabh Sourabh2-3/+2
Checkstyle best practices)"
2024-10-04Bump CPS to 3.5.4-SNAPSHOTmpriyank1-1/+1
- bump cps to 3.5.4-SNAPSHOT - updated release notes Issue-ID: CPS-2434 Change-Id: I3d5e6f37711bb29b61b598cc5af57ecfdc35cbba Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-10-03Policy Executor: handle errors, part 2ToineSiebelink2-3/+2
(fighting between IntelliJ and Checkstyle best practices) - non-2xx responses are processed using web client exceptions - handle unknown host exception - upgraded spotbugs (checkstyle and related mvn plugin) - fixed some small spotbugs due to upgrade - added commented instructions in docker compose to enable debugging - added some environment variables for policy executor configuration - extract out Sleeper in stub service to achieve 100% coverage - added cause to Policy Executor exceptions where applicable - ignored (new) spotbug rule about catch NPE because of issue in 3pp - ignored (new) spotbug rule about \n in string due to multiline string block Issue-ID: CPS-2412 Change-Id: I6835a73320c436cbeea12cc7a06f15899eec7bf1 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-25Policy Executor: handle errorsToineSiebelink3-8/+25
- configurable default answer - apply default answer upon non 2xx response - delayed default webclient read timeout - add custom timeout method with original read timeout in seconds - apply default answer upon timeout - add integration test with short timeout error scenario Issue-ID: CPS-2412 Change-Id: I62527a27e426c2f01fda2182ebd2513242c29ac1 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-24Fix intermittent error in integration testToineSiebelink1-1/+2
- make collection verification order independent Issue-ID: CPS-475 Change-Id: Ib070fd5360463c93ba6193a84a1dfcd11cd802fa Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-09-19Retry mechanism (with back off algorithm) is removed with more frequent ↵sourabh_sourabh1-7/+10
watchdog poll - Increased watchdog frequency for locked cm handle. - Removed retry backoff algorithm for locked cm handle. Issue-ID: CPS-2395 Change-Id: I54d0ec8f9de53a7d181639c14aaaa93736f03e19 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-18Merge "Refactored cps-ri package structure"Sourabh Sourabh2-4/+4
2024-09-17Refactored cps-ri package structureleventecsanyi2-4/+4
- fixed import order and moved package structure Issue-ID: CPS-2293 Change-Id: Ie2f9f057f261577054530feee7480850ba4b41e1 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-09-17Policy Executor API: Add Prefix in YamlToineSiebelink1-1/+1
- Remove servers from yaml. - Add prefix to path in yaml. - Remove basepath prefix from Controller Impl. - Added policy server port to 8093. - Exposed docker env. vars for policy services. Issue-ID: CPS-2291 Change-Id: Idcc9e23f9d63bad2480537dc8d39523fe82b4b83 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-11Merge "Renaming Delta Operations as per RFC 9144"Priyank Maheshwari1-17/+17
2024-09-10Renaming Delta Operations as per RFC 9144Arpit Singh1-17/+17
RFC 9144 recommends naming convention for operations that can be performed on any datastore. The recommended names are: - create - remove - replace Whereas in CPS Delta feature these operaitions were named: - add - remove - update So, "add" and "update" operations have been changed to "create" and "replace" respectively. Issue-ID: CPS-2393 Change-Id: Ie39f5f8ccc91e96cf484ca7fbc833a6be8758054 Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
2024-09-04[Cps Path Parser] Move NCMP-specific logic to NCMPdanielhanrahan2-2/+22
Some special case code to disable ancestor-axis was added for CM-handle search (see CPS-2308). It is now relocated to NCMP. This makes other needed improvements of Cps Path Parser easier. - Move special case code into NCMP - Add integration test to ensure CM-handle search works Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I168d6156be559166f115aa42e21cd987d98b7d41
2024-08-29Invoke Policy Executor and handle not-allowed responseToineSiebelink5-9/+173
- Execute Policy Executor REST request - Act (and log) on response from Policy Executor - Add dispatcher(mock) in integration test FWK - Add integration test for allow/non allowed and no authorization use cases - disabled PolicyExecution feature by default (only enabled for testware) Issue-ID: CPS-2247 Change-Id: I111ba9ba89cc91649b63b20f88414aa33721dbeb Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-26Policy Executor and DMI WebClient configurationsToineSiebelink1-1/+0
- separated dmi and policy executor http client configuration Issue-ID: CPS-2324 Change-Id: Ib4e757da188673e163abe6078dfd6ddae447eaab Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-08-21Bump CPS to 3.5.3-SNAPSHOTdanielhanrahan1-1/+1
- bump CPS to 3.5.3-SNAPSHOT - updated the release notes and prepared for the next release Issue-ID: CPS-2374 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I60ea5f5864f5818d1ed5078e375cf07b8d713dde
2024-08-21[BUG] Blank alternateId overwrites existingdanielhanrahan1-0/+89
During CM-handle update, a blank "" alternateId will overwrite an already-set alternateId. Additionally during registration, if an alternateId consisting of whitespace is supplied, it will be persisted with whitespace. This fixes both issues by using isBlank/isNotBlank consistently. Issue-ID: CPS-2372 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I44e536cf87a31c6e975a82ed37769c1d2548653a
2024-08-16Fix intermittent test failure of Delta between anchorsdanielhanrahan1-5/+7
Test fails sometimes due to non-deterministic order of results. The issue is fixed by sorting the delta reports. Issue-ID: CPS-2369 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I60fd459a482a7e3dc209ee3056794817d37f5149
2024-08-16Get data job result from DMIleventecsanyi2-2/+50
- added DataJobResult interface - extended the DmiRestClient to retrieve status - added mock response to DmiDispatcher Issue-ID: CPS-2296 Change-Id: I551afd827cccd91c5f9837bd4923b30320865d55 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-08-16Merge "Refactored Data Job interfaces"Priyank Maheshwari3-13/+14
2024-08-15Integration test of registration with alternate IDdanielhanrahan1-0/+33
Add functional test of registering a batch of CM-handles with a mixture of existing, duplicate, new and blank alternate IDs. Issue-ID: CPS-2366 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Iaed5c47ca0e14583bea91ee74924f1b5c1f01cec
2024-08-13Refactored Data Job interfacesleventecsanyi3-13/+14
-modified writejob & status endpoints Issue-ID: CPS-2360 Change-Id: I87647f59493886593825f5175c6ed708e55b3e30 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-08-12Support alternate Id interface for CPS-E-05 #2seanbeirne1-0/+54
- Supports Alternate Ids for getResourceDataForCmHandle Issue-Id: CPS-2279 Change-Id: I1f145308cec5b545fab2d5c96efbc00fc3a110f4 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-08-01XML content support on add list elementRudrangi Anupriya3-9/+14
Issue-ID: CPS-2287 Change-Id: Ibb7ffb66ccbb03703266132c6d5c2eade0e7cb4a Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2024-07-30Fix ordering issue in QueryServiceIntegrationSpecdanielhanrahan1-1/+1
A test intermittently fails due to comparing unordered list. Fix is to compare as a set. Issue-ID: CPS-2337 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I84bc4f7d9ff01ca7b36ecb56835387dbea6b24d1
2024-07-26Merge "Added missing authorization header to DataJobService"Sourabh Sourabh1-1/+2
2024-07-26Added missing authorization header to DataJobServiceleventecsanyi1-1/+2
- added auth header to the interface & updated testware Issue-ID: CPS-2330 Change-Id: I091fc5c3c3fa323024f55055129cc7240732479a Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-25Integration test to validate DMI service URLsourabh_sourabh2-53/+65
- New groovy test is written to validate if dmi service url is encoded correctly. Issue-ID: CPS-2317 Change-Id: I75023a0bd2c41c832177edf062c694bb0d9b14b8 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-07-25Get data job status from DMI Pluginleventecsanyi2-0/+28
- added java interface - extended DmiRestClient to get data job status - added testware Issue-ID: CPS-2296 Change-Id: If9006bba06397724c15bdc3bdf1bd52a0188f002 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-25Integration test for the writeDataJobleventecsanyi10-61/+231
- added Stub controller - created integration test for writeDataJob Issue-ID: CPS-2236 Change-Id: I067a11dc5bfe629d50128cf303b2a81abc75a348 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-18Integration test to validate DMI service URLsourabh_sourabh2-0/+55
- New groovy test is written to validate if dmi service url is encoded correctly. Issue-ID: CPS-2317 Change-Id: I048bf37dd3ba4f37df7dace927f55bf8dd899922 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>