Skip to content

Commit 4ba912c

Browse files
committed
[tests] Updated notifications links (https)
1 parent 3ac0576 commit 4ba912c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openwisp_monitoring/device/tests/test_device_notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setUp(self):
2121
def _generic_notification_test(
2222
self, exp_level, exp_type, exp_verb, exp_message, exp_email_subject
2323
):
24-
exp_target_link = f'http://example.com/admin/config/device/{self.d.id}/change/'
24+
exp_target_link = f'https://example.com/admin/config/device/{self.d.id}/change/'
2525
exp_email_body = '{message}' f'\n\nFor more information see {exp_target_link}.'
2626

2727
n = Notification.objects.first()

openwisp_monitoring/monitoring/tests/test_monitoring_notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_email_notification(self):
317317
d = self._create_device(organization=self._get_org())
318318
m = self._create_general_metric(name='load', content_object=d)
319319
self._create_alert_settings(metric=m, operator='>', value=90, seconds=0)
320-
exp_target_link = f'http://example.com/admin/config/device/{d.id}/change/'
320+
exp_target_link = f'https://example.com/admin/config/device/{d.id}/change/'
321321
exp_email_body = '{message}' f'\n\nFor more information see {exp_target_link}.'
322322

323323
with self.subTest('Test notification email for metric crossed alert settings'):
@@ -358,7 +358,7 @@ def test_notification_types(self):
358358
self._create_alert_settings(metric=m, operator='>', value=90, seconds=0)
359359
exp_message = (
360360
'<p>{n.actor.name} for device '
361-
'"<a href="http://example.com/admin/openwisp_users/user/{n.target.id}/change/">tester</a>"'
361+
'<a href="https://example.com/admin/openwisp_users/user/{n.target.id}/change/">tester</a>'
362362
' {n.verb}.</p>'
363363
)
364364
with self.subTest("Test notification for 'alert settings crossed'"):

0 commit comments

Comments
 (0)