Skip to content

Commit 17d36e1

Browse files
author
Matthew Fisher
committed
fix(controller): use postgresql for tests
sqlite3 does not support database transactions, which Deis uses heavily in both the scheduler as well as in other components. Regardless, our dev and test environments should be running the tests on the same environment, so that we can ensure that the tests should run the same in both environments.
1 parent 9e11148 commit 17d36e1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

controller/deis/settings.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,8 @@
285285
# default to sqlite3, but allow postgresql config through envvars
286286
DATABASES = {
287287
'default': {
288-
'ENGINE': 'django.db.backends.' + os.environ.get('DATABASE_ENGINE', 'sqlite3'),
289-
'NAME': os.environ.get('DATABASE_NAME', 'deis.db'),
290-
'USER': os.environ.get('DATABASE_USER', 'deis'),
291-
'PASSWORD': os.environ.get('DATABASE_PASSWORD', 'deis'),
292-
'HOST': os.environ.get('DATABASE_HOST', 'localhost'),
288+
'ENGINE': 'django.db.backends.' + os.environ.get('DATABASE_ENGINE', 'postgresql_psycopg2'),
289+
'NAME': os.environ.get('DATABASE_NAME', 'deis'),
293290
}
294291
}
295292

0 commit comments

Comments
 (0)