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
e2d37e6c
Commit
e2d37e6c
authored
Jan 31, 2022
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicit comparison of mr comments
parent
1436b533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
qa/qa/specs/features/api/1_manage/migration/gitlab_migration_mr_spec.rb
...atures/api/1_manage/migration/gitlab_migration_mr_spec.rb
+3
-3
No files found.
qa/qa/specs/features/api/1_manage/migration/gitlab_migration_mr_spec.rb
View file @
e2d37e6c
...
...
@@ -29,7 +29,8 @@ module QA
let!
(
:source_comment
)
{
source_mr
.
add_comment
(
'This is a test comment!'
)
}
let
(
:imported_mrs
)
{
imported_project
.
merge_requests
}
let
(
:imported_mr_comments
)
{
imported_mr
.
comments
}
let
(
:imported_mr_comments
)
{
imported_mr
.
comments
.
map
{
|
note
|
note
.
except
(
:id
,
:noteable_id
)
}
}
let
(
:source_mr_comments
)
{
source_mr
.
comments
.
map
{
|
note
|
note
.
except
(
:id
,
:noteable_id
)
}
}
let
(
:imported_mr
)
do
Resource
::
MergeRequest
.
init
do
|
mr
|
...
...
@@ -53,8 +54,7 @@ module QA
aggregate_failures
do
expect
(
imported_mr
).
to
eq
(
source_mr
.
reload!
)
expect
(
imported_mr_comments
.
count
).
to
eq
(
1
)
expect
(
imported_mr_comments
.
first
.
except
(
:id
,
:noteable_id
)).
to
eq
(
source_comment
.
except
(
:id
,
:noteable_id
))
expect
(
imported_mr_comments
).
to
eq
(
source_mr_comments
)
end
end
end
...
...
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