Skip to content
Snippets Groups Projects
Commit 5b257778 authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch 'rs-issue-34847' into 'master'

Mark a subgroup-related spec as PostgreSQL-only

Closes #34847

See merge request !12722
parents 4800291c 09aec212
No related branches found
No related tags found
2 merge requests!14773Maxraab master patch 51809,!12722Mark a subgroup-related spec as PostgreSQL-only
Pipeline #
Loading
Loading
@@ -466,13 +466,13 @@ describe Group, models: true do
it_behaves_like 'ref is protected'
end
 
context 'when group has children' do
let!(:group_child) { create(:group, parent: group) }
let!(:variable_child) { create(:ci_group_variable, group: group_child) }
let!(:group_child_3) { create(:group, parent: group_child_2) }
let!(:variable_child_3) { create(:ci_group_variable, group: group_child_3) }
let!(:group_child_2) { create(:group, parent: group_child) }
let!(:variable_child_2) { create(:ci_group_variable, group: group_child_2) }
context 'when group has children', :postgresql do
let(:group_child) { create(:group, parent: group) }
let(:group_child_2) { create(:group, parent: group_child) }
let(:group_child_3) { create(:group, parent: group_child_2) }
let(:variable_child) { create(:ci_group_variable, group: group_child) }
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
expected_array1 = [protected_variable, secret_variable]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment