2525Feature : Testing Publish and Subscribe Functionality
2626
2727 Scenario Outline : To test the registerlistener and send apis
28- Given "<uE1>" creates data for "registerlistener"
29- And sets "entity.name" to "body.access"
30- And sets "entity.id" to "12345"
31- And sets "entity.version_major" to "1"
32- And sets "resource.name" to "door"
33- And sets "resource.id" to "12345"
34- And sets "resource.instance" to "front_left"
35- And sets "resource.message" to "Door"
28+ Given "uE1" creates data for "registerlistener"
29+ And sets "ue_id" to "12345"
30+ And sets "ue_version_major" to "1"
31+ And sets "resource_id" to "32769"
3632
3733 When sends "registerlistener" request
3834 Then the status received with "code" is "OK"
3935
40- When "< uE2> " creates data for "send"
36+ When "uE2" creates data for "send"
4137 And sets "attributes.id.msb" to "112128268635242497"
4238 And sets "attributes.id.lsb" to "11155833020022798372"
43- And sets "attributes.source.entity.name" to "body.access"
44- And sets "attributes.source.entity.id" to "12345"
45- And sets "attributes.source.entity.version_major" to "1"
46- And sets "attributes.source.resource.name" to "door"
47- And sets "attributes.source.resource.id" to "12345"
48- And sets "attributes.source.resource.instance" to "front_left"
49- And sets "attributes.source.resource.message" to "Door"
39+ And sets "attributes.source.ue_id" to "12345"
40+ And sets "attributes.source.ue_version_major" to "1"
41+ And sets "attributes.source.resource_id" to "32769"
5042 And sets "attributes.priority" to "UPRIORITY_CS1"
5143 And sets "attributes.type" to "UMESSAGE_TYPE_PUBLISH"
52- And sets "payload.format" to "UPAYLOAD_FORMAT_PROTOBUF_WRAPPED_IN_ANY"
53- And sets "payload.value" to b".type.googleapis.com/google.protobuf.Int32Value\x 12\x 02\x 08\x 03"
44+ And sets "payload" to b".type.googleapis.com/google.protobuf.Int32Value\x 12\x 02\x 08\x 03"
5445 And sends "send" request
5546
5647 Then the status received with "code" is "OK"
57- And "< uE1> " sends onreceive message with field "payload.value " as b"type.googleapis.com/google.protobuf.Int32Value\x 12\x 02\x 08\x 03"
48+ And "uE1" sends onreceive message with field "payload" as b"type.googleapis.com/google.protobuf.Int32Value\x 12\x 02\x 08\x 03"
5849
5950 # Unregister in the end for cleanup
60- When "<uE1>" creates data for "unregisterlistener"
61- And sets "entity.name" to "body.access"
62- And sets "entity.id" to "12345"
63- And sets "entity.version_major" to "1"
64- And sets "resource.name" to "door"
65- And sets "resource.id" to "12345"
66- And sets "resource.instance" to "front_left"
67- And sets "resource.message" to "Door"
51+ When "uE1" creates data for "unregisterlistener"
52+ And sets "ue_id" to "12345"
53+ And sets "ue_version_major" to "1"
54+ And sets "resource_id" to "32769"
6855 And sends "unregisterlistener" request
6956
7057 Then the status received with "code" is "OK"
7158
7259 Examples :
73- | uE1 | uE2 |
74- | rust | rust |
75- | rust | python |
76- | python | rust |
77- | rust | java |
78- | java | rust |
79- | python | python |
80- | java | java |
81- | java | python |
82- | python | java |
60+ | ignore | ignore |
61+ | ignore | ignore |
0 commit comments