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
05ed0577
Commit
05ed0577
authored
Dec 01, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Validate project wiki migration
parent
84e148c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
qa/qa/resource/project.rb
qa/qa/resource/project.rb
+4
-0
qa/qa/specs/features/ee/api/1_manage/bulk_import_project_spec.rb
...pecs/features/ee/api/1_manage/bulk_import_project_spec.rb
+18
-0
No files found.
qa/qa/resource/project.rb
View file @
05ed0577
...
...
@@ -368,6 +368,10 @@ module QA
parse_body
(
response
)
end
def
create_wiki_page
(
title
:,
content
:)
api_post_to
(
api_wikis_path
,
title:
title
,
content:
content
)
end
# Object comparison
#
# @param [QA::Resource::Project] other
...
...
qa/qa/specs/features/ee/api/1_manage/bulk_import_project_spec.rb
View file @
05ed0577
...
...
@@ -182,6 +182,24 @@ module QA
expect
(
imported_commits
).
to
match_array
(
source_commits
)
expect
(
imported_tags
).
to
match_array
(
source_tags
)
expect
(
imported_branches
).
to
match_array
(
source_branches
)
expect
(
project_import_failures
).
to
be_empty
,
"Expected no errors, was:
#{
project_import_failures
}
"
end
end
end
context
'with wiki'
do
before
do
source_project
.
create_wiki_page
(
title:
'Import test project wiki'
,
content:
'Wiki content'
)
imported_group
# trigger import
end
it
'successfully imports project wiki'
do
expect
{
imported_group
.
import_status
}.
to
eventually_eq
(
'finished'
).
within
(
import_wait_duration
)
expect
(
imported_projects
.
count
).
to
eq
(
1
),
'Expected to have 1 imported project'
aggregate_failures
do
expect
(
imported_projects
.
first
.
wikis
).
to
eq
(
source_project
.
wikis
)
expect
(
project_import_failures
).
to
be_empty
,
"Expected no errors, was:
#{
project_import_failures
}
"
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