diff options
author | emaclee <lee.anjella.macabuhay@est.tech> | 2022-07-15 12:31:46 +0100 |
---|---|---|
committer | emaclee <lee.anjella.macabuhay@est.tech> | 2022-07-26 10:18:46 +0100 |
commit | f5f5e6be4e7d222a7530b96d2d77ed611934822f (patch) | |
tree | e329f206b51163aa70d853bed82010bc820f77bf /src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy | |
parent | af8d434068e6f0d2b88c152b069afdcaf162f6c2 (diff) |
Groovy clean tests clean-up
- test labels are modified to set standards for writing tests
- labels are not expected to be technical
- labels need to be in simple language that ANYONE can understand
- labels should not have exact method names except for some mocking
- variables are modified to give highlight to ONLY important parameter of test
- wild cards are preferred when possible i.e. for exception cases
Issue-ID: CPS-588
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I3d42471e7aa4bc61f962ad19cc1f237f6985a9a2
Diffstat (limited to 'src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy')
-rw-r--r-- | src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy b/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy index 8b13fc79..67de1b93 100644 --- a/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy +++ b/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy @@ -38,7 +38,7 @@ class ControllerSecuritySpec extends Specification { def testEndpoint = '/test' - def 'Get request with authentication'() { + def 'Get request with valid authentication'() { when: 'request is sent with authentication' def response = mvc.perform( get(testEndpoint).header("Authorization", 'Basic Y3BzdXNlcjpjcHNyMGNrcyE=') |