forked from pool/python-sortinghat
* SortingHat as a service * GraphQL client headers updated * Migration command for SortingHat 0.7: sortinghat-admin migrate-old-database * Groups table removed from the UI * Fix search syntax link (#735) * Fix outdated recommendation count (#733) * Verify SSL option for client * Multi-tenancy mode * Drag and drop to enroll in teams * Create account command * Import identities automatically (#746) * Order individuals by indentities (#732) * Set top domain from UI (#729) * Static files not included in wheel package * Tenant selection in job fixed * SortingHat database performance * uWSGI threads and workers * Performance improved for recommendations and merging jobs * Multi-tenancy using headers * Job timeouts * Fix enrollment in individual's profile * Edit a profile name with the pencil button (#773) * Unreadable large numbers in pagination (#770) * Sort jobs from newest to oldest (#769) * Organization profiles * Show when tables are loading (#772) * Enrollment filter on organizations view * ADD button doesn't affiliate individuals to organizations * Email affiliation error (#793) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortinghat?expand=0&rev=36
60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
Index: grimoirelab-sortinghat-0.11.1/config/settings/testing.py
|
|
===================================================================
|
|
--- grimoirelab-sortinghat-0.11.1.orig/config/settings/testing.py
|
|
+++ grimoirelab-sortinghat-0.11.1/config/settings/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-0.11.1/config/settings/testing_tenant.py
|
|
===================================================================
|
|
--- grimoirelab-sortinghat-0.11.1.orig/config/settings/testing_tenant.py
|
|
+++ grimoirelab-sortinghat-0.11.1/config/settings/testing_tenant.py
|
|
@@ -5,8 +5,8 @@ from .testing import SQL_MODE, DATABASES
|
|
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',
|
|
@@ -16,9 +16,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 ['tenant_1', 'tenant_2']
|
|
})
|