diff options
author | 2024-07-10 09:24:22 +0100 | |
---|---|---|
committer | 2024-07-10 10:04:04 +0100 | |
commit | 4962922401c1c779c6b7d1161a995942750566ed (patch) | |
tree | e5f36152a6d3382246a5b22c9eb693c0e4280a03 /policy-executor-stub/src/test/groovy/org | |
parent | 8f3103dd1eaf5d537cd085dd8fab5ef39d7d914d (diff) |
Policy Executor API, make Authorization header optional
Issue-ID: CPS-22291
Change-Id: I2b8f9b97c92dfc640c8b40b7053c609bbdcb2f6e
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Diffstat (limited to 'policy-executor-stub/src/test/groovy/org')
-rw-r--r-- | policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy b/policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy index 593394fdc7..871db81ac8 100644 --- a/policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy +++ b/policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy @@ -66,7 +66,7 @@ class PolicyExecutorStubControllerSpec extends Specification { where: 'the following targets are used' targetFdn || expectedDecsisonId | expectedDecsison | expectedMessage 'some fdn' || '1' | 'deny' | "Only FDNs containing 'cps-is-great' are permitted" - 'fdn with cps-is-great' || '2' | 'permit' | null + 'fdn with cps-is-great' || '2' | 'permit' | "All good" } def 'Execute Policy Action with a HTTP Error Code.'() { @@ -94,8 +94,8 @@ class PolicyExecutorStubControllerSpec extends Specification { .contentType(MediaType.APPLICATION_JSON) .content(requestBody)) .andReturn().response - then: 'response status is Bad Request' - assert response.status == HttpStatus.BAD_REQUEST.value() + then: 'response status is OK' + assert response.status == HttpStatus.OK.value() } def 'Execute Policy Action with Empty Payload.'() { |