Commit e13da065 authored by Leo Iannacone's avatar Leo Iannacone

test distribution packages

parent 79dd2046
......@@ -93,6 +93,18 @@ describe 'client', ->
data.should.be.eql(['trusty', 'unstable'])
done()
it 'on getting distribution packages', (done) ->
helper.make_package('unstable', 'test_1.2.3')
helper.make_package('unstable', 'test_1.2.4')
client.emit(events.client.distribution_packages, helper.get_query('unstable'))
client.on events.client.distribution_packages, (data) ->
data.distribution.name.should.be.eql('unstable')
packages_name = []
for p in data.distribution.packages
packages_name.push(p.orig_name)
packages_name.should.be.eql(['test_1.2.3', 'test_1.2.4'])
done()
it 'on getting package list', (done) ->
helper.make_file('unstable', 'test_1.2.3', 'buildlog', 'test')
helper.make_file('unstable', 'test_1.2.3', 'lintian', 'test')
......
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