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
93f779ec
Commit
93f779ec
authored
Jan 24, 2022
by
Mark Lapierre
Committed by
Sanad Liaquat
Jan 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Stop using ReusableProject while investigating"
This reverts commit
37fefced
.
parent
cb8a5b23
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
15 deletions
+5
-15
qa/qa/resource/project_access_token.rb
qa/qa/resource/project_access_token.rb
+1
-3
qa/qa/specs/features/api/1_manage/project_access_token_spec.rb
.../specs/features/api/1_manage/project_access_token_spec.rb
+3
-6
qa/qa/specs/features/api/3_create/merge_request/push_options_labels_spec.rb
...es/api/3_create/merge_request/push_options_labels_spec.rb
+1
-6
No files found.
qa/qa/resource/project_access_token.rb
View file @
93f779ec
...
...
@@ -9,9 +9,7 @@ module QA
attribute
:id
attribute
:project
do
Project
.
fabricate!
do
|
project
|
project
.
initialize_with_readme
=
true
end
Project
.
fabricate!
end
attribute
:token
do
Page
::
Project
::
Settings
::
AccessTokens
.
perform
(
&
:created_access_token
)
...
...
qa/qa/specs/features/api/1_manage/project_access_token_spec.rb
View file @
93f779ec
...
...
@@ -4,7 +4,9 @@ module QA
RSpec
.
describe
'Manage'
do
describe
'Project access token'
do
before
(
:all
)
do
@project_access_token
=
QA
::
Resource
::
ProjectAccessToken
.
fabricate_via_api!
@project_access_token
=
QA
::
Resource
::
ProjectAccessToken
.
fabricate_via_api!
do
|
pat
|
pat
.
project
=
Resource
::
ReusableProject
.
fabricate_via_api!
end
@user_api_client
=
Runtime
::
API
::
Client
.
new
(
:gitlab
,
personal_access_token:
@project_access_token
.
token
)
end
...
...
@@ -76,11 +78,6 @@ module QA
@different_project
.
remove_via_api!
end
end
after
(
:all
)
do
@project_access_token
.
remove_via_api!
@project_access_token
.
project
.
remove_via_api!
end
end
end
end
qa/qa/specs/features/api/3_create/merge_request/push_options_labels_spec.rb
View file @
93f779ec
...
...
@@ -11,12 +11,7 @@ module QA
let
(
:title
)
{
"MR push options test
#{
SecureRandom
.
hex
(
8
)
}
"
}
let
(
:commit_message
)
{
'Add README.md'
}
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'merge-request-push-options'
project
.
initialize_with_readme
=
true
end
end
let
(
:project
)
{
Resource
::
ReusableProject
.
fabricate_via_api!
}
def
create_new_mr_via_push
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
push
|
...
...
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