Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
d64de9d1
Commit
d64de9d1
authored
1 year ago
by
Andrejs Cunskis
Committed by
Chloe Liu
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
E2E: subgroup support for source group in import spec
parent
fdfacf13
No related branches found
No related tags found
1 merge request
!135118
E2E: subgroup support for source group in import spec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qa/qa/specs/features/api/1_manage/migration/gitlab_migration_large_project_spec.rb
+7
-1
7 additions, 1 deletion
...1_manage/migration/gitlab_migration_large_project_spec.rb
with
7 additions
and
1 deletion
qa/qa/specs/features/api/1_manage/migration/gitlab_migration_large_project_spec.rb
+
7
−
1
View file @
d64de9d1
...
...
@@ -34,7 +34,13 @@ module QA
let!
(
:source_api_client
)
{
source_admin_api_client
}
let!
(
:source_group
)
do
create
(
:sandbox
,
api_client:
source_api_client
,
path:
gitlab_source_group
)
paths
=
gitlab_source_group
.
split
(
"/"
)
sandbox
=
build
(
:sandbox
,
api_client:
source_api_client
,
path:
paths
.
first
).
reload!
next
sandbox
if
paths
.
size
==
1
paths
[
1
..
].
each_with_object
([
sandbox
])
do
|
path
,
arr
|
arr
<<
build
(
:group
,
api_client:
source_api_client
,
sandbox:
arr
.
last
,
path:
path
).
reload!
end
.
last
end
# generate unique target group because source group has a static name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment