mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Add broadcast notifications test data
This commit is contained in:
parent
959bb012b8
commit
92cc733aca
2 changed files with 31 additions and 0 deletions
9
broadcasts/testdata/README.md
vendored
Normal file
9
broadcasts/testdata/README.md
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Testing Broadcast Notifications
|
||||
|
||||
```
|
||||
# Reset state
|
||||
curl -X POST http://127.0.0.1:817/api/v1/broadcasts/reset-state
|
||||
|
||||
# Simulate notifications
|
||||
curl --upload-file notifications.yaml http://127.0.0.1:817/api/v1/broadcasts/simulate
|
||||
```
|
22
broadcasts/testdata/notifications.yaml
vendored
Normal file
22
broadcasts/testdata/notifications.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
notifications:
|
||||
test1:
|
||||
title: "[TEST] Normal Broadcast"
|
||||
message: "This is a normal broadcast without matching. (#1)"
|
||||
test2:
|
||||
title: "[TEST] Permanent Broadcast"
|
||||
message: "This is a permanent broadcast without matching. (#2)"
|
||||
type: 1 # Warning
|
||||
permanent: true
|
||||
test3:
|
||||
title: "[TEST] Repeating Broadcast"
|
||||
message: "This is a repeating broadcast without matching. (#3)"
|
||||
repeat: "1m"
|
||||
test4:
|
||||
title: "[TEST] Matching Broadcast: PM version"
|
||||
message: "This is a normal broadcast that matches the PM version. (#4)"
|
||||
match: "NumericVersion > 8000"
|
||||
test5:
|
||||
title: "[TEST] Important Update"
|
||||
message: "A criticial update has been released, please update immediately. (#5)"
|
||||
type: 3 # Error
|
||||
attachToModule: true
|
Loading…
Add table
Reference in a new issue