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
29054aef
Commit
29054aef
authored
Jul 07, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary variables, add testcase meta
parent
56d37ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
qa/qa/specs/features/api/1_manage/import_github_repo_spec.rb
qa/qa/specs/features/api/1_manage/import_github_repo_spec.rb
+2
-5
No files found.
qa/qa/specs/features/api/1_manage/import_github_repo_spec.rb
View file @
29054aef
...
...
@@ -3,9 +3,6 @@
module
QA
RSpec
.
describe
'Manage'
,
:github
,
:requires_admin
do
describe
'Project import'
do
let!
(
:github_user
)
{
'gitlab-qa-github'
}
let!
(
:github_repo
)
{
'test-project'
}
let!
(
:api_client
)
{
Runtime
::
API
::
Client
.
as_admin
}
let!
(
:group
)
{
Resource
::
Group
.
fabricate_via_api!
{
|
resource
|
resource
.
api_client
=
api_client
}
}
let!
(
:user
)
do
...
...
@@ -20,7 +17,7 @@ module QA
project
.
name
=
'imported-project'
project
.
group
=
group
project
.
github_personal_access_token
=
Runtime
::
Env
.
github_access_token
project
.
github_repository_path
=
"
#{
github_user
}
/
#{
github_repo
}
"
project
.
github_repository_path
=
'gitlab-qa-github/test-project'
project
.
api_client
=
api_client
end
end
...
...
@@ -33,7 +30,7 @@ module QA
user
.
remove_via_api!
end
it
'imports Github repo via api'
do
it
'imports Github repo via api'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1858'
do
imported_project
# import the project
expect
{
imported_project
.
reload!
.
import_status
}.
to
eventually_eq
(
'finished'
).
within
(
duration:
90
)
...
...
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