mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Update unit test output to match json.zeek being deprecated and slight format changes to JSON output
This commit is contained in:
parent
33a7927704
commit
d27c846ec5
7 changed files with 31 additions and 29 deletions
|
@ -0,0 +1 @@
|
|||
warning in /Users/tim/Desktop/projects/zeek/testing/btest/../../scripts//base/utils/json.zeek, line 2: deprecated script loaded from command line arguments ="Remove in 3.1. to_json is now always available as a built-in function."
|
|
@ -249,7 +249,6 @@ scripts/base/init-default.zeek
|
|||
scripts/base/frameworks/openflow/main.zeek
|
||||
scripts/base/frameworks/openflow/plugins/__load__.zeek
|
||||
scripts/base/frameworks/openflow/plugins/ryu.zeek
|
||||
scripts/base/utils/json.zeek
|
||||
scripts/base/frameworks/openflow/plugins/log.zeek
|
||||
scripts/base/frameworks/openflow/plugins/broker.zeek
|
||||
scripts/base/frameworks/openflow/non-cluster.zeek
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
-./frameworks/openflow/cluster.zeek
|
||||
-./frameworks/packet-filter/cluster.zeek
|
||||
-./frameworks/sumstats/cluster.zeek
|
||||
-./utils/json.zeek
|
||||
|
|
|
@ -821,7 +821,6 @@
|
|||
0.000000 MetaHookPost LoadFile(0, base<...>/input.bif.zeek) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/intel) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/irc) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/json.zeek) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/krb) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/logging) -> -1
|
||||
0.000000 MetaHookPost LoadFile(0, base<...>/logging.bif.zeek) -> -1
|
||||
|
@ -1712,7 +1711,6 @@
|
|||
0.000000 MetaHookPre LoadFile(0, base<...>/input.bif.zeek)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/intel)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/irc)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/json.zeek)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/krb)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/logging)
|
||||
0.000000 MetaHookPre LoadFile(0, base<...>/logging.bif.zeek)
|
||||
|
@ -2611,7 +2609,6 @@
|
|||
0.000000 | HookLoadFile base<...>/input.bif.zeek
|
||||
0.000000 | HookLoadFile base<...>/intel
|
||||
0.000000 | HookLoadFile base<...>/irc
|
||||
0.000000 | HookLoadFile base<...>/json.zeek
|
||||
0.000000 | HookLoadFile base<...>/krb
|
||||
0.000000 | HookLoadFile base<...>/logging
|
||||
0.000000 | HookLoadFile base<...>/logging.bif.zeek
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
http://127.0.0.1:8080/stats/flowentry/clear/42
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 0, "idle_timeout": 0, "hard_timeout": 0, "match": {}, "actions": [{"port": 3, "type": "OUTPUT"}, {"port": 7, "type": "OUTPUT"}], "cookie": 4398046511105, "flags": 0, "dpid": 42}
|
||||
{"priority":0,"idle_timeout":0,"hard_timeout":0,"match":{},"actions":[{"port":3,"type":"OUTPUT"},{"port":7,"type":"OUTPUT"}],"cookie":4398046511105,"flags":0,"dpid":42}
|
||||
Flow_mod_success
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "74.53.140.153/32", "tp_dst": 25, "tp_src": 1470, "nw_proto": 6, "dl_type": 2048, "nw_src": "10.10.1.4/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"74.53.140.153/32","tp_dst":25,"tp_src":1470,"nw_proto":6,"dl_type":2048,"nw_src":"10.10.1.4/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "10.10.1.4/32", "tp_dst": 1470, "tp_src": 25, "nw_proto": 6, "dl_type": 2048, "nw_src": "74.53.140.153/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"10.10.1.4/32","tp_dst":1470,"tp_src":25,"nw_proto":6,"dl_type":2048,"nw_src":"74.53.140.153/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
Flow_mod_success
|
||||
Flow_mod_success
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "192.168.133.102/32", "tp_dst": 25, "tp_src": 49648, "nw_proto": 6, "dl_type": 2048, "nw_src": "192.168.133.100/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"192.168.133.102/32","tp_dst":25,"tp_src":49648,"nw_proto":6,"dl_type":2048,"nw_src":"192.168.133.100/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "192.168.133.100/32", "tp_dst": 49648, "tp_src": 25, "nw_proto": 6, "dl_type": 2048, "nw_src": "192.168.133.102/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"192.168.133.100/32","tp_dst":49648,"tp_src":25,"nw_proto":6,"dl_type":2048,"nw_src":"192.168.133.102/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
Flow_mod_success
|
||||
Flow_mod_success
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "17.167.150.73/32", "tp_dst": 443, "tp_src": 49655, "nw_proto": 6, "dl_type": 2048, "nw_src": "192.168.133.100/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"17.167.150.73/32","tp_dst":443,"tp_src":49655,"nw_proto":6,"dl_type":2048,"nw_src":"192.168.133.100/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
http://127.0.0.1:8080/stats/flowentry/add
|
||||
{"priority": 5, "idle_timeout": 30, "hard_timeout": 0, "match": {"nw_dst": "192.168.133.100/32", "tp_dst": 49655, "tp_src": 443, "nw_proto": 6, "dl_type": 2048, "nw_src": "17.167.150.73/32"}, "actions": [], "cookie": 4398046511146, "flags": 0, "dpid": 42}
|
||||
{"priority":5,"idle_timeout":30,"hard_timeout":0,"match":{"nw_dst":"192.168.133.100/32","tp_dst":49655,"tp_src":443,"nw_proto":6,"dl_type":2048,"nw_src":"17.167.150.73/32"},"actions":[],"cookie":4398046511146,"flags":0,"dpid":42}
|
||||
Flow_mod_success
|
||||
Flow_mod_success
|
||||
|
|
|
@ -8,32 +8,33 @@ true
|
|||
"-12.0 hrs"
|
||||
"hello"
|
||||
""
|
||||
65535
|
||||
1
|
||||
123
|
||||
0
|
||||
{"port":65535,"proto":"tcp"}
|
||||
{"port":1,"proto":"udp"}
|
||||
{"port":123,"proto":"icmp"}
|
||||
{"port":0,"proto":"unknown"}
|
||||
"1.2.3.4"
|
||||
"ffff:1234::1"
|
||||
"123.123.123.123"
|
||||
"192.0.0.0/8"
|
||||
"fe80::/64"
|
||||
"Red"
|
||||
{"s": "test", "c": 100}
|
||||
{"s": "test"}
|
||||
{"s": "test"}
|
||||
{"m": {"s": "test"}}
|
||||
"/^?(^abcd)$?/"
|
||||
{"s":"test","c":100}
|
||||
{"s":"test"}
|
||||
{"s":"test"}
|
||||
{"m":{"s":"test"}}
|
||||
[]
|
||||
[2, 1]
|
||||
[2,1]
|
||||
["1.2.3.4"]
|
||||
[[true, false]]
|
||||
[{"s": "test"}]
|
||||
[[true,false]]
|
||||
[{"s":"test"}]
|
||||
[]
|
||||
[2, 1]
|
||||
[2,1]
|
||||
["1.2.3.4"]
|
||||
[{"s": "test"}]
|
||||
[{"s": "test"}]
|
||||
[{"s":"test"}]
|
||||
[{"s":"test"}]
|
||||
{}
|
||||
{"2": "10.2.2.2", "1": "10.1.1.1"}
|
||||
{"10.1.1.1": {"a": 1}, "10.2.2.2": {"b": 2}}
|
||||
{"10.1.1.1": [1, 2], "10.2.2.2": [3, 5]}
|
||||
{"1": {"s": "test"}}
|
||||
{"2":"10.2.2.2","1":"10.1.1.1"}
|
||||
{"10.1.1.1":{"a":1},"10.2.2.2":{"b":2}}
|
||||
{"10.1.1.1":[1,2],"10.2.2.2":[3,5]}
|
||||
{"1":{"s":"test"}}
|
||||
|
|
|
@ -72,6 +72,9 @@ event zeek_init()
|
|||
local e: color = Red;
|
||||
print to_json(e);
|
||||
|
||||
local p: pattern = /^abcd/;
|
||||
print to_json(p);
|
||||
|
||||
# #########################
|
||||
# Test the container types:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue