Commit d6e2af85 authored by Gabriel Mazetto's avatar Gabriel Mazetto Committed by Michael Kozono

Remove validation on sync_object_storage as it added undesired effects

parent c245ffeb
......@@ -22,7 +22,6 @@ class GeoNode < ApplicationRecord
validates :primary, uniqueness: { message: 'node already exists' }, if: :primary
validates :enabled, if: :primary, acceptance: { message: 'Geo primary node cannot be disabled' }
validates :sync_object_storage, if: :primary, inclusion: { in: [false], message: 'Geo primary node doesnt use sync_object_storage value' }
validates :access_key, presence: true
validates :encrypted_secret_access_key, presence: true
......
......@@ -43,13 +43,6 @@ describe GeoNode, :geo, type: :model do
expect(primary_node).not_to be_valid
expect(primary_node.errors).to include(:enabled)
end
it 'requires sync_object_storage to be disabled' do
primary_node.sync_object_storage = true
expect(primary_node).not_to be_valid
expect(primary_node.errors).to include(:sync_object_storage)
end
end
context 'when validating url' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment