Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TC4 : Topic Content Validation

TC4 : Topic Content Validation

Spec flow4.
StatusNo run
TesterMarek Pondel
PreconditionHV-VES XNF simulator (https://wiki.onap.org/display/DW/HV-VES+simulator) integrated to ONAP.
Steps1.

Start Kafka log.

Expected results1.

The log is enabled.

2.
Send valid
events
event to HV-VES and validate
it's
its content , e.
2.
g.


No Format
nopaneltrue
root@hv-ves-sim:~# cat hv-ves_sim/samples/xnf-simulator-smaller-valid-request_edited.json
[
 {
 "commonEventHeader": {
 "version": "sample-version",
 "domain": "HVRANMEAS",
 "sequence": 1,
 "priority": 1,
 "eventId": "SAMPLE-EVENT-ID",
 "eventName": "sample-event-name",
 "eventType": "sample-event-type",
 "startEpochMicrosec": 120034455,
 "lastEpochMicrosec": 120034455,
 "nfNamingCode": "sample-nf-naming-code",
 "nfcNamingCode": "sample-nfc-naming-code",
 "reportingEntityId": "sample-reporting-entity-id",
 "reportingEntityName": "sample-reporting-entity-name",
 "sourceId": "sample-source-id",
 "sourceName": "SAMPLE-SOURCE-NAME"
 },
 "messageType": "FIXED_PAYLOAD",
 "messagesAmount": 1
 }
]
root@hv-ves-sim:~#
2.

 Published event contains expected content , e.g.


No Format
nopaneltrue
root@hv-ves-sim:~# kafkacat -C -b localhost:9092 -t ves_hvRanMeas -D "" -o -1 -c 1 | protoc --decode_raw --proto_path=/root/
 1 {
 1: "sample-version"
 2: 11
 3: 1
 4: 1
 5: "SAMPLE-EVENT-ID"
 6: "sample-event-name"
 7: "sample-event-type"
 8: 120034455
 9: 120034455
 10: "sample-nf-naming-code"
 11: "sample-nfc-naming-code"
 12: "sample-reporting-entity-id"
 13: "sample-reporting-entity-name"
 14: "sample-source-id"
 15: "SAMPLE-SOURCE-NAME"
 }
 2: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
 root@hv-ves-sim:~#
Proper amount of events are published on Kafka topic and contain expected content.

To do

  • Define non-functional (performance) requirements for HV-VES.
  • TC5 - TC10 update based on non-functional HV-VES requirements.