Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:55:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:55:51 +0300
commite8d2c2579383897a1dd7f9debd359abe8ae8373d (patch)
treec42be41678c2586d49a75cabce89322082698334 /spec/lib/gitlab/kas_spec.rb
parentfc845b37ec3a90aaa719975f607740c22ba6a113 (diff)
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/lib/gitlab/kas_spec.rb')
-rw-r--r--spec/lib/gitlab/kas_spec.rb44
1 files changed, 0 insertions, 44 deletions
diff --git a/spec/lib/gitlab/kas_spec.rb b/spec/lib/gitlab/kas_spec.rb
index c9d40f785b8..24d2b03fe2a 100644
--- a/spec/lib/gitlab/kas_spec.rb
+++ b/spec/lib/gitlab/kas_spec.rb
@@ -104,48 +104,4 @@ RSpec.describe Gitlab::Kas do
end
end
end
-
- describe '.included_in_gitlab_com_rollout?' do
- let_it_be(:project) { create(:project) }
-
- context 'not GitLab.com' do
- before do
- allow(Gitlab).to receive(:com?).and_return(false)
- end
-
- it 'returns true' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_truthy
- end
- end
-
- context 'GitLab.com' do
- before do
- allow(Gitlab).to receive(:com?).and_return(true)
- end
-
- context 'kubernetes_agent_on_gitlab_com feature flag disabled' do
- before do
- stub_feature_flags(kubernetes_agent_on_gitlab_com: false)
- end
-
- it 'returns false' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_falsey
- end
- end
-
- context 'kubernetes_agent_on_gitlab_com feature flag enabled' do
- before do
- stub_feature_flags(kubernetes_agent_on_gitlab_com: project)
- end
-
- it 'returns true' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_truthy
- end
-
- it 'returns false for another project' do
- expect(described_class.included_in_gitlab_com_rollout?(create(:project))).to be_falsey
- end
- end
- end
- end
end