aboutsummaryrefslogtreecommitdiff
path: root/test-data
diff options
context:
space:
mode:
Diffstat (limited to 'test-data')
-rw-r--r--test-data/mock-nft-mon.nu4
-rw-r--r--test-data/nft-mon-output.json3
2 files changed, 7 insertions, 0 deletions
diff --git a/test-data/mock-nft-mon.nu b/test-data/mock-nft-mon.nu
new file mode 100644
index 0000000..9048dc3
--- /dev/null
+++ b/test-data/mock-nft-mon.nu
@@ -0,0 +1,4 @@
+const events = 'test-data/nft-mon-output.json'
+open --raw $events | lines | each { sleep 1sec; print $in } | ignore
+sleep 5sec
+open --raw $events | lines | each { sleep 1sec; print $in } | ignore \ No newline at end of file
diff --git a/test-data/nft-mon-output.json b/test-data/nft-mon-output.json
new file mode 100644
index 0000000..1080082
--- /dev/null
+++ b/test-data/nft-mon-output.json
@@ -0,0 +1,3 @@
+{"delete": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 68, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
+{"add": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 69, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
+{"add": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 69, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}} \ No newline at end of file