BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a8f2977c
Commit
a8f2977c
authored
May 26, 2014
by
Sean Edge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixup for HoundCI. Fix up some small issues in docs.
parent
435740b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
repositories.md
doc/api/repositories.md
+2
-2
repositories_spec.rb
spec/requests/api/repositories_spec.rb
+6
-5
No files found.
doc/api/repositories.md
View file @
a8f2977c
...
...
@@ -59,9 +59,9 @@ Parameters:
"message"
:
"Initial commit"
,
"authored_date"
:
"2012-05-28T04:42:42-07:00"
,
"author_name"
:
"John Smith"
,
"author email"
:
"john@example.com"
"author email"
:
"john@example.com"
,
"committer_name"
:
"Jack Smith"
,
"committed_date"
:
"2012-05-28T04:42:42-07:00"
"committed_date"
:
"2012-05-28T04:42:42-07:00"
,
"committer_email"
:
"jack@example.com"
},
"protected"
:
false
...
...
spec/requests/api/repositories_spec.rb
View file @
a8f2977c
...
...
@@ -26,17 +26,18 @@ describe API::API, api: true do
describe
'POST /projects/:id/repository/tags'
do
it
'should create a new tag'
do
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user
),
tag_name:
'v1.0.0'
,
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
tag_name:
'v1.0.0'
,
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
response
.
status
.
should
==
201
json_response
.
first
[
'name'
].
should
==
'v1.0.0'
json_response
[
'commit'
][
'id'
].
should
==
'621491c677087aa243f165eab467bfdfbee00be1'
json_response
[
'commit'
][
'id'
].
should
==
'621491c677087aa243f165eab467bfdfbee00be1'
end
it
'should deny for user without push access'
do
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user2
),
tag_name:
'v1.0.0'
,
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
tag_name:
'v1.0.0'
,
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
response
.
status
.
should
==
403
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