tests: py: update rawpayload.t.json
Pablo Neira Ayuso
maintainerPATCH 1/1 tests: py: update rawpayload.t.json
Missing update of json test.
Fixes 6ad2058da66a ("datatype: add xinteger_type alias to print in hexadecimal")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- tests/py/any/rawpayload.t.json | 8 ++++---- tests/py/any/rawpayload.t.json.output | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 5 deletions(-)
tests/py/any/rawpayload.t.json +4 -4
@@ -66,7 +66,7 @@ } ] -# @nh,8,8 255 +# @nh,8,8 0xff [ { "match": {
@@ -78,12 +78,12 @@ } }, "op": "==", - "right": 255 + "right": "0xff" } } ] -# @nh,8,16 0 +# @nh,8,16 0x0 [ { "match": {
@@ -117,7 +117,7 @@ } ] -# @ll,0,8 and 0x80 eq 0x80 +# @ll,0,8 & 0x80 == 0x80 [ { "match": {
tests/py/any/rawpayload.t.json.output +17 -1
@@ -79,7 +79,7 @@ } ] -# @ll,0,8 and 0x80 eq 0x80 +# @ll,0,8 & 0x80 == 0x80 [ { "match": {
@@ -101,3 +101,19 @@ } ] +# @nh,8,8 0xff +[ + { + "match": { + "left": { + "payload": { + "base": "nh", + "len": 8, + "offset": 8 + } + }, + "op": "==", + "right": 255 + } + } +]
Signature · 1 line
2.30.2