Commit 09aec212 authored by Robert Speicher's avatar Robert Speicher

Mark a subgroup-related spec as PostgreSQL-only

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/34847
parent 7c35ecf7
...@@ -466,13 +466,13 @@ describe Group, models: true do ...@@ -466,13 +466,13 @@ describe Group, models: true do
it_behaves_like 'ref is protected' it_behaves_like 'ref is protected'
end end
context 'when group has children' do context 'when group has children', :postgresql do
let!(:group_child) { create(:group, parent: group) } let(:group_child) { create(:group, parent: group) }
let!(:variable_child) { create(:ci_group_variable, group: group_child) } let(:group_child_2) { create(:group, parent: group_child) }
let!(:group_child_3) { create(:group, parent: group_child_2) } let(:group_child_3) { create(:group, parent: group_child_2) }
let!(:variable_child_3) { create(:ci_group_variable, group: group_child_3) } let(:variable_child) { create(:ci_group_variable, group: group_child) }
let!(:group_child_2) { create(:group, parent: group_child) } let(:variable_child_2) { create(:ci_group_variable, group: group_child_2) }
let!(:variable_child_2) { create(:ci_group_variable, group: group_child_2) } let(:variable_child_3) { create(:ci_group_variable, group: group_child_3) }
it 'returns all variables belong to the group and parent groups' do it 'returns all variables belong to the group and parent groups' do
expected_array1 = [protected_variable, secret_variable] expected_array1 = [protected_variable, secret_variable]
......
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