Skip to content

Commit a1458b9

Browse files
committed
add tests and readme
1 parent d755544 commit a1458b9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ In general, my focus on this project is to implement and deliver old and new fea
137137
- Update ethe interval fo the alert rule group
138138
- Delete alert rule
139139
- Get all contact points
140+
- Get contact point by name
140141
- Add contact point
141142
- Update contact point
142143
- Delete contact point

tests/integrationtest/test_alerting_provisioning.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ def test_i_update_contact_point(self):
119119
"test1", self.alerting_provisioning.get_all_contact_points()[1].get("name")
120120
)
121121

122+
def test_j_get_specific_contact_points(self):
123+
self.assertEqual(
124+
"email receiver",
125+
self.alerting_provisioning.get_contact_point("email receiver")[0],
126+
)
127+
122128
def test_j_get_notification_policies(self):
123129
self.assertEqual(
124130
"grafana-default-email",

0 commit comments

Comments
 (0)