Merge lp:~tvansteenburgh/charms/precise/keystone/fix-tests into lp:~openstack-charmers-archive/charms/precise/keystone/trunk

Proposed by Tim Van Steenburgh
Status: Merged
Merged at revision: 67
Proposed branch: lp:~tvansteenburgh/charms/precise/keystone/fix-tests
Merge into: lp:~openstack-charmers-archive/charms/precise/keystone/trunk
Diff against target: 59 lines (+14/-2)
2 files modified
Makefile (+10/-2)
config.yaml (+4/-0)
To merge this branch: bzr merge lp:~tvansteenburgh/charms/precise/keystone/fix-tests
Reviewer Review Type Date Requested Status
Charles Butler (community) Approve
Review via email: mp+234222@code.launchpad.net

Description of the change

Fix tests, proof.

To post a comment you must log in.
Revision history for this message
Charles Butler (lazypower) wrote :

+1 LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2014-05-21 10:13:58 +0000
3+++ Makefile 2014-09-10 22:38:16 +0000
4@@ -5,9 +5,14 @@
5 @flake8 --exclude hooks/charmhelpers hooks unit_tests
6 @charm proof
7
8-test:
9+test: .venv
10 @echo Starting tests...
11- @$(PYTHON) /usr/bin/nosetests --nologcapture --with-coverage unit_tests
12+ .venv/bin/nosetests --nologcapture --with-coverage unit_tests
13+
14+.venv:
15+ sudo apt-get install -y python-virtualenv python-apt python-keystoneclient
16+ virtualenv .venv --system-site-packages
17+ .venv/bin/pip install -I nose mock pyyaml
18
19 sync:
20 @charm-helper-sync -c charm-helpers.yaml
21@@ -15,3 +20,6 @@
22 publish: lint test
23 bzr push lp:charms/keystone
24 bzr push lp:charms/trusty/keystone
25+
26+clean:
27+ rm -rf .venv
28
29=== modified file 'config.yaml'
30--- config.yaml 2014-03-27 10:54:38 +0000
31+++ config.yaml 2014-09-10 22:38:16 +0000
32@@ -92,6 +92,7 @@
33 # HA configuration settings
34 vip:
35 type: string
36+ default:
37 description: "Virtual IP to use to front keystone in ha configuration"
38 vip_iface:
39 type: string
40@@ -128,6 +129,7 @@
41 description: "Use SSL for Keystone itself. Set to 'yes' to enable it."
42 ssl_cert:
43 type: string
44+ default:
45 description: |
46 SSL certificate to install and use for API ports. Setting this value
47 and ssl_key will enable reverse proxying, point Keystone's entry in the
48@@ -135,9 +137,11 @@
49 issued by Keystone (if it is configured to do so).
50 ssl_key:
51 type: string
52+ default:
53 description: SSL key to use with certificate specified as ssl_cert.
54 ssl_ca:
55 type: string
56+ default:
57 description: |
58 SSL CA to use with the certificate and key provided - this is only
59 required if you are providing a privately signed ssl_cert and ssl_key.

Subscribers

People subscribed via source and target branches