Commit 21770a42 authored by Stan Hu's avatar Stan Hu

Fix Geo spec

parent 4e0ef875
...@@ -7,6 +7,10 @@ describe GeoNodeStatusEntity, :postgresql do ...@@ -7,6 +7,10 @@ describe GeoNodeStatusEntity, :postgresql do
subject { entity.as_json } subject { entity.as_json }
before do
allow(Gitlab::Geo).to receive(:primary?).and_return(true)
end
it { is_expected.to have_key(:geo_node_id) } it { is_expected.to have_key(:geo_node_id) }
it { is_expected.to have_key(:healthy) } it { is_expected.to have_key(:healthy) }
it { is_expected.to have_key(:health) } it { is_expected.to have_key(:health) }
......
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