Merge lp:~yolanda.robla/nova/havana into lp:~openstack-ubuntu-testing/nova/havana

Proposed by Yolanda Robla
Status: Merged
Merged at revision: 581
Proposed branch: lp:~yolanda.robla/nova/havana
Merge into: lp:~openstack-ubuntu-testing/nova/havana
Diff against target: 152 lines (+98/-0)
9 files modified
debian/changelog (+6/-0)
debian/control (+1/-0)
debian/tests/control (+5/-0)
debian/tests/nova-api (+19/-0)
debian/tests/nova-clients (+14/-0)
debian/tests/nova-compute-daemons (+19/-0)
debian/tests/nova-daemons (+16/-0)
debian/tests/python-nova (+14/-0)
debian/tests/test_import_nova.py (+4/-0)
To merge this branch: bzr merge lp:~yolanda.robla/nova/havana
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+167041@code.launchpad.net

Description of the change

Added autopkgtests

To post a comment you must log in.
Revision history for this message
James Page (james-page) wrote :

Yolanda

You need to create a new UNRELEASED changelog entry as the current version has already been uploaded to saucy.

(dch -i).

review: Needs Fixing
lp:~yolanda.robla/nova/havana updated
581. By Yolanda Robla

debian/changelog: added unreleased version

Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Recheck

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

Tested against current saucy packages - works for me +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-05-31 12:55:48 +0000
3+++ debian/changelog 2013-06-03 14:14:39 +0000
4@@ -1,3 +1,9 @@
5+nova (1:2013.2~b1-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * debian/tests: added autopkgtests
8+
9+ -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 03 Jun 2013 16:10:12 +0200
10+
11 nova (1:2013.2~b1-0ubuntu1) saucy; urgency=low
12
13 [ Chuck Short ]
14
15=== modified file 'debian/control'
16--- debian/control 2013-05-24 02:49:22 +0000
17+++ debian/control 2013-06-03 14:14:39 +0000
18@@ -54,6 +54,7 @@
19 Homepage: http://launchpad.net/nova
20 Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex/debian/files
21 Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex
22+XS-Testsuite: autopkgtest
23
24 Package: python-nova
25 Architecture: all
26
27=== added directory 'debian/tests'
28=== added file 'debian/tests/control'
29--- debian/tests/control 1970-01-01 00:00:00 +0000
30+++ debian/tests/control 2013-06-03 14:14:39 +0000
31@@ -0,0 +1,5 @@
32+Tests: nova-compute-daemons nova-daemons nova-clients nova-api python-nova
33+Depends: nova-compute, nova-conductor, nova-cert, nova-scheduler, nova-novncproxy,
34+ nova-xvpvncproxy, nova-api, nova-network, nova-objectstore, nova-console,
35+ nova-consoleauth, nova-baremetal, python-nova
36+Restrictions: needs-root
37
38=== added file 'debian/tests/nova-api'
39--- debian/tests/nova-api 1970-01-01 00:00:00 +0000
40+++ debian/tests/nova-api 2013-06-03 14:14:39 +0000
41@@ -0,0 +1,19 @@
42+#!/bin/bash
43+#-----------------
44+# Testing nova-api
45+#-----------------
46+set -e
47+DAEMONS=('nova-api-metadata' 'nova-api-os-compute' 'nova-api-ec2')
48+
49+for daemon in "${DAEMONS[@]}"; do
50+ apt-get install -y $daemon 2>&1 > /dev/null
51+
52+ if pidof -x $daemon > /dev/null; then
53+ echo "OK"
54+ else
55+ echo "ERROR: ${daemon} IS NOT RUNNING"
56+ exit 1
57+ fi
58+
59+ apt-get remove -y $daemon 2>&1 > /dev/null
60+done
61
62=== added file 'debian/tests/nova-clients'
63--- debian/tests/nova-clients 1970-01-01 00:00:00 +0000
64+++ debian/tests/nova-clients 2013-06-03 14:14:39 +0000
65@@ -0,0 +1,14 @@
66+#!/bin/bash
67+#-------------------------
68+# Testing client utilities
69+#-------------------------
70+set -e
71+
72+HELP_CLIENTS=('nova-xvpvncproxy' 'nova-api')
73+for client in "${HELP_CLIENTS[@]}"; do
74+ RET=$($client -h 2>&1 > /dev/null)
75+
76+ if [[ $RET ]]; then
77+ echo "ERROR, ${client} is not running"
78+ fi
79+done
80
81=== added file 'debian/tests/nova-compute-daemons'
82--- debian/tests/nova-compute-daemons 1970-01-01 00:00:00 +0000
83+++ debian/tests/nova-compute-daemons 2013-06-03 14:14:39 +0000
84@@ -0,0 +1,19 @@
85+#!/bin/bash
86+#---------------------
87+# Testing nova-compute
88+#---------------------
89+set -e
90+DAEMONS=('nova-compute-kvm' 'nova-compute-lxc' 'nova-compute-uml' 'nova-compute-xen' 'nova-compute-qemu' 'nova-compute-xcp')
91+
92+for daemon in "${DAEMONS[@]}"; do
93+ apt-get install -y nova-compute $daemon 2>&1 > /dev/null
94+
95+ if pidof -x nova-compute > /dev/null; then
96+ echo "OK"
97+ else
98+ echo "ERROR: NOVA-COMPUTE IS NOT RUNNING"
99+ exit 1
100+ fi
101+
102+ apt-get remove -y $daemon nova-compute 2>&1 > /dev/null
103+done
104
105=== added file 'debian/tests/nova-daemons'
106--- debian/tests/nova-daemons 1970-01-01 00:00:00 +0000
107+++ debian/tests/nova-daemons 2013-06-03 14:14:39 +0000
108@@ -0,0 +1,16 @@
109+#!/bin/bash
110+#---------------------
111+# Testing nova-daemons
112+#---------------------
113+set -e
114+DAEMONS=('nova-conductor' 'nova-cert' 'nova-scheduler' 'nova-novncproxy' 'nova-network' 'nova-objectstore' \
115+ 'nova-console' 'nova-consoleauth' 'nova-baremetal-deploy-helper')
116+
117+for daemon in "${DAEMONS[@]}"; do
118+ if pidof -x $daemon > /dev/null; then
119+ echo "OK"
120+ else
121+ echo "ERROR: ${daemon} IS NOT RUNNING"
122+ exit 1
123+ fi
124+done
125
126=== added file 'debian/tests/python-nova'
127--- debian/tests/python-nova 1970-01-01 00:00:00 +0000
128+++ debian/tests/python-nova 2013-06-03 14:14:39 +0000
129@@ -0,0 +1,14 @@
130+#!/bin/bash
131+#-------------------------
132+# Testing client utilities
133+#-------------------------
134+set -e
135+
136+result=$(python `dirname $0`/test_import_nova.py 2>&1)
137+if [ "$result" ]; then
138+ echo "ERROR: PYTHON-NOVA MODULE CANNOT BE IMPORTED"
139+ exit 1
140+else
141+ echo "OK"
142+ exit 0
143+fi
144
145=== added file 'debian/tests/test_import_nova.py'
146--- debian/tests/test_import_nova.py 1970-01-01 00:00:00 +0000
147+++ debian/tests/test_import_nova.py 2013-06-03 14:14:39 +0000
148@@ -0,0 +1,4 @@
149+try:
150+ import nova
151+except ImportError, e:
152+ print "ERROR IMPORTING MODULE"

Subscribers

People subscribed via source and target branches