Skip to content

Commit

Permalink
[api] remove duplicated test and fix one (invalids are 400 and not 404)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Jul 24, 2013
1 parent a63f582 commit da1cb22
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/test/functional/maintenance_test.rb
Expand Up @@ -1373,13 +1373,9 @@ def test_create_maintenance_project_and_release_packages
def test_create_invalid_patchinfo
prepare_request_with_user "tom", "thunder"
# collons in patchinfo names are not allowed but common mistake
post "https://api.opensuse.org/source/home:tom?cmd=createpatchinfo&force=1&name=home:tom"
post "/source/home:tom?cmd=createpatchinfo&force=1&name=home:tom"
assert_response 400
assert_xml_tag :tag => "status", :attributes => { :code => "invalid_package_name" }

post "https://api.opensuse.org/source/home:tom?cmd=createpatchinfo&force=1&name=home:tom"
assert_response 404
assert_xml_tag :tag => "status", :attributes => { :code => "invalid_package_name" }
end

def test_create_invalid_submit_request
Expand Down

0 comments on commit da1cb22

Please sign in to comment.