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>2020-11-27 15:09:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-27 15:09:14 +0300
commit95ff19a65c5236863e4c7c7e198bfc1e2fa70f07 (patch)
treee543a0b23941611b93a7d435b7644eafcdd8cbeb /spec/factories/projects.rb
parent2df573afed782aebce8c020d92b42e9da7d2868e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 639fff06cec..413244acaa1 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -32,6 +32,7 @@ FactoryBot.define do
visibility_level == Gitlab::VisibilityLevel::PUBLIC ? ProjectFeature::ENABLED : ProjectFeature::PRIVATE
end
metrics_dashboard_access_level { ProjectFeature::PRIVATE }
+ operations_access_level { ProjectFeature::ENABLED }
# we can't assign the delegated `#ci_cd_settings` attributes directly, as the
# `#ci_cd_settings` relation needs to be created first
@@ -57,7 +58,8 @@ FactoryBot.define do
merge_requests_access_level: merge_requests_access_level,
repository_access_level: evaluator.repository_access_level,
pages_access_level: evaluator.pages_access_level,
- metrics_dashboard_access_level: evaluator.metrics_dashboard_access_level
+ metrics_dashboard_access_level: evaluator.metrics_dashboard_access_level,
+ operations_access_level: evaluator.operations_access_level
}
project.build_project_feature(hash)
@@ -322,6 +324,9 @@ FactoryBot.define do
trait(:metrics_dashboard_enabled) { metrics_dashboard_access_level { ProjectFeature::ENABLED } }
trait(:metrics_dashboard_disabled) { metrics_dashboard_access_level { ProjectFeature::DISABLED } }
trait(:metrics_dashboard_private) { metrics_dashboard_access_level { ProjectFeature::PRIVATE } }
+ trait(:operations_enabled) { operations_access_level { ProjectFeature::ENABLED } }
+ trait(:operations_disabled) { operations_access_level { ProjectFeature::DISABLED } }
+ trait(:operations_private) { operations_access_level { ProjectFeature::PRIVATE } }
trait :auto_devops do
association :auto_devops, factory: :project_auto_devops