diff options
author | Sourabh Sourabh <sourabh.sourabh@est.tech> | 2024-07-26 08:55:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-07-26 08:55:21 +0000 |
commit | 2111cc64d6f0a4fa84b3865e25955553fdb947bb (patch) | |
tree | e7cf5fb77655600febb5f2c7514f49674716e378 /integration-test | |
parent | ff8d36db2f62ef9c4973133c0b4ec9aa4f3fc76b (diff) | |
parent | 58a5a6fc361bec017d967b6b0f431a340a4581e3 (diff) |
Merge "Added missing authorization header to DataJobService"
Diffstat (limited to 'integration-test')
-rw-r--r-- | integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy | 3 |
1 files changed, 2 insertions, 1 deletions
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 |