@@ -136,24 +136,24 @@ func TestAlertProvider_buildRequestBody(t *testing.T) {
136136 },
137137 {
138138 Name : "resolved" ,
139- Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , Priority : 2 },
139+ Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , Priority : 2 , ResolvedPriority : 2 },
140140 Alert : alert.Alert {Description : & secondDescription , SuccessThreshold : 5 , FailureThreshold : 3 },
141141 Resolved : true ,
142- ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :0 }" ,
142+ ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :2 }" ,
143143 },
144144 {
145145 Name : "resolved-priority" ,
146- Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , ResolvedPriority : 2 },
146+ Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , Priority : 2 , ResolvedPriority : 0 },
147147 Alert : alert.Alert {Description : & secondDescription , SuccessThreshold : 5 , FailureThreshold : 3 },
148148 Resolved : true ,
149- ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :2 }" ,
149+ ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :0 }" ,
150150 },
151151 {
152152 Name : "with-sound" ,
153- Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , Priority : 2 , Sound : "falling" },
153+ Provider : AlertProvider {ApplicationToken : "TokenWithLengthOf30Characters2" , UserKey : "TokenWithLengthOf30Characters5" , Title : "Gatus Notifications" , Priority : 2 , ResolvedPriority : 2 , Sound : "falling" },
154154 Alert : alert.Alert {Description : & secondDescription , SuccessThreshold : 5 , FailureThreshold : 3 },
155155 Resolved : true ,
156- ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :0 ,\" sound\" :\" falling\" }" ,
156+ ExpectedBody : "{\" token\" :\" TokenWithLengthOf30Characters2\" ,\" user\" :\" TokenWithLengthOf30Characters5\" ,\" title\" :\" Gatus Notifications\" ,\" message\" :\" RESOLVED: endpoint-name - description-2\" ,\" priority\" :2 ,\" sound\" :\" falling\" }" ,
157157 },
158158 }
159159 for _ , scenario := range scenarios {
0 commit comments