This repository was archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathnotifications.feature
More file actions
83 lines (70 loc) · 4.11 KB
/
Copy pathnotifications.feature
File metadata and controls
83 lines (70 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@notifications @processor @notifier
Feature: notifications
So people can be notified when things break and recover
flapjack-notifier must send notifications correctly
# TODO test across multiple contacts
Scenario: Queue an SMS alert
Given the user wants to receive SMS alerts for check 'example.com:PING'
When an event notification is generated for check 'example.com:PING'
Then an SMS alert for check 'example.com:PING' should be queued
And an email alert for check 'example.com:PING' should not be queued
Scenario: Queue a Nexmo alert
Given the user wants to receive Nexmo alerts for check 'example.com:PING'
When an event notification is generated for check 'example.com:PING'
Then a Nexmo alert for check 'example.com:PING' should be queued
And an email alert for check 'example.com:PING' should not be queued
And an SMS alert for check 'example.com:PING' should not be queued
Scenario: Queue an SNS alert
Given the user wants to receive SNS alerts for check 'example.com:PING'
When an event notification is generated for check 'example.com:PING'
Then an SNS alert for check 'example.com:PING' should be queued
And an email alert for check 'example.com:PING' should not be queued
Scenario: Queue an email alert
Given the user wants to receive email alerts for check 'example.com:PING'
When an event notification is generated for check 'example.com:PING'
Then an email alert for check 'example.com:PING' should be queued
And an SMS alert for check 'example.com:PING' should not be queued
Scenario: Queue SMS and email alerts
Given a user wants to receive SMS alerts for check 'example.com:PING'
And a user wants to receive email alerts for check 'example2.com:SSH'
When an event notification is generated for check 'example.com:PING'
And an event notification is generated for check 'example2.com:SSH'
Then an SMS alert for check 'example.com:PING' should be queued
And an SMS alert for check 'example2.com:SSH' should not be queued
Then an email alert for check 'example.com:PING' should not be queued
And an email alert for check 'example2.com:SSH' should be queued
Scenario: Send a queued SMS alert
Given a user wants to receive SMS alerts for check 'example.com:PING'
And an SMS alert has been queued for check 'example.com:PING'
When the SMS alert handler runs successfully
Then the user should receive an SMS alert
Scenario: Send a queued Nexmo alert
Given a user wants to receive Nexmo alerts for check 'example.com:PING'
And a Nexmo alert has been queued for check 'example.com:PING'
When the Nexmo alert handler runs successfully
Then the user should receive a Nexmo alert
Scenario: Send a queued SNS alert
Given a user wants to receive SNS alerts for check 'example.com:PING'
And an SNS alert has been queued for check 'example.com:PING'
When the SNS alert handler runs successfully
Then the user should receive an SNS alert
Scenario: Handle a failure to send a queued SMS alert
Given a user wants to receive SMS alerts for check 'example.com:PING'
And an SMS alert has been queued for check 'example.com:PING'
When the SMS alert handler fails to send an SMS
Then the user should not receive an SMS alert
Scenario: Handle a failure to send a queued SNS alert
Given a user wants to receive SNS alerts for check 'example.com:PING'
And an SNS alert has been queued for check 'example.com:PING'
When the SNS alert handler fails to send an SMS
Then the user should not receive an SNS alert
Scenario: Send a queued email alert
Given a user wants to receive email alerts for check 'example.com:PING'
And an email alert has been queued for check 'example.com:PING'
When the email alert handler runs successfully
Then the user should receive an email alert
Scenario: Handle a failure to send a queued email alert
Given a user wants to receive email alerts for check 'example.com:PING'
And an email alert has been queued for check 'example.com:PING'
When the email alert handler fails to send an email
Then the user should not receive an email alert