Skip to content

Commit

Permalink
[Fixes #4322] SESSION_EXPIRED_CONTROL_ENABLE=True breaks GeoNode
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Apr 4, 2019
1 parent af5c82d commit c1eec2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ matrix:
ON_TRAVIS: 'True'
TEST_RUN_CORE: 'True'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
- name: "GeoServer-backend Contrib Apps Smoke Tests"
python: 2.7
virtualenv:
Expand Down Expand Up @@ -81,7 +81,7 @@ matrix:
TEST_RUN_INTEGRATION_CSW: 'True'
TEST_RUN_INTEGRATION_BDD: 'False'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
CELERY_ALWAYS_EAGER: 'True'
- name: "GeoServer-backend Integration BDD Tests"
python: 2.7
Expand All @@ -98,7 +98,7 @@ matrix:
TEST_RUN_INTEGRATION_CSW: 'False'
TEST_RUN_INTEGRATION_BDD: 'True'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
CELERY_ALWAYS_EAGER: 'True'
- name: "QGis Server-backend Core Modules Smoke Tests"
python: 2.7
Expand All @@ -117,7 +117,7 @@ matrix:
ON_TRAVIS: 'True'
TEST_RUN_CORE: 'True'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
CELERY_ALWAYS_EAGER: 'True'
- name: "QGis Server-backend Contrib Apps Smoke Tests"
python: 2.7
Expand All @@ -136,7 +136,7 @@ matrix:
ON_TRAVIS: 'True'
TEST_RUN_INTERNAL_APPS: 'True'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
CELERY_ALWAYS_EAGER: 'True'
- name: "QGis Server-backend Integration Tests"
python: 2.7
Expand All @@ -155,7 +155,7 @@ matrix:
ON_TRAVIS: 'True'
TEST_RUN_INTEGRATION: 'True'
MONITORING_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'False'
SESSION_EXPIRED_CONTROL_ENABLED: 'True'
CELERY_ALWAYS_EAGER: 'True'
- name: "Selenium Integration Tests"
python: 3.5
Expand Down
2 changes: 1 addition & 1 deletion geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
_db_conf = dj_database_url.parse(DATABASE_URL, conn_max_age=600)
_db_conf.update({'TIMEOUT': 60})
DATABASES = {
'default': dj_database_url.parse(DATABASE_URL, conn_max_age=600)
'default': _db_conf
}

if os.getenv('DEFAULT_BACKEND_DATASTORE'):
Expand Down
1 change: 0 additions & 1 deletion geonode/tests/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def test_layer_upload(self):
self.assertEquals(r.status_code, 200)
o = json.loads(r.text)
self.assertTrue('long-array-array' in o)
self.assertTrue(len(o['long-array-array']) > 0)

from geonode.geoserver.helpers import (get_sld_for,
fixup_style,
Expand Down

0 comments on commit c1eec2b

Please sign in to comment.