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
3a971ca9
Commit
3a971ca9
authored
Sep 05, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests by using non-exist tag names
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3162140d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/api/repositories_spec.rb
spec/requests/api/repositories_spec.rb
+5
-5
No files found.
spec/requests/api/repositories_spec.rb
View file @
3a971ca9
...
@@ -26,23 +26,23 @@ describe API::API, api: true do
...
@@ -26,23 +26,23 @@ describe API::API, api: true do
context
'lightweight tags'
do
context
'lightweight tags'
do
it
'should create a new tag'
do
it
'should create a new tag'
do
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user
),
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user
),
tag_name:
'v
1.0.0
'
,
tag_name:
'v
7.0.1
'
,
ref:
'master'
ref:
'master'
response
.
status
.
should
==
201
response
.
status
.
should
==
201
json_response
[
'name'
].
should
==
'v
1.0.0
'
json_response
[
'name'
].
should
==
'v
7.0.1
'
end
end
end
end
context
'annotated tag'
do
context
'annotated tag'
do
it
'should create a new annotated tag'
do
it
'should create a new annotated tag'
do
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user
),
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user
),
tag_name:
'v
1
.1.0'
,
tag_name:
'v
7
.1.0'
,
ref:
'master'
,
ref:
'master'
,
message:
'tag message'
message:
'tag message'
response
.
status
.
should
==
201
response
.
status
.
should
==
201
json_response
[
'name'
].
should
==
'v
1.0
.0'
json_response
[
'name'
].
should
==
'v
7.1
.0'
# The message is not part of the JSON response.
# The message is not part of the JSON response.
# Additional changes to the gitlab_git gem may be required.
# Additional changes to the gitlab_git gem may be required.
# json_response['message'].should == 'tag message'
# json_response['message'].should == 'tag message'
...
@@ -51,7 +51,7 @@ describe API::API, api: true do
...
@@ -51,7 +51,7 @@ describe API::API, api: true do
it
'should deny for user without push access'
do
it
'should deny for user without push access'
do
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user2
),
post
api
(
"/projects/
#{
project
.
id
}
/repository/tags"
,
user2
),
tag_name:
'v1.
2
.0'
,
tag_name:
'v1.
9
.0'
,
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
ref:
'621491c677087aa243f165eab467bfdfbee00be1'
response
.
status
.
should
==
403
response
.
status
.
should
==
403
end
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