Commit 05253ecc authored by Stan Hu's avatar Stan Hu

Restrict Geo tests to PostgreSQL

parent f1b9fc04
require 'spec_helper'
describe Admin::GeoNodesController do
describe Admin::GeoNodesController, :postgresql do
shared_examples 'unlicensed geo action' do
it 'redirects to the license page' do
expect(response).to redirect_to(admin_license_path)
......
require 'spec_helper'
describe Gitlab::Geo::HealthCheck do
describe Gitlab::Geo::HealthCheck, :postgresql do
let!(:secondary) { create(:geo_node, :current) }
subject { described_class }
describe '.perform_checks' do
before do
skip("Not using PostgreSQL") unless Gitlab::Database.postgresql?
end
it 'returns a string if database is not fully migrated' do
allow(Gitlab::Geo).to receive(:secondary?) { true }
allow(Gitlab::Geo).to receive(:secondary_role_enabled?).and_return(true)
......
require 'spec_helper'
describe GeoNodeStatusEntity do
describe GeoNodeStatusEntity, :postgresql do
let(:geo_node_status) do
GeoNodeStatus.new(
id: 1,
......
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