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
2f2ac9c7
Commit
2f2ac9c7
authored
Nov 16, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Generate unique name for imported project
parent
84c244c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb
...es/browser_ui/1_manage/project/import_github_repo_spec.rb
+3
-5
No files found.
qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb
View file @
2f2ac9c7
...
@@ -4,7 +4,6 @@ module QA
...
@@ -4,7 +4,6 @@ module QA
RSpec
.
describe
'Manage'
,
:github
,
:requires_admin
do
RSpec
.
describe
'Manage'
,
:github
,
:requires_admin
do
describe
'Project import'
do
describe
'Project import'
do
let
(
:github_repo
)
{
'gitlab-qa-github/test-project'
}
let
(
:github_repo
)
{
'gitlab-qa-github/test-project'
}
let
(
:imported_project_name
)
{
'imported-project'
}
let
(
:api_client
)
{
Runtime
::
API
::
Client
.
as_admin
}
let
(
:api_client
)
{
Runtime
::
API
::
Client
.
as_admin
}
let
(
:group
)
{
Resource
::
Group
.
fabricate_via_api!
{
|
resource
|
resource
.
api_client
=
api_client
}
}
let
(
:group
)
{
Resource
::
Group
.
fabricate_via_api!
{
|
resource
|
resource
.
api_client
=
api_client
}
}
let
(
:user
)
do
let
(
:user
)
do
...
@@ -17,11 +16,10 @@ module QA
...
@@ -17,11 +16,10 @@ module QA
let
(
:imported_project
)
do
let
(
:imported_project
)
do
Resource
::
ProjectImportedFromGithub
.
init
do
|
project
|
Resource
::
ProjectImportedFromGithub
.
init
do
|
project
|
project
.
import
=
true
project
.
import
=
true
project
.
add_name_uuid
=
false
project
.
name
=
imported_project_name
project
.
group
=
group
project
.
group
=
group
project
.
github_personal_access_token
=
Runtime
::
Env
.
github_access_token
project
.
github_personal_access_token
=
Runtime
::
Env
.
github_access_token
project
.
github_repository_path
=
github_repo
project
.
github_repository_path
=
github_repo
project
.
api_client
=
api_client
end
end
end
end
...
@@ -43,7 +41,7 @@ module QA
...
@@ -43,7 +41,7 @@ module QA
it
'imports a GitHub repo'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1607'
do
it
'imports a GitHub repo'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1607'
do
Page
::
Project
::
Import
::
Github
.
perform
do
|
import_page
|
Page
::
Project
::
Import
::
Github
.
perform
do
|
import_page
|
import_page
.
add_personal_access_token
(
Runtime
::
Env
.
github_access_token
)
import_page
.
add_personal_access_token
(
Runtime
::
Env
.
github_access_token
)
import_page
.
import!
(
github_repo
,
group
.
full_path
,
imported_project
_
name
)
import_page
.
import!
(
github_repo
,
group
.
full_path
,
imported_project
.
name
)
aggregate_failures
do
aggregate_failures
do
expect
(
import_page
).
to
have_imported_project
(
github_repo
)
expect
(
import_page
).
to
have_imported_project
(
github_repo
)
...
@@ -56,7 +54,7 @@ module QA
...
@@ -56,7 +54,7 @@ module QA
imported_project
.
reload!
.
visit!
imported_project
.
reload!
.
visit!
Page
::
Project
::
Show
.
perform
do
|
project
|
Page
::
Project
::
Show
.
perform
do
|
project
|
aggregate_failures
do
aggregate_failures
do
expect
(
project
).
to
have_content
(
imported_project
_
name
)
expect
(
project
).
to
have_content
(
imported_project
.
name
)
expect
(
project
).
to
have_content
(
'This test project is used for automated GitHub import by GitLab QA.'
)
expect
(
project
).
to
have_content
(
'This test project is used for automated GitHub import by GitLab QA.'
)
end
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