From 407feaacbf883b7ac730817eba6c1884b32b9e76 Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Tue, 19 Mar 2024 11:46:45 -0400 Subject: [PATCH] test: Add all needed settings --- test_settings.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/test_settings.py b/test_settings.py index 1f41438..22b7119 100644 --- a/test_settings.py +++ b/test_settings.py @@ -4,6 +4,8 @@ In a real-world use case, apps in this project are installed into other Django applications, so these settings will not be used. """ +from platform_plugin_aspects import ROOT_DIRECTORY + DATABASES = { "default": { @@ -58,7 +60,28 @@ ########################### # Settings for our project + +EVENT_SINK_CLICKHOUSE_BACKEND_CONFIG = { + # URL to a running ClickHouse server's HTTP interface. ex: https://foo.openedx.org:8443/ or + # http://foo.openedx.org:8123/ . Note that we only support the ClickHouse HTTP interface + # to avoid pulling in more dependencies to the platform than necessary. + "url": "http://clickhouse:8123", + "username": "ch_cms", + "password": "password", + "database": "event_sink", + "timeout_secs": 5, +} + +EVENT_SINK_CLICKHOUSE_PII_MODELS = [ + "user_profile", + "external_id", +] + EVENT_SINK_CLICKHOUSE_MODEL_CONFIG = { + "auth_user": { + "module": "django.contrib.auth.models", + "model": "User", + }, "user_profile": { "module": "common.djangoapps.student.models", "model": "UserProfile", @@ -67,6 +90,14 @@ "module": "openedx.core.djangoapps.content.course_overviews.models", "model": "CourseOverview", }, + "external_id": { + "module": "openedx.core.djangoapps.external_user_ids.models", + "model": "ExternalId", + }, + "custom_course_edx": { + "module": "lms.djangoapps.ccx.models", + "model": "CustomCourseForEdX", + }, } EVENT_SINK_CLICKHOUSE_COURSE_OVERVIEWS_ENABLED = True