~canonical-ci-engineering/autopkgtest-result-checker/snappy-image-tests

« back to all changes in this revision

Viewing changes to README.rst

  • Committer: Ubuntu CI Bot
  • Author(s): Celso Providelo
  • Date: 2015-04-01 01:46:42 UTC
  • mfrom: (5.1.2 flake8)
  • Revision ID: ubuntu_ci_bot-20150401014642-1ur4cv6w1kzpls3p
Installing flake8 for tests and benefiting of its integration with setuptools for processing all installed files. [r=Thomi Richards]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Core Result Checker
2
2
###################
3
3
 
4
 
A micro-service that checks results from the core-image-tester and makes them public.
 
4
A micro-service that checks results from the core-image-tester and makes
 
5
them public.
 
6
 
 
7
 
 
8
Get the Source
 
9
==============
 
10
 
 
11
Branch the code::
 
12
 
 
13
  $ bzr branch lp:core-result-checker
 
14
 
 
15
 
 
16
Install the Service
 
17
===================
 
18
 
 
19
Build and activate a virtualenv with python3::
 
20
 
 
21
  $ virtualenv -p python3 --system-site-packages ve
 
22
  $ . ve/bin/activate
 
23
 
 
24
Install dependencies from pypi::
 
25
 
 
26
  $ pip install -r requirements.txt
 
27
 
 
28
Install the service itself::
 
29
 
 
30
  $ python setup.py install
 
31
 
 
32
...you may want to install it in 'development mode', which symlinks files, 
 
33
so you can edit/re-run without having to re-install the service. In that 
 
34
case, run::
 
35
 
 
36
  $ python setup.py develop
 
37
 
 
38
 
 
39
Run the tests!
 
40
==============
 
41
 
 
42
Install dependencies::
 
43
 
 
44
  $ pip install -r test_requirements.txt
 
45
 
 
46
Run those tests - with vigour!::
 
47
 
 
48
  $ python setup.py test
 
49
 
 
50
Also with elegance in mind::
 
51
 
 
52
  $ python setup.py flake8
 
53
 
 
54
 
 
55
The config file
 
56
===============
 
57
 
 
58
The sample configuration file in 'core-service.conf'::
 
59
 
 
60
  [amqp]
 
61
  uris = amqp://guest:guest@localhost:5672//
 
62
 
 
63
  [nova]
 
64
  os_username = foo
 
65
  os_password = <redacted>
 
66
  os_tenant_name = foo_project
 
67
  os_auth_url = http://172.20.161.138:5000/v2.0/
 
68
 
 
69
...optionally, add a logstash section, which will turn on the logstash
 
70
handler::
 
71
 
 
72
  [logstash]
 
73
  host = 127.0.0.1
 
74
  port = 1234
 
75
  version = 1