diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-06-20 07:30:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-06-20 07:30:56 +0000 |
commit | cbf4044e840ea9473cd42f0a47c53dcafee8ba94 (patch) | |
tree | 717ec45d1900d87359a09e3d37299f1fbf71b60e /cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy | |
parent | fa81dc934ef7e9649aca9c6bdcdc611f28d6fe0d (diff) | |
parent | 11004c96ba72f709d54196ed9ce34b58d2cdcf84 (diff) |
Merge "Replace deprecated WebSecurityConfigurerAdapter"
Diffstat (limited to 'cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy')
-rwxr-xr-x | cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy b/cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy index 5c255f1da..ccadc5724 100755 --- a/cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy +++ b/cps-application/src/test/groovy/org/onap/cps/rest/controller/ControllerSecuritySpec.groovy @@ -20,6 +20,9 @@ package org.onap.cps.rest.controller +import org.onap.cps.config.WebSecurityConfig +import org.springframework.context.annotation.Import + import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get import org.springframework.beans.factory.annotation.Autowired @@ -29,6 +32,7 @@ import org.springframework.test.web.servlet.MockMvc import spock.lang.Specification @WebMvcTest(TestController) +@Import(WebSecurityConfig) class ControllerSecuritySpec extends Specification { @Autowired |