forked from pool/python-sortinghat
- Update to 1.5.1:
* Update Poetry dependencies. - Add patch support-new-django-graphql-jwt.patch: * Stop calling a now removed method in new django-graphql-jwt. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortinghat?expand=0&rev=48
This commit is contained in:
59
allow-database-config-overrides.patch
Normal file
59
allow-database-config-overrides.patch
Normal file
@@ -0,0 +1,59 @@
|
||||
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]
|
||||
})
|
||||
Reference in New Issue
Block a user