forked from pool/python-sortinghat
* New features: + Improve loading and error indicators + Save URL to an individual's LinkedIn profile + Link to GitHub profile + Assign users to permission groups + Configuration for regular expressions in CORS + Dedicated queues in multi-tenancy + Organization aliases * Bug fixes: + Consistent date format for job executions + Match source parameter fixed in recommendations + Organizations aliases in Python client + Change password form fixed + Refetch general settings after they are changed + Profile view displays correct recommendations + Match recommendations job fixed - Drop patch use-correct-assertion-methods.patch, included. - Refresh all other patches. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortinghat?expand=0&rev=42
60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
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]
|
|
})
|