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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
eab7fa1a
Commit
eab7fa1a
authored
Sep 12, 2019
by
Mark Lapierre
Committed by
Sanad Liaquat
Sep 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test to not try to sign out
Because it will already be signed out
parent
80e9f7f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
qa/qa/runtime/api/client.rb
qa/qa/runtime/api/client.rb
+8
-1
qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb
...s/api/3_create/repository/project_archive_compare_spec.rb
+1
-2
No files found.
qa/qa/runtime/api/client.rb
View file @
eab7fa1a
...
...
@@ -53,7 +53,14 @@ module QA
Page
::
Main
::
Login
.
perform
{
|
login
|
login
.
sign_in_using_credentials
(
@user
)
}
end
Resource
::
PersonalAccessToken
.
fabricate!
.
access_token
token
=
Resource
::
PersonalAccessToken
.
fabricate!
.
access_token
# If this is a new session, that tests that follow could fail if they
# try to sign in without starting a new session
# Sign out so the tests can successfully sign in
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
if
@is_new_session
token
end
end
end
...
...
qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb
View file @
eab7fa1a
...
...
@@ -21,7 +21,6 @@ module QA
user_info
[
:api_client
]
=
Runtime
::
API
::
Client
.
new
(
:gitlab
,
user:
user_info
[
:user
])
user_info
[
:api_client
].
personal_access_token
user_info
[
:project
]
=
create_project
(
user_info
[
:user
],
user_info
[
:api_client
],
@project_name
)
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
end
end
...
...
@@ -43,7 +42,7 @@ module QA
end
def
create_project
(
user
,
api_client
,
project_name
)
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
=
Resource
::
Project
.
fabricate
_via_api
!
do
|
project
|
project
.
standalone
=
true
project
.
add_name_uuid
=
false
project
.
name
=
project_name
...
...
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