mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 05:57:28 +00:00
Send PPA test requests into PPA AMQP queues
This separates them from Ubuntu and upstream test requests, avoids that any of those can completely starve the other two, and makes queues easier to manage.
This commit is contained in:
parent
53c338581b
commit
f4fd77c9ed
@ -458,8 +458,10 @@ class AutoPackageTest(object):
|
||||
params = {'triggers': [trigger]}
|
||||
if self.britney.options.adt_ppas:
|
||||
params['ppas'] = self.britney.options.adt_ppas
|
||||
qname = 'debci-ppa-%s-%s' % (self.series, arch)
|
||||
else:
|
||||
qname = 'debci-%s-%s' % (self.series, arch)
|
||||
params = json.dumps(params)
|
||||
qname = 'debci-%s-%s' % (self.series, arch)
|
||||
|
||||
if self.amqp_channel:
|
||||
self.amqp_channel.basic_publish(amqp.Message(src + '\n' + params), routing_key=qname)
|
||||
|
@ -1731,8 +1731,9 @@ class T(TestBase):
|
||||
}})
|
||||
|
||||
for arch in ['i386', 'amd64']:
|
||||
self.assertTrue('debci-series-%s:lightgreen {"triggers": ["lightgreen/2"], "ppas": ["joe/foo", "awesome-developers/staging"]}' % arch in self.amqp_requests or
|
||||
'debci-series-%s:lightgreen {"ppas": ["joe/foo", "awesome-developers/staging"], "triggers": ["lightgreen/2"]}' % arch in self.amqp_requests)
|
||||
self.assertTrue('debci-ppa-series-%s:lightgreen {"triggers": ["lightgreen/2"], "ppas": ["joe/foo", "awesome-developers/staging"]}' % arch in self.amqp_requests or
|
||||
'debci-ppa-series-%s:lightgreen {"ppas": ["joe/foo", "awesome-developers/staging"], "triggers": ["lightgreen/2"]}' % arch in self.amqp_requests,
|
||||
self.amqp_requests)
|
||||
self.assertEqual(len(self.amqp_requests), 2)
|
||||
|
||||
# add results to PPA specific swift container
|
||||
|
Loading…
x
Reference in New Issue
Block a user