required: false
schema:
type: string
- - description: Module set tag of the given cm handle.
- examples:
- sample1:
- value: tag1
- in: query
- name: moduleSetTag
- required: false
- schema:
- type: string
requestBody:
content:
application/json:
required: false
schema:
type: string
- moduleSetTagParamInQuery:
- description: Module set tag of the given cm handle.
- examples:
- sample1:
- value: tag1
- in: query
- name: moduleSetTag
- required: false
- schema:
- type: string
requiredTopicParamInQuery:
description: mandatory topic name passed from client(NCMP).
examples:
dataType: my-data-type
cmHandleProperties:
key: "{\"prop1\":\"value1\",\"prop2\":\"value2\"}"
+ moduleSetTag: module-set-tag1
operation: read
properties:
operation:
requestId:
example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
type: string
+ moduleSetTag:
+ example: module-set-tag1
+ type: string
type: object
ResourceDataOperationRequests:
items:
requestId:
type: string
example: 3a9ce55c-e365-4dc9-8da3-a06f07cbc6d7
+ moduleSetTag:
+ type: string
+ example: module-set-tag1
cmHandleProperties:
type: object
value:
topic: my-topic-name
- moduleSetTagParamInQuery:
- name: moduleSetTag
- in: query
- description: Module set tag of the given cm handle.
- required: false
- schema:
- type: string
- examples:
- sample1:
- value: tag1
-
requiredRequestIdParamInQuery:
name: requestId
in: query
- $ref: 'components.yml#/components/parameters/resourceIdentifierInQuery'
- $ref: 'components.yml#/components/parameters/optionsParamInQuery'
- $ref: 'components.yml#/components/parameters/topicParamInQuery'
- - $ref: 'components.yml#/components/parameters/moduleSetTagParamInQuery'
requestBody:
description: Contains collection of cm handles with it's private properties and requestId
content:
final String resourceIdentifier,
final String optionsParamInQuery,
final String topicParamInQuery,
- final String moduleSetTagParamInQuery,
final DataAccessRequest dataAccessRequest) {
-
- log.info("Module set tag received: {}", moduleSetTagParamInQuery);
+ log.info("Module set tag: {}", dataAccessRequest.getModuleSetTag());
if (DatastoreType.PASSTHROUGH_OPERATIONAL == DatastoreType.fromDatastoreName(datastoreName)) {
return dataAccessPassthroughOperational(resourceIdentifier, cmHandle, dataAccessRequest,
optionsParamInQuery, topicParamInQuery);
def 'PassThrough logs module set tag'(){
given: 'Passthrough read URL and request data with a module set tag (parameter)'
def readPassThroughUrl ="${basePathV1}/ch/some-cmHandle/data/ds/ncmp-datastore:" +
- 'passthrough-running?resourceIdentifier=some-resourceIdentifier&moduleSetTag=module-set-tag1'
+ 'passthrough-running?resourceIdentifier=some-resourceIdentifier'
def jsonData = TestUtils.getResourceFileContent('readData.json')
when: 'the request is posted'
mvc.perform(
post(readPassThroughUrl).contentType(MediaType.APPLICATION_JSON).content(jsonData))
then: 'response status is OK'
def loggingMessage = getLoggingMessage(0)
- assert loggingMessage.contains('module-set-tag1')
+ assert loggingMessage.contains('module-set-tag-example')
}
def 'Get resource data for pass-through running with #scenario value in resource identifier param.'() {
"data": "normal request body",
"cmHandleProperties": {
"some-property": "some-property-value"
- }
+ },
+ "moduleSetTag": "module-set-tag-example"
}
\ No newline at end of file