Merge lp:~tvansteenburgh/charms/precise/quantum-gateway/fix-tests into lp:charms/quantum-gateway

Proposed by Tim Van Steenburgh
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~tvansteenburgh/charms/precise/quantum-gateway/fix-tests
Merge into: lp:charms/quantum-gateway
Diff against target: 55 lines (+13/-2)
2 files modified
Makefile (+10/-2)
config.yaml (+3/-0)
To merge this branch: bzr merge lp:~tvansteenburgh/charms/precise/quantum-gateway/fix-tests
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+234390@code.launchpad.net

Description of the change

Fix tests, proof.

To post a comment you must log in.
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hey Tim,

The venv updates look good to me.

Can we look into fixing charm proof instead of having to add empty config options to appease the tool? Or is it already fixed in the tool (charm proof actually doesn't complain for me about 'default')?

Note that active development is going on in our dev branches for the openstack charms, so I'd recommend proposing against lp:~openstack-charmers/charms/trusty/quantum-gateway/next instead. (more info on that: https://wiki.ubuntu.com/ServerTeam/OpenStackCharms).

Thanks
Corey

Revision history for this message
James Page (james-page) wrote :

defaults fixed in next; postponing virtualenv use until we have a broader team discussion.

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:07:03 +0000
3+++ Makefile 2014-09-11 21:19:20 +0000
4@@ -6,9 +6,14 @@
5 @flake8 --exclude hooks/charmhelpers unit_tests
6 @charm proof
7
8-test:
9+test: .venv
10 @echo Starting tests...
11- @$(PYTHON) /usr/bin/nosetests --nologcapture unit_tests
12+ .venv/bin/nosetests --nologcapture unit_tests
13+
14+.venv:
15+ sudo apt-get install python-virtualenv python-apt -y
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-sync.yaml
21@@ -16,3 +21,6 @@
22 publish: lint test
23 bzr push lp:charms/quantum-gateway
24 bzr push lp:charms/trusty/quantum-gateway
25+
26+clean:
27+ rm -rf .venv
28
29=== modified file 'config.yaml'
30--- config.yaml 2014-06-17 09:55:40 +0000
31+++ config.yaml 2014-09-11 21:19:20 +0000
32@@ -9,6 +9,7 @@
33 ovs - OpenVSwitch
34 nvp|nsx - Nicira NVP/VMware NSX
35 ext-port:
36+ default:
37 type: string
38 description: |
39 External port to use for routing of instance
40@@ -38,6 +39,7 @@
41 Use leader and none when configuring multiple floating pools
42 external-network-id:
43 type: string
44+ default:
45 description: |
46 Optional configuration to set the external-network-id. Only needed when
47 configuring multiple external networks and should be used in conjunction
48@@ -65,6 +67,7 @@
49 If set to True, supporting services will log to syslog.
50 instance-mtu:
51 type: int
52+ default:
53 description: |
54 Configure DHCP services to provide MTU configuration to instances
55 within the cloud. This is useful in deployments where its not

Subscribers

People subscribed via source and target branches