Add basic security to query interface 23/123323/8
authorRenu Kumari <renu.kumari@bell.ca>
Tue, 17 Aug 2021 11:30:19 +0000 (07:30 -0400)
committerRenu Kumari <renu.kumari@bell.ca>
Fri, 20 Aug 2021 11:54:25 +0000 (07:54 -0400)
commit743380d1f171d4c0dd46dc0cd5b47d8ea93bea44
tree28797238bc83b03d6f99d495a8b351c0b67c4465
parentea04c07ad990b5543766e95e234cae746bd1fbc1
Add basic security to query interface

- Added WebSecurity configuration and corresponding test case
- Updated existing test cases to handle spring security
- Moved QueryResponseFactory to QueryController to avoid cyclic dependency

Issue-ID: CPS-530
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I7e03ed9ccf983090ce514873b86fc9b2f851ed4f
pom.xml
src/main/java/org/onap/cps/temporal/controller/rest/QueryController.java
src/main/java/org/onap/cps/temporal/controller/rest/QueryResponseFactory.java [deleted file]
src/main/java/org/onap/cps/temporal/controller/rest/config/WebSecurityConfig.java [new file with mode: 0644]
src/main/java/org/onap/cps/temporal/controller/rest/model/SortMapper.java
src/main/resources/application.yml
src/test/groovy/org/onap/cps/temporal/controller/rest/ControllerSecuritySpec.groovy [new file with mode: 0644]
src/test/groovy/org/onap/cps/temporal/controller/rest/QueryControllerSpec.groovy
src/test/groovy/org/onap/cps/temporal/domain/SearchCriteriaSpec.groovy
src/test/resources/application.yml