diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-19 18:09:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-19 18:09:10 +0300 |
commit | 9c8e8b5ffc6e11d827fa42f2dce5f90c4dc19493 (patch) | |
tree | fef494515627439a22a06addc7ff5f57d418778a /spec/factories | |
parent | 690c904b5e340f14c04f93ff688b647b46f7d1a2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/project_hooks.rb | 4 | ||||
-rw-r--r-- | spec/factories/users/namespace_user_callouts.rb | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/project_hooks.rb b/spec/factories/project_hooks.rb index 0f6845dc5ee..dbb5c357acb 100644 --- a/spec/factories/project_hooks.rb +++ b/spec/factories/project_hooks.rb @@ -29,5 +29,9 @@ FactoryBot.define do trait :with_push_branch_filter do push_events_branch_filter { 'my-branch-*' } end + + trait :permanently_disabled do + recent_failures { WebHook::FAILURE_THRESHOLD + 1 } + end end end diff --git a/spec/factories/users/namespace_user_callouts.rb b/spec/factories/users/namespace_user_callouts.rb new file mode 100644 index 00000000000..fded63d0cce --- /dev/null +++ b/spec/factories/users/namespace_user_callouts.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :namespace_callout, class: 'Users::NamespaceCallout' do + feature_name { :invite_members_banner } + + user + namespace + end +end |