Skip to content

A free open source IT asset/license management system

add google chat to audit notification test

Godfrey M1116da389e02
diff --git a/tests/Feature/Notifications/Webhooks/NotificationTests.php b/tests/Feature/Notifications/Webhooks/NotificationTests.php
index b7a23ab32f..09f3e8553c 100644
--- a/tests/Feature/Notifications/Webhooks/NotificationTests.php
+++ b/tests/Feature/Notifications/Webhooks/NotificationTests.php
@@ -36,6 +36,7 @@ class NotificationTests extends TestCase
$webhook_options = [
'enableSlackWebhook',
'enableMicrosoftTeamsWebhook',
+ 'enableGoogleChatWebhook'
];
Notification::fake();
diff --git a/tests/Support/Settings.php b/tests/Support/Settings.php
index bb255bc67c..1c5a68cd63 100644
--- a/tests/Support/Settings.php
+++ b/tests/Support/Settings.php
@@ -98,7 +98,16 @@ class Settings
return $this->update([
'webhook_selected' => 'microsoft',
'webhook_endpoint' => 'https://defaultd07ceb04416641fca1b9d3e0ac7600.84.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/1babbc7a3cdd4cf99c0fbed4367cf147/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=sVXmAYF5luz3oOEjvN-G7mJqEEvFjBSETuAG8c3Qmkg',
- ]);
+ ]);
+ }
+
+ public function enableGoogleChatWebhook(): Settings
+ {
+ return $this->update([
+ 'webhook_selected' => 'google',
+ 'webhook_botname' => 'SnipeBot5000',
+ 'webhook_endpoint' => 'https://chat.googleapis.com/v1/spaces/AAAATQckuT4/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=bZDaFDK4lO78HhHmC8BEWI6aAKkgqX2gFv2gHVAc8VQ',
+ ]);
}
public function disableSlackWebhook(): Settings