From 58a5a6fc361bec017d967b6b0f431a340a4581e3 Mon Sep 17 00:00:00 2001 From: leventecsanyi Date: Thu, 25 Jul 2024 16:53:08 +0200 Subject: Added missing authorization header to DataJobService - added auth header to the interface & updated testware Issue-ID: CPS-2330 Change-Id: I091fc5c3c3fa323024f55055129cc7240732479a Signed-off-by: leventecsanyi --- .../org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'integration-test/src') diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy index 0999bda9f4..b73634f40b 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy @@ -50,11 +50,12 @@ class WriteSubJobSpec extends CpsIntegrationSpecBase { def 'Create a sub-job write request.'() { given: 'the required input data for the write job' + def authorization = 'my authorization header' def dataJobWriteRequest = new DataJobWriteRequest([new WriteOperation('p1', '', '', null), new WriteOperation('p2', '', '', null), new WriteOperation('p3', '', '', null)]) def myDataJobMetadata = new DataJobMetadata('', '', '') def dataJobId = 'my-data-job-id' when: 'sending a write job to NCMP with 2 sub-jobs for DMI 1 and 1 sub-job for DMI 2' - def response = dataJobService.writeDataJob(dataJobId, myDataJobMetadata, dataJobWriteRequest) + def response = dataJobService.writeDataJob(authorization, dataJobId, myDataJobMetadata, dataJobWriteRequest) then: 'each DMI received the expected sub-jobs and the response has the expected values' assert response.size() == 2 assert response[0].class == SubJobWriteResponse.class -- cgit 1.2.3-korg