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 # Testing Broadcast Notifications
``` ```
# View matching data
curl http://127.0.0.1:817/api/v1/broadcasts/matching-data
# Reset state # Reset state
curl -X POST http://127.0.0.1:817/api/v1/broadcasts/reset-state curl -X POST http://127.0.0.1:817/api/v1/broadcasts/reset-state

View file

@ -1,22 +1,26 @@
notifications: notifications:
test1: # test1:
title: "[TEST] Normal Broadcast" # title: "[TEST] Normal Broadcast"
message: "This is a normal broadcast without matching. (#1)" # message: "This is a normal broadcast without matching. (#1)"
test2: # test2:
title: "[TEST] Permanent Broadcast" # title: "[TEST] Permanent Broadcast"
message: "This is a permanent broadcast without matching. (#2)" # message: "This is a permanent broadcast without matching. (#2)"
type: 1 # Warning # type: 1 # Warning
permanent: true # permanent: true
test3: # test3:
title: "[TEST] Repeating Broadcast" # title: "[TEST] Repeating Broadcast"
message: "This is a repeating broadcast without matching. (#3)" # message: "This is a repeating broadcast without matching. (#3)"
repeat: "1m" # repeat: "1m"
test4: # test4:
title: "[TEST] Matching Broadcast: PM version" # title: "[TEST] Matching Broadcast: PM version"
message: "This is a normal broadcast that matches the PM version. (#4)" # message: "This is a normal broadcast that matches the PM version. (#4)"
match: "NumericVersion > 8000" # match: "NumericVersion > 8000"
test5: # test5:
title: "[TEST] Important Update" # title: "[TEST] Important Update"
message: "A criticial update has been released, please update immediately. (#5)" # message: "A criticial update has been released, please update immediately. (#5)"
type: 3 # Error # type: 3 # Error
attachToModule: true # 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"