Skip to content

Commit

Permalink
Update gotify to v2 standards and update scenario to allow less attem…
Browse files Browse the repository at this point in the history
…pts (#899)
  • Loading branch information
LaurenceJJones authored Dec 28, 2023
1 parent 381c271 commit 38c9836
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 93 deletions.
7 changes: 1 addition & 6 deletions .tests/gotify-bf/scenario.assert
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "gotify_failed_auth"
results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "10.1.2.3"
results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "gotify-logs.log"
results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "gotify_failed_auth"
results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "10.1.2.3"
results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
results[0].Overflow.Alert.GetScenario() == "baudneo/gotify-bf"
results[0].Overflow.Alert.Remediation == true
results[0].Overflow.Alert.GetEventsCount() == 5
results[0].Overflow.Alert.GetEventsCount() == 4
3 changes: 2 additions & 1 deletion .tests/gotify-logs/gotify-logs.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
[GIN] 2022/02/07 - 10:52:13 | 401 | 505.317µs | 10.1.2.3 | POST "/client"
[GIN] 2022/02/07 - 10:53:13 | 401 | 505.317µs | 10.1.2.3 | POST "/client"
[GIN] 2022/02/07 - 10:54:13 | 401 | 505.317µs | 10.1.2.3 | POST "/client"
[GIN] 2022/02/07 - 10:55:13 | 401 | 505.317µs | 10.1.2.3 | POST "/client"
[GIN] 2022/02/07 - 10:55:13 | 401 | 505.317µs | 10.1.2.3 | POST "/client"
2023-12-27T22:38:09Z | 401 | 279.715µs | 10.1.2.3 | POST "/client"
Loading

0 comments on commit 38c9836

Please sign in to comment.