~gandelman-a/+junk/test-catalog

« back to all changes in this revision

Viewing changes to test_catalog/tests/tests.py

  • Committer: Adam Gandelman
  • Date: 2013-11-26 18:53:56 UTC
  • Revision ID: adamg@canonical.com-20131126185356-nhpion0cbcnmobxs
0.0.8

* Removes 'extra' json blob column, replaces with test_job_attribute table.

* Moves openstack-specific attributes from main build attributes
  to extra build attributes, allowing catalog to be used outside of Openstack
  build-driven CI.

* Drops some duplicate code, relies on db api instead of local pipeline
  db manager.

* Improved logging

* Improved searching for config files

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
parent_job = {
31
31
    'status': 'stable',
32
32
    'build_tag': 'jenkins-precise_grizzly_nova_trunk-654',
 
33
    'build_url': 'http://jenkins-server/jobs/precise_grizzly_nova_trunk-654',
33
34
    'pipeline_id': 'fc8d7956-5c6f-11e2-8bbc-abea641d28d4',
34
35
    'parent_build_tag': None,
35
36
    'extra': None,
36
 
    'ubuntu_release': 'precise',
37
 
    'openstack_release': 'grizzly',
38
 
    'openstack_component': 'nova',
39
 
    'openstack_branch': 'trunk',
40
37
}
41
38
 
42
39
 
45
42
    job['pipeline_id'] = str(uuid.uuid4())
46
43
    job['build_tag'] = 'tests_catalog-unittest-randomjob-%s' %\
47
44
                       random.randrange(1, 1000)
 
45
    job['build_url'] = 'http://jenkins/' + job['build_tag']
48
46
    return job
49
47
 
50
48