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
ba18485e
Commit
ba18485e
authored
Feb 08, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/security/gitlab@13-8-stable-ee
parent
02529530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+4
-4
No files found.
spec/requests/api/projects_spec.rb
View file @
ba18485e
...
...
@@ -1687,7 +1687,7 @@ RSpec.describe API::Projects do
end
it
'returns a 404 error if not found'
do
get
api
(
'/projects/42'
,
user
)
get
api
(
"/projects/
#{
non_existing_record_id
}
"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
json_response
[
'message'
]).
to
eq
(
'404 Project Not Found'
)
end
...
...
@@ -2048,7 +2048,7 @@ RSpec.describe API::Projects do
end
it
'returns a 404 error if not found'
do
get
api
(
'/projects/42/users'
,
user
)
get
api
(
"/projects/
#{
non_existing_record_id
}
/users"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
json_response
[
'message'
]).
to
eq
(
'404 Project Not Found'
)
...
...
@@ -3177,7 +3177,7 @@ RSpec.describe API::Projects do
end
it
'fails if project to fork from does not exist'
do
post
api
(
'/projects/424242/fork'
,
user
)
post
api
(
"/projects/
#{
non_existing_record_id
}
/fork"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
json_response
[
'message'
]).
to
eq
(
'404 Project Not Found'
)
...
...
@@ -3211,7 +3211,7 @@ RSpec.describe API::Projects do
end
it
'fails if trying to fork to non-existent namespace'
do
post
api
(
"/projects/
#{
project
.
id
}
/fork"
,
user2
),
params:
{
namespace:
42424242
}
post
api
(
"/projects/
#{
project
.
id
}
/fork"
,
user2
),
params:
{
namespace:
non_existing_record_id
}
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
expect
(
json_response
[
'message'
]).
to
eq
(
'404 Namespace Not Found'
)
...
...
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