Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasb committed Dec 10, 2024
1 parent 81a7f46 commit 3baf624
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ run-backend-server:
run-backend-celery:
$(call backend_command,python manage.py start_celery)

run-backend-test:
$(call backend_command,pytest --ds=extensions.engine_enterprise.settings.ci_test --reuse-db $(ARGS))

backend-command:
$(call backend_command,$(CMD))

Expand Down
1 change: 1 addition & 0 deletions dev/.env.dev.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ MATTERMOST_CLIENT_OAUTH_SECRET=
MATTERMOST_HOST=
MATTERMOST_BOT_TOKEN=
MATTERMOST_LOGIN_RETURN_REDIRECT_HOST=http://localhost:8080
MATTERMOST_SIGNING_SECRET=

DJANGO_SETTINGS_MODULE=settings.dev
SECRET_KEY=jyRnfRIeMjYfKdoFa9dKXcNaEGGc8GH1TChmYoWW
Expand Down
3 changes: 0 additions & 3 deletions engine/apps/api/tests/test_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,3 @@ def test_get_organization_telegram_config_checks(
assert response.status_code == status.HTTP_200_OK
expected_result["is_integration_chatops_connected"] = True
assert response.json() == expected_result


# TODO: Add test to validate mattermost is integrated once integration PR changes are made
4 changes: 2 additions & 2 deletions engine/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class DatabaseTypes:
"drf_spectacular",
"apps.google",
"apps.chatops_proxy",
"apps.mattermost",
# "apps.mattermost",
]

if DATABASE_TYPE == DatabaseTypes.MYSQL:
Expand Down Expand Up @@ -731,7 +731,7 @@ class BrokerTypes:
SLACK_INTEGRATION_MAINTENANCE_ENABLED = os.environ.get("SLACK_INTEGRATION_MAINTENANCE_ENABLED", False)

# Mattermost
FEATURE_MATTERMOST_INTEGRATION_ENABLED = os.environ.get("FEATURE_MATTERMOST_INTEGRATION_ENABLED", True)
FEATURE_MATTERMOST_INTEGRATION_ENABLED = os.environ.get("FEATURE_MATTERMOST_INTEGRATION_ENABLED", False)
MATTERMOST_CLIENT_OAUTH_ID = os.environ.get("MATTERMOST_CLIENT_OAUTH_ID")
MATTERMOST_CLIENT_OAUTH_SECRET = os.environ.get("MATTERMOST_CLIENT_OAUTH_SECRET")
MATTERMOST_HOST = os.environ.get("MATTERMOST_HOST")
Expand Down
6 changes: 3 additions & 3 deletions engine/settings/celery_task_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"apps.webhooks.tasks.alert_group_status.alert_group_created": {"queue": "webhook"},
"apps.webhooks.tasks.alert_group_status.alert_group_status_change": {"queue": "webhook"},
# MATTERMOST
"apps.mattermost.tasks.on_create_alert_async": {"queue": "mattermost"},
"apps.mattermost.tasks.on_alert_group_action_triggered_async": {"queue": "mattermost"},
"apps.mattermost.tasks.notify_user_about_alert_async": {"queue": "mattermost"},
# "apps.mattermost.tasks.on_create_alert_async": {"queue": "mattermost"},
# "apps.mattermost.tasks.on_alert_group_action_triggered_async": {"queue": "mattermost"},
# "apps.mattermost.tasks.notify_user_about_alert_async": {"queue": "mattermost"},
}

0 comments on commit 3baf624

Please sign in to comment.