Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
78f32f6f
Commit
78f32f6f
authored
Jun 04, 2021
by
Andrejs Cunskis
Committed by
Mark Lapierre
Jun 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Move label migration validation in to existing spec
parent
631c7c83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
qa/qa/page/group/new.rb
qa/qa/page/group/new.rb
+3
-0
qa/qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb
...tures/browser_ui/1_manage/group/bulk_import_group_spec.rb
+9
-24
No files found.
qa/qa/page/group/new.rb
View file @
78f32f6f
...
...
@@ -52,6 +52,9 @@ module QA
# @param [String] gitlab_token
# @return [void]
def
connect_gitlab_instance
(
gitlab_url
,
gitlab_token
)
# Wait until element is present and refresh if not in case feature flag did not kick in
wait_until
(
max_duration:
10
)
{
has_element?
(
:import_gitlab_url
,
wait:
1
)
}
set_gitlab_url
(
gitlab_url
)
set_gitlab_token
(
gitlab_token
)
...
...
qa/qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb
View file @
78f32f6f
...
...
@@ -3,19 +3,20 @@
module
QA
RSpec
.
describe
'Manage'
,
:requires_admin
do
describe
'Bulk group import'
do
let!
(
:api_client
)
{
Runtime
::
API
::
Client
.
as_admin
}
let!
(
:a
dmin_a
pi_client
)
{
Runtime
::
API
::
Client
.
as_admin
}
let!
(
:user
)
do
Resource
::
User
.
fabricate_via_api!
do
|
usr
|
usr
.
api_client
=
api_client
usr
.
api_client
=
a
dmin_a
pi_client
usr
.
hard_delete_on_api_removal
=
true
end
end
let!
(
:personal_access_token
)
{
Runtime
::
API
::
Client
.
new
(
user:
user
).
personal_access_token
}
let!
(
:api_client
)
{
Runtime
::
API
::
Client
.
new
(
user:
user
)
}
let!
(
:personal_access_token
)
{
api_client
.
personal_access_token
}
let!
(
:sandbox
)
do
Resource
::
Sandbox
.
fabricate_via_api!
do
|
group
|
group
.
api_client
=
api_client
group
.
api_client
=
a
dmin_a
pi_client
end
end
...
...
@@ -61,7 +62,6 @@ module QA
before
do
sandbox
.
add_member
(
user
,
Resource
::
Members
::
AccessLevel
::
MAINTAINER
)
source_group
.
add_member
(
user
,
Resource
::
Members
::
AccessLevel
::
MAINTAINER
)
Flow
::
Login
.
sign_in
(
as:
user
)
Page
::
Main
::
Menu
.
new
.
go_to_import_group
...
...
@@ -71,30 +71,13 @@ module QA
# Non blocking issues:
# https://gitlab.com/gitlab-org/gitlab/-/issues/331252
it
(
'imports group with subgroups'
,
'imports group with subgroups
and labels
'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1785'
,
quarantine:
{
only:
{
job:
'relative_url'
},
issue:
'https://gitlab.com/gitlab-org/gitlab/-/issues/330344'
,
type: :bug
}
)
do
Page
::
Group
::
BulkImport
.
perform
do
|
import_page
|
import_page
.
import_group
(
source_group
.
path
,
sandbox
.
path
)
aggregate_failures
do
expect
(
import_page
).
to
have_imported_group
(
source_group
.
path
,
wait:
120
)
expect
{
imported_group
.
reload!
}.
to
eventually_eq
(
source_group
).
within
(
duration:
30
)
expect
{
imported_subgroup
.
reload!
}.
to
eventually_eq
(
subgroup
).
within
(
duration:
30
)
end
end
end
it
(
'imports group labels'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1785'
,
quarantine:
{
issue:
'https://gitlab.com/gitlab-org/gitlab/-/issues/331704'
,
type: :bug
}
)
do
Resource
::
GroupLabel
.
fabricate_via_api!
do
|
label
|
label
.
api_client
=
api_client
...
...
@@ -113,6 +96,9 @@ module QA
aggregate_failures
do
expect
(
import_page
).
to
have_imported_group
(
source_group
.
path
,
wait:
120
)
expect
{
imported_group
.
reload!
}.
to
eventually_eq
(
source_group
).
within
(
duration:
10
)
expect
{
imported_subgroup
.
reload!
}.
to
eventually_eq
(
subgroup
).
within
(
duration:
10
)
expect
{
imported_group
.
labels
}.
to
eventually_include
(
*
source_group
.
labels
).
within
(
duration:
10
)
expect
{
imported_subgroup
.
labels
}.
to
eventually_include
(
*
subgroup
.
labels
).
within
(
duration:
10
)
end
...
...
@@ -121,7 +107,6 @@ module QA
after
do
user
.
remove_via_api!
source_group
.
remove_via_api!
end
after
(
:all
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment