Skip to content

Commit

Permalink
[Fixes #3987] GeoFence Management commands are not resilient to dupli…
Browse files Browse the repository at this point in the history
…cated rules
  • Loading branch information
afabiani committed Oct 15, 2018
1 parent 8d9c335 commit eb0c913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/security/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_set_bulk_permissions(self):
# 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, (geofence_rules_count - 1))
self.assertEquals(geofence_rules_highest_priority, 7)

# Try GWC Invalidation
# - it should not work here since the layer has not been uploaded to GeoServer
Expand Down Expand Up @@ -304,7 +304,7 @@ def test_layer_permissions(self):

geofence_rules_count = get_geofence_rules_count()
_log("0. geofence_rules_count: %s " % geofence_rules_count)
self.assertTrue(geofence_rules_count == 2)
self.assertEquals(geofence_rules_count, 2)

# Set the layer private for not authenticated users
layer.set_permissions({'users': {'AnonymousUser': []}})
Expand Down

0 comments on commit eb0c913

Please sign in to comment.