~psivaa/uci-engine/rabbitmq-restish-with-proxy

« back to all changes in this revision

Viewing changes to lander/bin/lander_service_wrapper.py

  • Committer: Joe Talbott
  • Date: 2014-01-27 14:54:08 UTC
  • mfrom: (126.3.8 webui)
  • mto: This revision was merged to the branch mainline in revision 161.
  • Revision ID: joe.talbott@canonical.com-20140127145408-zpubebx02y6oumxq
merge doanac's cleanup branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                '/path/to/changes',
39
39
                '/path/to/dsc',
40
40
                '/path/to/diff.gz']}},
41
 
    'image_builder': {
42
 
        'result': 'PASSED',
43
 
        'image': '/path/to/image'},
44
41
    'test_runner': {
45
42
        'result': 'PASSED',
46
43
        'artifacts': [
162
159
 
163
160
 
164
161
def _handle_image_builder(args):
165
 
    # TODO implement
166
 
    return data['image_builder']
 
162
    config = _get_config(args)
 
163
    url = '%s/api/v1/build_image' % config['master']['imgbuilder_url']
 
164
 
 
165
    queue = '%s-imgbuilder' % config['master']['progress_trigger']
 
166
    params = {
 
167
        'base_image': config['master']['base_image'],
 
168
        'package_list': config['master']['package_list'],
 
169
        'ppa_list': [config['bsbuilder']['ppa']],
 
170
        'progress_trigger': queue,
 
171
    }
 
172
    _post(url, params)
 
173
    logger.info('starting progress handler...')
 
174
    return _drain_progress(args.amqp_config, queue)
167
175
 
168
176
 
169
177
def _handle_publisher(args):