Remove legacy queries methods from Gitlab::Geo::Fdw

parent d32c03d3
......@@ -23,10 +23,6 @@ module Gitlab
!enabled?
end
def enabled_for_selective_sync?
enabled? && Feature.enabled?(:use_fdw_queries_for_selective_sync, default_enabled: true)
end
# Return full table name with foreign schema
#
# @param [String] table_name
......
......@@ -99,40 +99,6 @@ describe Gitlab::Geo::Fdw, :geo do
end
end
describe '.enabled_for_selective_sync?' do
context 'when the feature flag is enabled' do
before do
stub_feature_flags(use_fdw_queries_for_selective_sync: true)
end
it 'returns false when FDW is disabled' do
allow(described_class).to receive(:enabled?).and_return(false)
expect(described_class.enabled_for_selective_sync?).to eq false
end
it 'returns true when FDW is enabled' do
expect(described_class.enabled_for_selective_sync?).to eq true
end
end
context 'when the feature flag is disabled' do
before do
stub_feature_flags(use_fdw_queries_for_selective_sync: false)
end
it 'returns false when FDW is disabled' do
allow(described_class).to receive(:enabled?).and_return(false)
expect(described_class.enabled_for_selective_sync?).to eq false
end
it 'returns false when FDW is enabled' do
expect(described_class.enabled_for_selective_sync?).to eq false
end
end
end
describe '.foreign_tables_up_to_date?' do
it 'returns false when foreign schema does not exist' do
drop_foreign_schema
......
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