Bruno Sakoto [Thu, 10 Jun 2021 14:04:20 +0000 (14:04 +0000)]
Merge "Add json schema for events"
mkerrigan [Tue, 8 Jun 2021 11:58:08 +0000 (12:58 +0100)]
Replaced isEmpty with not hasText
Sonarcloud reported that isEmpty is deprecated.Not hasText will give the
same behavior
Issue-ID: CPS-89
Change-Id: I45b1723dad414bfc08d4ed33931d6c21eb5e6185
Signed-off-by: mkerrigan <michael.kerrigan@est.tech>
Claudio D. Gasparini [Fri, 4 Jun 2021 13:30:59 +0000 (15:30 +0200)]
Include cps-path-parser under jacoco xml report paths
Issue-ID: CPS-376
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com>
Change-Id: I0c580dad1fb40a3462bd6fcdaffb7f31a643fd48
Bruno Sakoto [Tue, 18 May 2021 20:02:30 +0000 (16:02 -0400)]
Add json schema for events
Issue-ID: CPS-348
Issue-ID: CPS-373
Change-Id: Ia0d31f6393e90cb0d5370ca6a78dfbe8817545ae
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
ToineSiebelink [Thu, 3 Jun 2021 15:05:08 +0000 (16:05 +0100)]
Improve error handling on unexpected 'postfix'
Issue-ID: CPS-450
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ia8be460f4235f7f0c24498f861dbe42137111772
Toine Siebelink [Tue, 1 Jun 2021 16:32:12 +0000 (16:32 +0000)]
Merge "fix clm job critical issues"
tragait [Tue, 1 Jun 2021 09:08:17 +0000 (10:08 +0100)]
fix clm job critical issues
Issue-ID: CPS-400
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: If5c6bb7ceb16a63191e60431b297a4a29aef2536
ToineSiebelink [Tue, 1 Jun 2021 12:47:10 +0000 (13:47 +0100)]
Fix last SQ violation
Issue-ID: CPS-89
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I9621a60e89574bbb8b222b7342c5d387c302afdb
ToineSiebelink [Thu, 20 May 2021 15:44:21 +0000 (16:44 +0100)]
Introducing Antlr4 for cpsPath parsing
-created new module for cpPathParser
-added antlr rule for cpsPathWithSingleLeafCondition
-added antlr rule for cpsPathWithDescendant (and with leaf conditions)
-added antlr rule for ancestor axis
-added unit test (copied from existing CpsPathQuerySpec)
-udpated cps-ri to use new cpPathQuery from parser module
-'imported' lexer rules from publix xPath grammar
-Re-used existing CpsPathException but conversion happens in cps-ri to prevent additional dependency in cps-path-parser module
Issue-ID: CPS-376
Change-Id: I2c5df98969402cbf69f6573c52705879450ce606
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Renu Kumari [Wed, 26 May 2021 12:47:52 +0000 (08:47 -0400)]
Load only required components in the application contexts
Issue-ID: CPS-434
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: Iacc12946495b9e6ec42b4b7d4e3b5b010fecceb5
JosephKeenan [Mon, 24 May 2021 16:42:23 +0000 (17:42 +0100)]
Aligning differing openAPI paths (cps-rest & ncmp-rest)
Issue-ID: CPS-427
Change-Id: I1d6853419923994feed4d9c38482818f17202e36
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Ruslan Kashapov [Fri, 14 May 2021 11:41:05 +0000 (14:41 +0300)]
Replace list-node content (part 2): CPS REST layer
Issue-ID: CPS-362
Change-Id: I46dc9b48758fa10a47a648aa4e6a63775466234b
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Ruslan Kashapov [Fri, 14 May 2021 09:04:34 +0000 (12:04 +0300)]
Replace list-node content (part 1): CPS Service and persistence layers
Issue-ID: CPS-362
Change-Id: I669c9fc6ef67c1992fe95e17a765f0c616b00f7e
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
DylanB95EST [Mon, 24 May 2021 09:04:49 +0000 (10:04 +0100)]
Adding Atomic Grouping to Discard backtracking once matched as part of Sonar Security Hotspot Fix
Issue-ID: CPS-89
Commit-ID:
b23ee774ae2a2305f1feea747931879588f9cada
Change-Id: I1f9d54246370b0c0bc8ec3d167eaed27ad58471b
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
DylanB95EST [Fri, 21 May 2021 10:55:41 +0000 (11:55 +0100)]
Adding Possessive Quantifier to Regex to prevent backtracking
Issie-ID: CPS-89
Commit-ID:
22dbd115593cd429b1b75af2000310ce79cfbf10
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Change-Id: I12f8aec77e9a4faa62234b7108617d47e4ed63fd
JosephKeenan [Wed, 19 May 2021 14:04:15 +0000 (15:04 +0100)]
Update SonarQube Code Smell
Issue-ID: CPS-89
Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Ruslan Kashapov [Wed, 19 May 2021 07:43:39 +0000 (10:43 +0300)]
Response code fix (Bad Request instead of Not Found) when modifying non-existent node.
Issue-ID: CPS-422
Change-Id: I6652f8bcafb9938ce588be3d0a0d2bb1672723b0
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Renu Kumari [Mon, 17 May 2021 11:16:48 +0000 (07:16 -0400)]
nexus registry is parmateterized
Issue-ID: CPS-311
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I158387f54b1a9d3d60e6d97cc3336391745af3c0
Ruslan Kashapov [Fri, 7 May 2021 07:46:27 +0000 (10:46 +0300)]
Create list-node elements (part3): NCMP REST and service layers
Issue-ID: CPS-360
Change-Id: Id8be89f19750d72bae334491aea4a59f21c7ecd6
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Ruslan Kashapov [Wed, 5 May 2021 10:11:50 +0000 (13:11 +0300)]
Create list-node elements (part2): CPS REST layer
Issue-ID: CPS-360
Change-Id: Iaca8baff085e1659453c06ce0dee0203aa007b4a
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Ruslan Kashapov [Wed, 5 May 2021 09:06:00 +0000 (12:06 +0300)]
Create list-node elements (part1): CPS service and persistence layers
+ fix integrity violation exception exposed out of persistence layer
+ refactor CpsDataServiceImplSpec to eliminate repeated code
Issue-ID: CPS-360
Change-Id: Id70341fe54bf3c31af661f6aae04a7a80f4a1e9d
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Bruno Sakoto [Sat, 8 May 2021 00:29:29 +0000 (00:29 +0000)]
Merge "Add CpsPathQueries.sql and create data inspired by the bookstore model"
niamhcore [Fri, 30 Apr 2021 13:26:48 +0000 (14:26 +0100)]
Add CpsPathQueries.sql and create data inspired by the bookstore model
Issue-ID: CPS-363
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I1eaee97d6ced7b0c0676de19d74b4d8262a5e811
Bruno Sakoto [Wed, 5 May 2021 12:11:19 +0000 (08:11 -0400)]
Fix cps ran yang data model
* Add a liquibase change set to update cps ran model data
* Rename model "cps-ran-schema-model@2021-01-28.yang" to
be compliant with yang specifications related to file layout
https://tools.ietf.org/html/rfc7950#section-5.2
* Improve yang validation error handling to provide more information
about the validation failure in the request response
* Add csit test to verify cps ran model retrieval
Issue-ID: CPS-377
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70
niamhcore [Wed, 5 May 2021 10:42:20 +0000 (11:42 +0100)]
Document ancestor cps path
Issue-ID: CPS-305
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I29ef0c62ab2030d900c9fcecb453d9aff9f647d3
niamhcore [Tue, 4 May 2021 08:52:19 +0000 (09:52 +0100)]
Fix ancestor cps path to recognize ancestor list value
Issue-ID: CPS-305
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I28f7f0c120a39190068a3192dccf0a1a6fbfeaf2
Rishi Chail [Fri, 30 Apr 2021 13:23:33 +0000 (13:23 +0000)]
Merge "Implement cps path query to get ancestor by schema node identifier Cleaned up some legcy issues in related testware"
Ruslan Kashapov [Fri, 30 Apr 2021 11:28:18 +0000 (14:28 +0300)]
fix sonar code smell
Issue-ID: CPS-358
Change-Id: Ifa1f4bbd5c16a0cf6e4ac73568c8560e42b85365
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
ToineSiebelink [Fri, 30 Apr 2021 11:09:44 +0000 (12:09 +0100)]
Implement cps path query to get ancestor by schema node identifier
Cleaned up some legcy issues in related testware
Issue-ID: CPS-305
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ic4b21308478f399e3a454dbcd73943e077b0f3f2
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Toine Siebelink [Fri, 30 Apr 2021 10:47:10 +0000 (10:47 +0000)]
Merge "Fix code smell"
puthuparambil.aditya [Wed, 28 Apr 2021 15:39:32 +0000 (16:39 +0100)]
Fix Get descendent to support xpaths that end in list values
Issue-ID: CPS-367
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I3234afd8b8b69c5a3c87db1669d9b304f9fcaa49
Rishi.Chail [Fri, 30 Apr 2021 08:04:19 +0000 (09:04 +0100)]
Fix code smell
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: Ib1d7d1c83ea86a6a25d831852b822b4f3857d54a
Ruslan Kashapov [Thu, 22 Apr 2021 08:47:41 +0000 (11:47 +0300)]
JSON data fragment into DataNode collection parsing support
Issue-ID: CPS-358
Change-Id: I92f46504e5f3623131844616945069f70712ed61
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
shivasubedi [Thu, 29 Apr 2021 11:48:05 +0000 (12:48 +0100)]
Investigate and update Spock version
Issue-ID: CPS-368
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: Ie8505cf29068660af6bc6b9887f593f7e3be074f
ToineSiebelink [Wed, 28 Apr 2021 11:13:34 +0000 (12:13 +0100)]
- Remove redundant and misleading tests
- Some small improvemnt to tets ins same class
Issue-ID: CPS-325
Change-Id: I0d888dbd9db555508b23e37957098b7b4d518912
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
shivasubedi [Mon, 26 Apr 2021 16:51:04 +0000 (17:51 +0100)]
Fix Code smells
Issue-ID: CPS-89
Change-Id: Ib1b6fbc6b6d712f169100825683e6db3e7c85cb9
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Toine Siebelink [Wed, 28 Apr 2021 09:45:03 +0000 (09:45 +0000)]
Merge "Get Data under anchor using single root Changes for NCMP"
Rishi Chail [Mon, 26 Apr 2021 16:05:35 +0000 (16:05 +0000)]
Merge "Leaf String value comparison matches mix of single and double quotes"
Rishi.Chail [Mon, 26 Apr 2021 15:42:11 +0000 (16:42 +0100)]
Get Data under anchor using single root
Changes for NCMP
Issue-ID: CPS-325
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I3eb8a1b0c11d0503614cea6839ad7e33adbdd524
Bruno Sakoto [Mon, 26 Apr 2021 14:37:57 +0000 (14:37 +0000)]
Merge "Get Data under anchor using single root"
Rishi.Chail [Tue, 13 Apr 2021 23:51:44 +0000 (00:51 +0100)]
Get Data under anchor using single root
Issue-ID: CPS-325
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: Id8da3d767199c5767c625b55d175ac6791dcca48
shivasubedi [Thu, 22 Apr 2021 13:54:49 +0000 (14:54 +0100)]
Leaf String value comparison matches mix of single and double quotes
Issue-ID: CPS-345
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: Id6db86817878ed5ed8ccaed4a9a71c5a06d6f97c
Bruno Sakoto [Thu, 22 Apr 2021 03:58:05 +0000 (23:58 -0400)]
Update documentation for csit tests
Issue-ID: CPS-356
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ic6f31e7eaaf86fd51bb65f22b51668a74d792472
Bruno Sakoto [Fri, 23 Apr 2021 13:18:03 +0000 (13:18 +0000)]
Merge "Upgrade to PostgreSQL 13"
puthuparambil.aditya [Fri, 23 Apr 2021 11:52:09 +0000 (12:52 +0100)]
Documents update for multiple attributes support in Get Descendent API
Issue-ID: CPS-309
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Iceb62b784e3e5281d8a8ab443c4ece45fa121dc2
puthuparambil.aditya [Fri, 23 Apr 2021 10:55:24 +0000 (11:55 +0100)]
Documents update for multiple attributes support in Get Descendent API
Issue-ID: CPS-309
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I413fd64b12b1c1a10fd9e0068809cb5a8a6e28ad
Rishi.Chail [Fri, 23 Apr 2021 10:51:42 +0000 (11:51 +0100)]
Upgrade to PostgreSQL 13
Upgrade version in docker compose and test containers to match OOM
version.
Issue-ID: CPS-355
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I8da816fb932822e50380e7c12487e234d75fa4d7
puthuparambil.aditya [Fri, 16 Apr 2021 12:47:52 +0000 (13:47 +0100)]
Implement ends with cps path query to support multiple attributes with 'and' condition
Issue-ID: CPS-309
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I80bf2650e2cd979b806fc29302fc5cb295f65241
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
ToineSiebelink [Tue, 20 Apr 2021 16:33:09 +0000 (17:33 +0100)]
Document legacy CPS Path functionality
Issue-ID: CPS-334
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ib5266c7b30097661d97f8a499eaddc738dda0539
Toine Siebelink [Thu, 22 Apr 2021 08:46:28 +0000 (08:46 +0000)]
Merge "Update README.md"
Hanif Kukkalli [Thu, 15 Apr 2021 15:44:10 +0000 (17:44 +0200)]
Update README.md
Updated README.md to show the version that can be used to pass as an argument for docker-compose up
Issue-ID: CPS-339
Signed-off-by: Hanif Kukkalli <lte-ng@outlook.com>
Change-Id: I440f2d368c0b06c3827db3c39e044560c4d10a84
Ruslan Kashapov [Tue, 20 Apr 2021 08:14:30 +0000 (11:14 +0300)]
Create child data node (part 2): NCMP service + REST
Issue-ID: CPS-337
Change-Id: Icf703f6f375e5f280058d58c781eac081f3dd161
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Toine Siebelink [Tue, 20 Apr 2021 13:29:00 +0000 (13:29 +0000)]
Merge "Increase minimum coverage"
Ruslan Kashapov [Mon, 19 Apr 2021 09:40:01 +0000 (12:40 +0300)]
Create child data node (part 1): CPS service + REST
Issue-ID: CPS-337
Change-Id: I9c5c62d144b5301ac80e2b82a5cc66a980dad011
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Claudio D. Gasparini [Mon, 19 Apr 2021 16:18:19 +0000 (18:18 +0200)]
Increase minimum coverage
and remove unnecesary dependency
Issue-ID: CPS-343
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com>
Change-Id: I3bffbd9941f539852da2e1de82f8edda08ea1ea3
Renu Kumari [Wed, 14 Apr 2021 14:14:13 +0000 (10:14 -0400)]
Remove default password from application.yml
Issue-ID: CPS-319
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I61a5e098ffa173721cfa48aa0b992610f6a6e1a0
ToineSiebelink [Thu, 15 Apr 2021 11:15:01 +0000 (12:15 +0100)]
Fix "ends-with" query syntax to conform with xPath definition
"ends-with" is HOW we resolve it in sql query. 'descendant anywhere' is the correct Path name for the '//' operator
- Updated method names, variable names, test description to reflect the correct terminolgy
- Udpated query to always perfix the target (descendant name) with an '\' so it alwasy only matches whole node names
- Updated regex for cpsPath to NOT accept triple /// (as per xPath this is invalid since a ndoeName cannot start with or contain a node separator
Issue-ID: CPS-336
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I9f181d6986d038311b839e3f9c5afc4237c7d347
ToineSiebelink [Tue, 13 Apr 2021 14:10:47 +0000 (15:10 +0100)]
Add Security waiver to Release Notes
Issue-ID: CPS-329
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Icbfd7137f12d5b5a23ddd316d0c0b3b7edb23b2d
Bruno Sakoto [Mon, 12 Apr 2021 15:09:41 +0000 (15:09 +0000)]
Merge "Fix liquibase changeset so we can upgrade from H to I"
Toine Siebelink [Fri, 9 Apr 2021 16:20:29 +0000 (16:20 +0000)]
Merge "Fix to pull images from Onap nexus"
ToineSiebelink [Wed, 7 Apr 2021 15:17:33 +0000 (16:17 +0100)]
Fix liquibase changeset so we can upgrade from H to I
- Undo (accidental) changes in orginal liquiubase cahnge set (03)
(see commit : https://gerrit.onap.org/r/c/cps/+/119061)
- Add new changeset for required changed related to checksum calcualtion
- There is a incorrect field name (checkstyle instead of checksum) in 03-loadData-schema-set.yaml
but it seems to be ignored/overruled by the .csv import. If we change it liquibase report an checksum error during upgrade
i.e were are not allowed to touch the file!
Issue-ID: CPS-310
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I00c94e3f1ddab7c9c54aac1294019ec7cd51634f
ToineSiebelink [Fri, 9 Apr 2021 10:15:48 +0000 (11:15 +0100)]
Update release note for Honolulu 1.0.1 (RC1)
Issue-ID: CPS-297
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ia0315209dba46b2ee05d55b732eec234af7dde5a
Rishi.Chail [Thu, 8 Apr 2021 13:23:32 +0000 (14:23 +0100)]
Fix to pull images from Onap nexus
Issue-ID: CPS-319
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I2a82e56aef8572e4241b6644cb8c53d2d33ace97
(cherry picked from commit
27fba350de15c5a5145a66f75cc188a6f69633c6)
ToineSiebelink [Wed, 7 Apr 2021 15:04:37 +0000 (16:04 +0100)]
Fix SonarQube violations
- Used @SupressWarning where issue was casued by 3PP we have not control over
- Remove TODO's which are now addt to backlog as new JIRA's; CPS-324 and CPS-325
Issue-ID: CPS-89
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ieb64fd6d3f09144f6dea965c0aee3aefa6ec253c
Bruno Sakoto [Wed, 7 Apr 2021 13:37:12 +0000 (13:37 +0000)]
Merge "Fix upload size to be greater than 1MB"
niamhcore [Wed, 7 Apr 2021 10:35:19 +0000 (11:35 +0100)]
Fix upload size to be greater than 1MB
Issue-ID: CPS-308
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I1de6efa882f85cf6f9054e3ef38ed6e0bd99d7be
Ruslan Kashapov [Mon, 5 Apr 2021 11:46:03 +0000 (14:46 +0300)]
Delete anchor part 2: cps rest
Issue-ID: CPS-312
Change-Id: I08f92dfff3188bd96a69ec2ae01e0d0891b81d87
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Bruno Sakoto [Wed, 7 Apr 2021 12:55:41 +0000 (12:55 +0000)]
Merge "Fix security hotspots n Regex"
Ruslan Kashapov [Mon, 5 Apr 2021 09:59:57 +0000 (12:59 +0300)]
Delete anchor part 1: service and persistence layers
Issue-ID: CPS-312
Change-Id: I10ab5a2d115ffdf8179a99b6ec712f3eccfb5f13
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Ruslan Kashapov [Fri, 2 Apr 2021 09:41:14 +0000 (12:41 +0300)]
Fix xpath building for data nodes addressing YANG augmentation
Issue-ID: CPS-316
Change-Id: I8aa0960c2a6af2b8fe5bc2fb90efe36baee7a881
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Renu Kumari [Thu, 1 Apr 2021 14:44:31 +0000 (10:44 -0400)]
Moved application.yml under cps-application
Issue-ID: CPS-248
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: Ibfe68684784a9bd38e9e1e5d6a5e7909c4c11909
ToineSiebelink [Tue, 6 Apr 2021 15:44:14 +0000 (16:44 +0100)]
Fix security hotspots n Regex
Attemting to fix security risks indentified by SQ by reducing unlimited spaces to 0-9 spaces
See https://sonarcloud.io/project/security_hotspots?id=onap_cps#
I think the proposed regex changes are acceptable and better then adding @SupressWarning annotation
(have to test by merging this commit as issues are not spotted when using SonarLinit locally?!)
Issue-ID: CPS-89
Change-Id: I00bbacb3145650ab7d21d13152c08d5ccf0c04fa
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Toine Siebelink [Tue, 6 Apr 2021 13:05:40 +0000 (13:05 +0000)]
Merge "rename nf-proxy to network-cm-proxy"
puthuparambil.aditya [Tue, 16 Mar 2021 12:01:23 +0000 (12:01 +0000)]
Fix for security hotspot related to safe archive expansion
https://sonarcloud.io/project/security_hotspots?id=onap_cps&hotspots=AXfObcsqA2pnU4Plp4-g
Issue-ID: CPS-289
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Ibe8627413fc9e3964cdc5bb98caf5e25fa4f3a95
tragait [Tue, 30 Mar 2021 11:02:27 +0000 (12:02 +0100)]
rename nf-proxy to network-cm-proxy
This commit renames two modules cps-nf-proxy-rest and
cps-nf-proxy-service to cps-ncmp-rest, cps-ncmp-service.
Docker image names are also changed respectively.
Swagger auto generated api files are also modified.
Signed-off-by: tragait <rahul.tyagi@est.tech>
Issue-ID: CPS-315
Change-Id: Ic2a2f8c4bafe8cffa3c83ccb52499720aaba1415
Toine Siebelink [Thu, 1 Apr 2021 11:40:06 +0000 (11:40 +0000)]
Merge "Use ONAP recommended base Java Docker image"
Bruno Sakoto [Tue, 23 Mar 2021 18:42:00 +0000 (14:42 -0400)]
Fix to store data for 2 anchors using same model
This change deletes the database index on fragment table for dataspace
and xpath.
Issue-ID: CPS-300
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I586cc38f7ed00a16f751ed4dbe3b514226c62657
Rishi.Chail [Tue, 30 Mar 2021 13:02:03 +0000 (14:02 +0100)]
Use ONAP recommended base Java Docker image
Issue-ID: CPS-304
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I71db1d9c85225a33dd9fc4f2e5f7045d71ad3843
niamhcore [Mon, 29 Mar 2021 12:27:42 +0000 (13:27 +0100)]
Fix for AlreadyDefinedException test.
Issue-ID: CPS-290
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Id3e3764b00dfd462fd20a5c9ded68f8d507e8119
Bruno Sakoto [Sat, 13 Mar 2021 00:21:55 +0000 (19:21 -0500)]
Provide the reason why data is not compliant
Issue-ID: CPS-292
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ia58a8dfcf427e373b24bb3be7436abf6abd55492
Rishi.Chail [Mon, 15 Mar 2021 13:35:57 +0000 (13:35 +0000)]
Add timestamp to docker snapshots
Issue-ID: CPS-264
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I25dc40e1f1d6f5fc2634625ae8403b96913829bd
niamhcore [Mon, 15 Mar 2021 15:54:12 +0000 (15:54 +0000)]
Internal Server Error when creating the same data node twice
This change adds a generic exception handler class for a already defined object and handles a JsonSyntaxException.
Issue-ID: CPS-290
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ie645237b5dd5b8e2b1d074c5613e7da560f57484
Rishi.Chail [Mon, 15 Mar 2021 14:36:23 +0000 (14:36 +0000)]
Fix code smells
1. removed typedefs annotation
2. chnaged final string constant name
Issue-ID: CPS-89
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I524aa8c13e8bb4c6a00d810c6e89b30a48f37d10
Ruslan Kashapov [Tue, 2 Mar 2021 14:48:41 +0000 (16:48 +0200)]
Docs: overview, architecture, design, modeling
Issue-ID: CPS-268
Change-Id: I31480a9a6186af0ddedae4f0eca06a744a2e2d64
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Toine Siebelink [Fri, 12 Mar 2021 16:04:00 +0000 (16:04 +0000)]
Merge "Move web security configuration to application module"
Ruslan Kashapov [Thu, 11 Mar 2021 12:15:49 +0000 (14:15 +0200)]
Move web security configuration to application module
Issue-ID: CPS-288
Change-Id: Ieba184c3e4727e354c19a3db31325052d15ced44
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
niamhcore [Thu, 11 Mar 2021 10:34:35 +0000 (10:34 +0000)]
Exception stack trace is exposed
Issue-ID: CPS-249
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I1e03c17364c925c6f976f2147cb17f8ac26ba995
Bruno Sakoto [Wed, 10 Mar 2021 18:13:50 +0000 (13:13 -0500)]
Suppress csrf sonar security hotspot warning
Issue-ID: CPS-285
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I95d2b7d48714d21e2cdcaab36f3ba9903f0b5342
puthuparambil.aditya [Wed, 10 Mar 2021 11:55:33 +0000 (11:55 +0000)]
Fix for security hotspot related to wek cyptography
https://sonarcloud.io/project/security_hotspots?id=onap_cps&hotspots=AXfObcurA2pnU4Plp4-j
Issue-ID: CPS-286
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I31012f81797396682dbccae0e4992a33bac806c7
Hanif Kukkalli [Wed, 10 Mar 2021 09:57:22 +0000 (10:57 +0100)]
Fix SonarQube Coverage for test cases
NfProxy Test Coverage
Issue-ID: CPS-89
Signed-off-by: Hanif Kukkalli <lte-ng@outlook.com>
Change-Id: I7314e3fb1557d2f47f03db9c4ac12b0bf86c63b2
ToineSiebelink [Tue, 9 Mar 2021 15:27:06 +0000 (15:27 +0000)]
Fix SOnarQube bug on Regex
- Regex included unlimitted repetition is now limited to 99
99 nested yang container should sufice, in my experience in 5G 20-30 levels is the max I have seen
we can always record it as a 'known limitation'
-tried to improve the redability of the Regex using constant names
- Added edge-case senarios testing related to query regex
Issue-ID: CPS-89
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ic3442bc8ca22fe66976948f9913e033245a0e41c
niamhcore [Tue, 9 Mar 2021 14:23:52 +0000 (14:23 +0000)]
Improve error reporting for invalid cps path query
Issue-ID: CPS-276
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I0e0abbaff32c936c67fc1092dc8385a0bc5ae49e
Rishi.Chail [Fri, 5 Mar 2021 12:32:33 +0000 (12:32 +0000)]
Update versions for next release
Issue-ID: CPS-256
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: Ifce438495233edd7de9f42129ab60bebc365f0b9
Rishi.Chail [Fri, 5 Mar 2021 12:00:07 +0000 (12:00 +0000)]
Deliver final image for Honululu
Issue-ID: CPS-256
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: Idf0a390058789f9ab6d01406da4c11df47b91db2
Rishi.Chail [Fri, 5 Mar 2021 11:21:56 +0000 (11:21 +0000)]
Deliver new maven artifacts
Issue-ID: CPS-256
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: Ib7f14058ef529eecfb9dcb652eee457243718aaa
Toine Siebelink [Fri, 5 Mar 2021 09:10:51 +0000 (09:10 +0000)]
Merge "Upgrade version number"
Bruno Sakoto [Wed, 3 Mar 2021 23:27:54 +0000 (18:27 -0500)]
Add basic authentication security
Endpoints exposed outside from the cluster require
basic authentication except actuator health and info endpoints.
Default user credentials are embedded in the application,
they can be overridden with system environment properties.
Issue-ID: CPS-175
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I3dfa0e49e5f4538c923e6bbe9bef976d30359fe6
Bruno Sakoto [Fri, 5 Mar 2021 00:05:02 +0000 (19:05 -0500)]
Upgrade version number
Honolulu RC0 will be version 1.0.0
Issue-ID: CPS-260
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ib4d464100b7b5814070d41dc911f342f58836442
niamhcore [Wed, 3 Mar 2021 12:05:09 +0000 (12:05 +0000)]
CPS-265 - Update cps path query to support 'ends with'
Issue-ID: CPS-265
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I604191feaad820983d86e6fd844f543f51096a4e
Bruno Sakoto [Thu, 4 Mar 2021 16:15:38 +0000 (16:15 +0000)]
Merge "Fix cps-nf-proxy standalone assembly."