mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
integrations: Rename IFTTT view function to match conventions.
This commit is contained in:
@@ -536,12 +536,7 @@ WEBHOOK_INTEGRATIONS: list[WebhookIntegration] = [
|
|||||||
WebhookIntegration("helloworld", ["misc"], display_name="Hello World"),
|
WebhookIntegration("helloworld", ["misc"], display_name="Hello World"),
|
||||||
WebhookIntegration("heroku", ["deployment"]),
|
WebhookIntegration("heroku", ["deployment"]),
|
||||||
WebhookIntegration("homeassistant", ["misc"], display_name="Home Assistant"),
|
WebhookIntegration("homeassistant", ["misc"], display_name="Home Assistant"),
|
||||||
WebhookIntegration(
|
WebhookIntegration("ifttt", ["meta-integration"], display_name="IFTTT"),
|
||||||
"ifttt",
|
|
||||||
["meta-integration"],
|
|
||||||
function="zerver.webhooks.ifttt.view.api_iftt_app_webhook",
|
|
||||||
display_name="IFTTT",
|
|
||||||
),
|
|
||||||
WebhookIntegration("insping", ["monitoring"]),
|
WebhookIntegration("insping", ["monitoring"]),
|
||||||
WebhookIntegration("intercom", ["customer-support"]),
|
WebhookIntegration("intercom", ["customer-support"]),
|
||||||
# Avoid collision with jira-plugin's doc "jira/doc.md".
|
# Avoid collision with jira-plugin's doc "jira/doc.md".
|
||||||
|
@@ -5,7 +5,7 @@ class IFTTTHookTests(WebhookTestCase):
|
|||||||
CHANNEL_NAME = "ifttt"
|
CHANNEL_NAME = "ifttt"
|
||||||
URL_TEMPLATE = "/api/v1/external/ifttt?stream={stream}&api_key={api_key}"
|
URL_TEMPLATE = "/api/v1/external/ifttt?stream={stream}&api_key={api_key}"
|
||||||
WEBHOOK_DIR_NAME = "ifttt"
|
WEBHOOK_DIR_NAME = "ifttt"
|
||||||
VIEW_FUNCTION_NAME = "api_iftt_app_webhook"
|
VIEW_FUNCTION_NAME = "api_ifttt_webhook"
|
||||||
|
|
||||||
def test_ifttt_when_subject_and_body_are_correct(self) -> None:
|
def test_ifttt_when_subject_and_body_are_correct(self) -> None:
|
||||||
expected_topic_name = "Email sent from email@email.com"
|
expected_topic_name = "Email sent from email@email.com"
|
||||||
|
@@ -13,7 +13,7 @@ from zerver.models import UserProfile
|
|||||||
|
|
||||||
@webhook_view("IFTTT")
|
@webhook_view("IFTTT")
|
||||||
@typed_endpoint
|
@typed_endpoint
|
||||||
def api_iftt_app_webhook(
|
def api_ifttt_webhook(
|
||||||
request: HttpRequest,
|
request: HttpRequest,
|
||||||
user_profile: UserProfile,
|
user_profile: UserProfile,
|
||||||
*,
|
*,
|
||||||
|
Reference in New Issue
Block a user