Skip to content

Commit

Permalink
test: Add all needed settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Mar 19, 2024
1 parent fbaf8d3 commit 407feaa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 407feaa

Please sign in to comment.