Skip to content

Commit

Permalink
[api] test not matching binary name for owner search
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 29, 2012
1 parent 2cecf95 commit aea0849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/test/functional/search_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def test_find_owner
post "/source/home:Iggy/_attribute", "<attributes><attribute namespace='OBS' name='OwnerRootProject' /></attributes>"
assert_response :success

get "/search/owner?binary=DOES_NOT_EXIST"
assert_response :success
assert_xml_tag :tag => 'collection', :children => { :count => 0 }

get "/search/owner?binary=package"
assert_response :success
assert_xml_tag :tag => 'owner', :attributes => { :rootproject => "home:Iggy", :project => "home:Iggy", :package => "TestPack" }
Expand Down

0 comments on commit aea0849

Please sign in to comment.