Improve broadcasts test data

This commit is contained in:
Daniel 2022-08-01 12:29:48 +02:00
parent ebf08c84a9
commit 25d2d97fb0
2 changed files with 28 additions and 21 deletions

View file

@ -1,6 +1,9 @@
# Testing Broadcast Notifications
```
# View matching data
curl http://127.0.0.1:817/api/v1/broadcasts/matching-data
# Reset state
curl -X POST http://127.0.0.1:817/api/v1/broadcasts/reset-state

View file

@ -1,22 +1,26 @@
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
# 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
new-network-monitor-feedback:
title: "New: Full-Device Network Activity"
message: "We re-imagined the network monitor to bring you better search and graphs. Thanks for being a Beta Tester! We would love to hear your feedback on [Twitter](https://twitter.com/SafingIO), [Reddit](https://www.reddit.com/r/safing), [GitHub](https://github.com/safing/portmaster-ui/issues/new/choose) or [via Email](mailto:support@safing.io)."
match: "Version sameas 0.9.0 and Updates.Channel sameas beta"