Commit graph

9 commits

Author SHA1 Message Date
Augusto Dwenger J. 20ede605fb Replace all occurrences from assert with require
The package testify offers assert and require for testing.
The difference between assert and require are is that on require
the test will immediately fail.
2020-11-17 17:23:54 +01:00
Augusto Dwenger J. 5d36d67768 Add some more logging to the main, stats and alert package 2020-11-17 17:16:21 +01:00
Augusto Dwenger 564982751e Rename SimpleClient to GotifyClient to be more descriptive 2020-11-05 14:40:45 +01:00
Augusto Dwenger 4f85a2ba79 Fix notify not being able to send correct notifications
Fix json field naming
Fix priority type -> int (gotify expects it to be an int)
Fix Notify implementation to match the Notifier interface
Remove hardcoded token and url
2020-11-05 14:40:45 +01:00
Augusto Dwenger 8f17807c21 Remove interface postfix from Notifier interface
Add missing type documentation
2020-11-05 14:40:33 +01:00
Augusto Dwenger 268d3acfa1 Fix test for testing the url parsing 2020-11-05 13:43:00 +01:00
Marius 3108e90489 working tests 2020-11-02 15:43:36 +01:00
Marius d6bb91974b [WIP] failing tests, but why? 2020-11-02 15:41:02 +01:00
Marius 2e390daf35 inital alert commit with httpClient and request to gotify 2020-11-02 15:06:26 +01:00