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
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 15:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-08 15:09:27 +0300
commit81f062b841f6062601662061850934a51e77ceea (patch)
tree0851038895c34776af8603f13b546b50df511e36 /qa
parente40061efd4c68576da944254567d0b3fbc233ae4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/specs/features/api/1_manage/import/import_github_repo_spec.rb20
1 files changed, 9 insertions, 11 deletions
diff --git a/qa/qa/specs/features/api/1_manage/import/import_github_repo_spec.rb b/qa/qa/specs/features/api/1_manage/import/import_github_repo_spec.rb
index c59a4f468df..d2874fce855 100644
--- a/qa/qa/specs/features/api/1_manage/import/import_github_repo_spec.rb
+++ b/qa/qa/specs/features/api/1_manage/import/import_github_repo_spec.rb
@@ -48,18 +48,16 @@ module QA
end
def verify_protected_branches_import
- branches = imported_project.protected_branches.map do |branch|
- branch.slice(:name, :allow_force_push, :code_owner_approval_required)
+ # TODO: Add validation once https://gitlab.com/groups/gitlab-org/-/epics/8585 is closed
+ # At the moment both options are always set to false regardless of state in github
+ # allow_force_push: true,
+ # code_owner_approval_required: true
+ imported_branches = imported_project.protected_branches.map do |branch|
+ branch.slice(:name)
end
- expect(branches.first).to include(
- {
- name: 'main'
- # TODO: Add validation once https://gitlab.com/groups/gitlab-org/-/epics/8585 is closed
- # At the moment both options are always set to false regardless of state in github
- # allow_force_push: true,
- # code_owner_approval_required: true
- }
- )
+ actual_branches = [{ name: 'main' }, { name: 'release' }]
+
+ expect(imported_branches).to match_array(actual_branches)
end
def verify_commits_import