Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-sortinghat
allow-database-config-overrides.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File allow-database-config-overrides.patch of Package python-sortinghat
Index: grimoirelab-sortinghat-1.2.1/config/settings/config_testing.py =================================================================== --- grimoirelab-sortinghat-1.2.1.orig/config/settings/config_testing.py +++ grimoirelab-sortinghat-1.2.1/config/settings/config_testing.py @@ -1,3 +1,4 @@ +import os import sys import logging @@ -38,8 +39,8 @@ SQL_MODE = [ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', - 'USER': 'root', - 'PASSWORD': 'root', + 'USER': os.environ.get('TEST_SORTINGHAT_DB_USER', 'root'), + 'PASSWORD': os.environ.get('TEST_SORTINGHAT_DB_PASSWORD', 'root'), 'NAME': 'sortinghat_db', 'OPTIONS': { 'charset': 'utf8mb4', @@ -49,9 +50,10 @@ DATABASES = { 'NAME': 'testhat', 'CHARSET': 'utf8mb4', 'COLLATION': 'utf8mb4_unicode_520_ci', + 'MIRROR': False }, 'HOST': '127.0.0.1', - 'PORT': 3306 + 'PORT': os.environ.get('TEST_SORTINGHAT_DB_PORT', 3306) } } Index: grimoirelab-sortinghat-1.2.1/config/settings/config_testing_tenant.py =================================================================== --- grimoirelab-sortinghat-1.2.1.orig/config/settings/config_testing_tenant.py +++ grimoirelab-sortinghat-1.2.1/config/settings/config_testing_tenant.py @@ -15,8 +15,8 @@ TENANTS_DEDICATED_QUEUES = [t["name"] fo DATABASES.update({ tenant: { 'ENGINE': 'django.db.backends.mysql', - 'USER': 'root', - 'PASSWORD': 'root', + 'USER': os.environ.get('TEST_SORTINGHAT_DB_USER', 'root'), + 'PASSWORD': os.environ.get('TEST_SORTINGHAT_DB_PASSWORD', 'root'), 'NAME': tenant, 'OPTIONS': { 'charset': 'utf8mb4', @@ -26,9 +26,10 @@ DATABASES.update({ 'NAME': tenant, 'CHARSET': 'utf8mb4', 'COLLATION': 'utf8mb4_unicode_520_ci', + 'MIRROR': False }, 'HOST': '127.0.0.1', - 'PORT': 3306 + 'PORT': os.environ.get('TEST_SORTINGHAT_DB_PORT', 3306) } for tenant in [t["name"] for t in tenants_cfg] })
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor