Commit 1acfc754 authored by ayufanpl's avatar ayufanpl

shared_runner_minutes_on_root_namespace run only on nested groups

parent ca877e93
...@@ -120,7 +120,7 @@ feature 'Groups > Pipeline Quota' do ...@@ -120,7 +120,7 @@ feature 'Groups > Pipeline Quota' do
end end
end end
context 'with shared_runner_minutes_on_root_namespace enabled' do context 'with shared_runner_minutes_on_root_namespace enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
......
...@@ -341,7 +341,7 @@ describe Namespace do ...@@ -341,7 +341,7 @@ describe Namespace do
end end
end end
context 'when shared_runner_minutes_on_root_namespace is enabled' do context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
...@@ -380,7 +380,7 @@ describe Namespace do ...@@ -380,7 +380,7 @@ describe Namespace do
it { is_expected.to be_truthy } it { is_expected.to be_truthy }
context 'when is subgroup' do context 'when is subgroup', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
namespace.parent = build(:group) namespace.parent = build(:group)
...@@ -413,7 +413,7 @@ describe Namespace do ...@@ -413,7 +413,7 @@ describe Namespace do
end end
end end
context 'when shared_runner_minutes_on_root_namespace is enabled' do context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
......
...@@ -549,7 +549,7 @@ describe Project do ...@@ -549,7 +549,7 @@ describe Project do
end end
end end
context 'when shared_runner_minutes_on_root_namespace is enabled' do context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
......
...@@ -90,7 +90,7 @@ module Ci ...@@ -90,7 +90,7 @@ module Ci
end end
end end
context 'when shared_runner_minutes_on_root_namespace is enabled' do context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
......
...@@ -27,7 +27,7 @@ describe 'admin/groups/_form' do ...@@ -27,7 +27,7 @@ describe 'admin/groups/_form' do
end end
end end
describe 'when :shared_runner_minutes_on_root_namespace is enabled' do describe 'when :shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end end
......
...@@ -61,7 +61,7 @@ describe UpdateBuildMinutesService do ...@@ -61,7 +61,7 @@ describe UpdateBuildMinutesService do
end end
end end
context 'when shared_runner_minutes_on_root_namespace is enabled' do context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
let(:namespace) { create(:namespace, parent: root_ancestor) } let(:namespace) { create(:namespace, parent: root_ancestor) }
before do before do
......
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