mirror of https://github.com/zulip/zulip.git
webhooks: Fix Canarytokens pluralization.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
cd8a01587b
commit
dc72f79a83
|
@ -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"]),
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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!}
|
||||
|
||||
|
|
Loading…
Reference in New Issue