Skip to content

Commit

Permalink
New test: find released updates since
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Dec 13, 2013
1 parent 16b2f86 commit e7c6292
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/find_released_updates_since.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env ruby
#
# find_released_updates_since.rb
#
# Script to find released updates for SUSE Manager
#
# Uses dm-bugzilla-adapter to query bugzilla.novell.com
#
require 'rubygems'
require 'helper'
require 'dm-core'
require 'dm-bugzilla-adapter'

DataMapper::Logger.new(STDOUT, :debug)
keeper = DataMapper.setup(:default,
:adapter => 'bugzilla',
:url => 'https://bugzilla.novell.com')

require 'bugzilla/bug'
DataMapper.finalize

bugs = Bug.all(:product.like => "SUSE Manager", :resolution => "FIXED", :whiteboard.like => "released")

bugs.each do |bug|
puts "%s: %s" % [bug.id, bug.summary]
end

0 comments on commit e7c6292

Please sign in to comment.