Skip to content

Commit

Permalink
- fix travix build
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 17, 2018
1 parent 81b0e7e commit 4b631e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions geonode/security/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ def test_set_bulk_permissions(self):
# Check GeoFence Rules have been correctly created
geofence_rules_count = get_geofence_rules_count()
_log("4. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 9)
self.assertEquals(geofence_rules_count, 10)

# Validate maximum priority
geofence_rules_highest_priority = get_highest_priority()
_log("5. geofence_rules_highest_priority: %s " % geofence_rules_highest_priority)
self.assertEquals(geofence_rules_highest_priority, 9)
self.assertTrue(geofence_rules_highest_priority > 0)

# Try GWC Invalidation
# - it should not work here since the layer has not been uploaded to GeoServer
Expand Down Expand Up @@ -714,7 +714,7 @@ def test_not_superuser_permissions(self):
# Check GeoFence Rules have been correctly created
geofence_rules_count = get_geofence_rules_count()
_log("3. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 2)
self.assertEquals(geofence_rules_count, 3)

# 5. change_resourcebase_permissions
# should be impossible for the user without change_resourcebase_permissions
Expand Down
1 change: 0 additions & 1 deletion geonode/security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ def purge_geofence_all():
r = requests.get(url + 'geofence/rest/rules.json',
headers=headers,
auth=HTTPBasicAuth(user, passwd))

if (r.status_code < 200 or r.status_code > 201):
logger.warning("Could not Retrieve GeoFence Rules")
else:
Expand Down

0 comments on commit 4b631e5

Please sign in to comment.