Skip to content

Commit

Permalink
[ci] write fixtures with comment
Browse files Browse the repository at this point in the history
And in-validate a bugreport that we don't support meta history of packages ;)
  • Loading branch information
adrianschroeter committed Nov 17, 2016
1 parent 04fd3ff commit 40fa9a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/script/start_test_backend
Expand Up @@ -209,11 +209,11 @@ end

puts 'Writing config data...'
Project.all.each do |p|
Suse::Backend.put("/source/#{CGI.escape(p.name)}/_meta?user=king", p.to_axml)
Suse::Backend.put("/source/#{CGI.escape(p.name)}/_meta?user=king&comment=fixtures", p.to_axml)
end
Package.all.each do |p|
next if p.name.starts_with? "_product:"
Suse::Backend.put("/source/#{CGI.escape(p.project.name)}/#{CGI.escape(p.name)}/_meta?user=king", p.to_axml)
Suse::Backend.put("/source/#{CGI.escape(p.project.name)}/#{CGI.escape(p.name)}/_meta?user=king&comment=fixtures", p.to_axml)
end
Suse::Backend.put('/issue_trackers', IssueTracker.all.to_xml(IssueTracker::DEFAULT_RENDER_PARAMS))
Suse::Backend.put('/source/BaseDistro/_config?user=king', 'Repotype: rpm-md-legacy')
Expand Down
7 changes: 7 additions & 0 deletions src/api/test/functional/source_controller_test.rb
Expand Up @@ -260,6 +260,13 @@ def test_get_package_meta
get '/source/kde4/kdelibs/_meta'
assert_response :success
assert_xml_tag tag: 'package', attributes: { name: 'kdelibs' }

# check history
get '/source/kde4/kdelibs/_history?meta=1'
assert_response :success
assert_xml_tag(tag: 'revisionlist')
assert_xml_tag(tag: 'user', content: 'king')
assert_xml_tag(tag: 'comment', content: 'fixtures')
end

def test_get_package_meta_from_hidden_project
Expand Down

0 comments on commit 40fa9a3

Please sign in to comment.