mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
btest/plugin: Test custom metadata publish
Usage demo for plugin writers to add custom event metadata and access in in Zeek scripts.
This commit is contained in:
parent
7db03a8c77
commit
0ab53c75cd
9 changed files with 239 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
0.000000 InitPostScript
|
||||
App::test_event(1) |mdv|=1
|
||||
[id=App::CUSTOM_METADATA_STRING, val=testing string metadata]
|
||||
custom metadata string, [testing string metadata]
|
||||
custom metadata count, []
|
||||
custom metadata table, []
|
||||
App::test_event(2) |mdv|=1
|
||||
[id=App::CUSTOM_METADATA_COUNT, val=42424242]
|
||||
custom metadata string, []
|
||||
custom metadata count, [42424242]
|
||||
custom metadata table, []
|
||||
App::test_event(3) |mdv|=1
|
||||
[id=App::CUSTOM_METADATA_TABLE, val={
|
||||
[key1] = val1
|
||||
}]
|
||||
custom metadata string, []
|
||||
custom metadata count, []
|
||||
custom metadata table, [{
|
||||
[key1] = val1
|
||||
}]
|
||||
App::test_event(4) |mdv|=4
|
||||
[id=App::CUSTOM_METADATA_TABLE, val={
|
||||
[key1] = val1
|
||||
}]
|
||||
[id=App::CUSTOM_METADATA_COUNT, val=41414242]
|
||||
[id=App::CUSTOM_METADATA_STRING, val=testing string metadata]
|
||||
[id=App::CUSTOM_METADATA_STRING, val=more string metadata]
|
||||
custom metadata string, [testing string metadata, more string metadata]
|
||||
custom metadata count, [41414242]
|
||||
custom metadata table, [{
|
||||
[key1] = val1
|
||||
}]
|
Loading…
Add table
Add a link
Reference in a new issue