diff options
author | Stavros Kanarakis <stavros.kanarakis@nokia.com> | 2020-03-03 13:47:45 +0200 |
---|---|---|
committer | Stavros Kanarakis <stavros.kanarakis@nokia.com> | 2020-03-03 13:51:22 +0200 |
commit | 9f330c25a03f90ae1ced491d36d1314463e6f6a4 (patch) | |
tree | 33d5b451c2d0588b1b68c4ebc68839b4cc083b9d /tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events | |
parent | f3f1b5e5f426fc181d25061cef39429b9498106f (diff) |
Align BBS-ep CSIT tests with latest code changes (DCAE-SDK upgrade)
Issue-ID: DCAEGEN2-2105
Signed-off-by: Stavros Kanarakis <stavros.kanarakis@nokia.com>
Change-Id: I5d23ffff7e6c21bbd85eaa54147053d5d5893ec2
Diffstat (limited to 'tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events')
15 files changed, 13 insertions, 272 deletions
diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_all_fields.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_all_fields.json index 3ad1fec0..d275850a 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_all_fields.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_all_fields.json @@ -1,30 +1 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "NVendor-Equip_Model-SN1234", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "outOfService", - "newState": "inService", - "stateInterface": "", - "additionalFields": { - "macAddress": "01:02:03:04:05:06", - "swVersion": "1.2.3" - } - } - } -} +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"NVendor-Equip_Model-SN1234\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\",\"swVersion\":\"1.2.3\"}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_new_old_state.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_new_old_state.json index 2c14d468..da1313a8 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_new_old_state.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_new_old_state.json @@ -1,29 +1 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "NVendor-Equip_Model-SN1234", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "", - "newState": "", - "stateInterface": "", - "additionalFields": { - "macAddress": "01:02:03:04:05:06" - } - } - } -}
\ No newline at end of file +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"NVendor-Equip_Model-SN1234\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"\",\"newState\":\"\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\",\"swVersion\":\"1.2.3\"}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_rgmac.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_rgmac.json index 21d97259..817107db 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_rgmac.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_rgmac.json @@ -1,30 +1 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "NVendor-Equip_Model-SN1234", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "outOfService", - "newState": "inService", - "stateInterface": "", - "additionalFields": { - "macAddress": "", - "swVersion": "1.2.3" - } - } - } -} +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"NVendor-Equip_Model-SN1234\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"\",\"swVersion\":\"1.2.3\"}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_sourceName.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_sourceName.json index 538a56c6..e1a6fe32 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_sourceName.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_sourceName.json @@ -1,30 +1 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "outOfService", - "newState": "inService", - "stateInterface": "", - "additionalFields": { - "macAddress": "01:02:03:04:05:06", - "swVersion": "1.2.3" - } - } - } -} +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\",\"swVersion\":\"1.2.3\"}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_wrong_sourceName.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_wrong_sourceName.json index 39a9e4ae..ffe031e9 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_wrong_sourceName.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_wrong_sourceName.json @@ -1,30 +1 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "Wrong-PNF-Name", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "outOfService", - "newState": "inService", - "stateInterface": "", - "additionalFields": { - "macAddress": "01:02:03:04:05:06", - "swVersion": "1.2.3" - } - } - } -} +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"Wrong-PNF-Name\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\",\"swVersion\":\"1.2.3\"}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_without_swversion.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_without_swversion.json index fcacf1ce..f50ed5c1 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_without_swversion.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_without_swversion.json @@ -1,16 +1 @@ -{ - "event": { - "commonEventHeader": { - "sourceName":"NVendor-Equip_Model-SN1234" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "newState": "inService", - "oldState": "outOfService", - "stateInterface": "", - "additionalFields": { - "macAddress": "00:11:22:33:44:55" - } - } - } -} +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"NVendor-Equip_Model-SN1234\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\"}}}}"] diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_malformed_json_format.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_malformed_json_format.json new file mode 100644 index 00000000..fba0214d --- /dev/null +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_malformed_json_format.json @@ -0,0 +1 @@ +["{\"event\":{\"commonEventHeader\":{\"version\":\"4.0.1\",\"eventName\":\"StateChange_cpe_authentication\",\"domain\":\"stateChange\",\"eventId\": \"ab305d54-85b4-a31b-7db2fb6b9e546015\",\"eventType\":\"applicationNf\",\"sourceId\":\"\",\"sourceName\":\"NVendor-Equip_Model-SN1234\",\"reportingEntityId\":\"\",\"reportingEntityName\":\"thirdparty-sdnc-idfromesrrequest\",\"priority\":\"Normal\",\"startEpochMicrosec\":1.413378172e+15,\"lastEpochMicrosec\":1.413378172e+15,\"sequence\":0,\"vesEventListenerVersion\":\"7.1\"},\"stateChangeFields\":{\"stateChangeFieldsVersion\":1,\"oldState\":\"outOfService\",\"newState\":\"inService\",\"stateInterface\":\"\",\"additionalFields\":{\"macAddress\":\"01:02:03:04:05:06\",\"swVersion\":\"1.2.3\",}}}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_not_json_format.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_not_json_format.json deleted file mode 100644 index 7801ad69..00000000 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_not_json_format.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "event": { - "commonEventHeader": { - "version": "4.0.1", - "eventName": "StateChange_cpe_authentication", - "domain": "stateChange", - "eventId": "ab305d54-85b4-a31b-7db2fb6b9e546015", - "eventType": "applicationNf", - "sourceId": "", - "sourceName": "NVendor-Equip_Model-SN1234pnf-11", - "reportingEntityId": "", - "reportingEntityName": "thirdparty-sdnc-idfromesrrequest", - "priority": "Normal", - "startEpochMicrosec": 1.413378172e+15, - "lastEpochMicrosec": 1.413378172e+15, - "sequence": 0, - "vesEventListenerVersion": "7.1" - }, - "stateChangeFields": { - "stateChangeFieldsVersion": 1, - "oldState": "outOfService", - "newState": "inService", - "stateInterface": "", - "additionalFields": { - "macAddress": "01:02:03:04:05:06", - "swVersion": "1.2.3", - } - } - } -} diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_policy_with_all_fields.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_policy_with_all_fields.json index 05b15fbf..ea3daee7 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_policy_with_all_fields.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_policy_with_all_fields.json @@ -20,4 +20,4 @@ "requestID": "d76541f3-7f55-4c80-b0a0-ec5dee2a56cb", "from": "DCAE" } -] +]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_all_fields.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_all_fields.json index 6fe23199..c70a3680 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_all_fields.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_all_fields.json @@ -1,16 +1 @@ -{ - "nf-role":"role", - "equip-type":"Equipment-Type-1", - "equip-vendor":"NVendor", - "equip-model":"Equip_Model", - "serial-number":"SN1234", - "sw-version":"SW-version-1", - "correlationId":"NVendor-Equip_Model-SN1234", - "additionalFields": { - "attachment-point": "olt1-1-1", - "cvlan": "1005", - "svlan": "100", - "remote-id": "some-remote-id" - } - } -
\ No newline at end of file +["{\"nf-role\":\"role\",\"equip-type\":\"Equipment-Type-1\",\"equip-vendor\":\"NVendor\",\"equip-model\":\"Equip_Model\",\"serial-number\":\"SN1234\",\"sw-version\":\"SW-version-1\",\"correlationId\":\"NVendor-Equip_Model-SN1234\",\"additionalFields\":{\"attachment-point\":\"olt1-1-1\",\"cvlan\":\"1005\",\"svlan\":\"100\",\"remote-id\":\"some-remote-id\"}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_attachment.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_attachment.json index 43d1b212..e5941d17 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_attachment.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_attachment.json @@ -1,15 +1 @@ -{ - "nf-role":"role", - "equip-type":"Equipment-Type-1", - "equip-vendor":"NVendor", - "equip-model":"Equip_Model", - "serial-number":"SN1234", - "sw-version":"SW-version-1", - "correlationId":"NVendor-Equip_Model-SN1234", - "additionalFields": { - "attachment-point": "", - "cvlan": "1005", - "svlan": "100", - "remote-id": "some-remote-id" - } - } +["{\"nf-role\":\"role\",\"equip-type\":\"Equipment-Type-1\",\"equip-vendor\":\"NVendor\",\"equip-model\":\"Equip_Model\",\"serial-number\":\"SN1234\",\"sw-version\":\"SW-version-1\",\"correlationId\":\"NVendor-Equip_Model-SN1234\",\"additionalFields\":{\"attachment-point\":\"\",\"cvlan\":\"1005\",\"svlan\":\"100\",\"remote-id\":\"some-remote-id\"}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_correlation.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_correlation.json index a1aaee30..da00b165 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_correlation.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_correlation.json @@ -1,15 +1 @@ -{ - "nf-role":"role", - "equip-type":"Equipment-Type-1", - "equip-vendor":"Vendor", - "equip-model":"Equip_Model", - "serial-number":"SN1234", - "sw-version":"SW-version-1", - "correlationId":"", - "additionalFields": { - "attachment-point": "olt1-1-1", - "cvlan": "1005", - "svlan": "100", - "remote-id": "some-remote-id" - } - } +["{\"nf-role\":\"role\",\"equip-type\":\"Equipment-Type-1\",\"equip-vendor\":\"NVendor\",\"equip-model\":\"Equip_Model\",\"serial-number\":\"SN1234\",\"sw-version\":\"SW-version-1\",\"correlationId\":\"\",\"additionalFields\":{\"attachment-point\":\"olt1-1-1\",\"cvlan\":\"1005\",\"svlan\":\"100\",\"remote-id\":\"some-remote-id\"}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_wrong_correlation.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_wrong_correlation.json index f1dca037..2981c9da 100644 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_wrong_correlation.json +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_wrong_correlation.json @@ -1,15 +1 @@ -{ - "nf-role":"role", - "equip-type":"Equipment-Type-1", - "equip-vendor":"NVendor", - "equip-model":"Equip_Model", - "serial-number":"SN1234", - "sw-version":"SW-version-1", - "correlationId":"Wrong-Correlation-Id", - "additionalFields": { - "attachment-point": "olt1-1-1", - "cvlan": "1005", - "svlan": "100", - "remote-id": "some-remote-id" - } - } +["{\"nf-role\":\"role\",\"equip-type\":\"Equipment-Type-1\",\"equip-vendor\":\"NVendor\",\"equip-model\":\"Equip_Model\",\"serial-number\":\"SN1234\",\"sw-version\":\"SW-version-1\",\"correlationId\":\"Wrong-Correlation-Id\",\"additionalFields\":{\"attachment-point\":\"olt1-1-1\",\"cvlan\":\"1005\",\"svlan\":\"100\",\"remote-id\":\"some-remote-id\"}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_malformed_json_format.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_malformed_json_format.json new file mode 100644 index 00000000..efb5cffd --- /dev/null +++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_malformed_json_format.json @@ -0,0 +1 @@ +["{\"nf-role\":\"role\",\"equip-type\":\"Equipment-Type-1\",\"equip-vendor\":\"NVendor\",\"equip-model\":\"Equip_Model\",\"serial-number\":\"SN1234\",\"sw-version\":\"SW-version-1\",\"correlationId\":\"NVendor-Equip_Model-SN1234\",\"additionalFields\":{\"attachment-point\":\"olt1-1-1\",\"cvlan\":\"1005\",\"svlan\":\"100\",\"remote-id\":\"some-remote-id\",}}"]
\ No newline at end of file diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_not_json_format.json b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_not_json_format.json deleted file mode 100644 index ab5b214a..00000000 --- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_not_json_format.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "nf-role":"role", - "equip-type":"Equipment-Type-1", - "equip-vendor":"NVendor", - "equip-model":"Equip_Model", - "serial-number":"SN1234", - "sw-version":"SW-version-1", - "correlationId":"NVendor-Equip_Model-SN1234", - "additionalFields": { - "attachment-point": "olt1-1-1", - "cvlan": "1005", - "svlan": "100", - "remote-id": "some-remote-id", - } - } |