webhooks: Fix Canarytokens pluralization.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-12-16 12:34:08 -08:00 committed by Anders Kaseorg
parent cd8a01587b
commit dc72f79a83
4 changed files with 4 additions and 4 deletions

View File

@ -356,7 +356,7 @@ WEBHOOK_INTEGRATIONS: List[WebhookIntegration] = [
legacy=True,
),
WebhookIntegration("buildbot", ["continuous-integration"], display_name="Buildbot"),
WebhookIntegration("canarytoken", ["monitoring"], display_name="Thinkst Canarytoken"),
WebhookIntegration("canarytoken", ["monitoring"], display_name="Thinkst Canarytokens"),
WebhookIntegration("circleci", ["continuous-integration"], display_name="CircleCI"),
WebhookIntegration("clubhouse", ["project-management"]),
WebhookIntegration("codeship", ["continuous-integration", "deployment"]),

View File

@ -1,7 +1,7 @@
from zerver.lib.test_classes import WebhookTestCase
class CanarytokenHookTests(WebhookTestCase):
class CanarytokensHookTests(WebhookTestCase):
STREAM_NAME = "canarytoken"
URL_TEMPLATE = "/api/v1/external/canarytoken?stream={stream}&api_key={api_key}"
WEBHOOK_DIR_NAME = "canarytoken"

View File

@ -10,7 +10,7 @@ from zerver.lib.webhooks.common import check_send_webhook_message
from zerver.models import UserProfile
@webhook_view("Canarytoken")
@webhook_view("Canarytokens")
@has_request_variables
def api_canarytoken_webhook(
request: HttpRequest,

View File

@ -1,6 +1,6 @@
See your Thinkst Canary and Canarytoken alerts in Zulip! This integration works with
Canarytokens from Thinkst's paid product, not [canarytokens.org][canarytokens] - see the
[Canarytoken](/integrations/doc/canarytoken) integration for those!
[Canarytokens](/integrations/doc/canarytoken) integration for those!
1. {!create-stream.md!}