Commit 3a971ca9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests by using non-exist tag names

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3162140d
......@@ -26,23 +26,23 @@ describe API::API, api: true do
context 'lightweight tags' do
it 'should create a new tag' do
post api("/projects/#{project.id}/repository/tags", user),
tag_name: 'v1.0.0',
tag_name: 'v7.0.1',
ref: 'master'
response.status.should == 201
json_response['name'].should == 'v1.0.0'
json_response['name'].should == 'v7.0.1'
end
end
context 'annotated tag' do
it 'should create a new annotated tag' do
post api("/projects/#{project.id}/repository/tags", user),
tag_name: 'v1.1.0',
tag_name: 'v7.1.0',
ref: 'master',
message: 'tag message'
response.status.should == 201
json_response['name'].should == 'v1.0.0'
json_response['name'].should == 'v7.1.0'
# The message is not part of the JSON response.
# Additional changes to the gitlab_git gem may be required.
# json_response['message'].should == 'tag message'
......@@ -51,7 +51,7 @@ describe API::API, api: true do
it 'should deny for user without push access' do
post api("/projects/#{project.id}/repository/tags", user2),
tag_name: 'v1.2.0',
tag_name: 'v1.9.0',
ref: '621491c677087aa243f165eab467bfdfbee00be1'
response.status.should == 403
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment