Remove Gitlab::Geo::Fdw.foreign_tables_up_to_date? method

parent 1b4093d8
...@@ -30,10 +30,6 @@ module Gitlab ...@@ -30,10 +30,6 @@ module Gitlab
FOREIGN_SCHEMA + ".#{table_name}" FOREIGN_SCHEMA + ".#{table_name}"
end end
def foreign_tables_up_to_date?
has_foreign_schema? && foreign_schema_tables_match?
end
# Number of existing tables # Number of existing tables
# #
# @return [Integer] number of tables # @return [Integer] number of tables
......
...@@ -101,24 +101,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do ...@@ -101,24 +101,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
end end
end end
describe '.foreign_tables_up_to_date?' do
it 'returns false when foreign schema does not exist' do
drop_foreign_schema
expect(described_class.foreign_tables_up_to_date?).to eq false
end
it 'returns false when foreign schema exists but tables in schema doesnt match' do
create_foreign_table(:gitlab_test)
expect(described_class.foreign_tables_up_to_date?).to eq false
end
it 'returns true when foreign schema exists and foreign schema has same tables as secondary database' do
expect(described_class.foreign_tables_up_to_date?).to eq true
end
end
describe '.foreign_schema_tables_count' do describe '.foreign_schema_tables_count' do
before do before do
drop_foreign_schema 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