Merge ~xnox/ubuntu/+source/ceilometer:master into ~ubuntu-server-dev/ubuntu/+source/ceilometer:master

Proposed by Dimitri John Ledkov on 2016-08-30
Status: Merged
Merged at revision: e86ed520f998cfae7e5db851f3ec0320af817fb7
Proposed branch: ~xnox/ubuntu/+source/ceilometer:master
Merge into: ~ubuntu-server-dev/ubuntu/+source/ceilometer:master
Diff against target: 78 lines (+24/-3)
5 files modified
debian/changelog (+11/-0)
debian/tests/control (+1/-1)
debian/tests/test-daemons (+0/-0)
debian/tests/test-python-ceilometer (+0/-0)
debian/tests/test-services (+12/-2)
Reviewer Review Type Date Requested Status
Corey Bryant 2016-08-30 Approve on 2016-08-30
Review via email: mp+304406@code.launchpad.net

Description of the Change

Fix adt tests, should be fast-forwardable.

Pottentially we may want to move python-libvirt dependency from debian/tests/control to the appropriate package Depends in debian/control that ships ceilometer-agent-compute

To post a comment you must log in.
Corey Bryant (corey.bryant) wrote :

Thanks Dimitri! LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 158b598..88a96b7 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -14,6 +14,17 @@ ceilometer (1:7.0.0~b3~dev106-0ubuntu1) UNRELEASED; urgency=medium
6 * d/ceilometer-common.postinst: Ensure proper permissions for
7 /etc/ceilometer/rootwrap*.
8
9+ [ Dimitri John Ledkov ]
10+ * Add python-libvirt and libvirt-daemon-system to Depends in
11+ debian/control/tests to make sure ceilometer-agent-compute is
12+ running. Possibly makes sense to add python-libvirt as the Depends: on
13+ the appropriate package, and only libvirt-daemon in the
14+ debian/tests/contol.
15+ * Iterate through all services, before exiting 1 in
16+ debian/tests/test-services, to see all failing services at once.
17+ * Skip testing for the ipmi agent service on s390x, not useful.
18+ * Mark debian/tests/test-* files executable.
19+
20 -- Corey Bryant <corey.bryant@canonical.com> Mon, 29 Aug 2016 16:33:06 -0400
21
22 ceilometer (1:7.0.0~b2-0ubuntu2) yakkety; urgency=medium
23diff --git a/debian/tests/control b/debian/tests/control
24index 30e41d9..9ce1e65 100644
25--- a/debian/tests/control
26+++ b/debian/tests/control
27@@ -1,2 +1,2 @@
28 Tests: test-daemons test-services test-python-ceilometer
29-Depends: python-ceilometer, ceilometer-common, ceilometer-collector, ceilometer-api, ceilometer-agent-compute, ceilometer-agent-central, ceilometer-agent-ipmi, ceilometer-agent-notification, ceilometer-polling, rabbitmq-server
30+Depends: python-ceilometer, ceilometer-common, ceilometer-collector, ceilometer-api, ceilometer-agent-compute, ceilometer-agent-central, ceilometer-agent-ipmi, ceilometer-agent-notification, ceilometer-polling, rabbitmq-server, python-libvirt, libvirt-daemon-system
31diff --git a/debian/tests/test-daemons b/debian/tests/test-daemons
32old mode 100644
33new mode 100755
34index 89c38a3..89c38a3
35--- a/debian/tests/test-daemons
36+++ b/debian/tests/test-daemons
37diff --git a/debian/tests/test-python-ceilometer b/debian/tests/test-python-ceilometer
38old mode 100644
39new mode 100755
40index 2f07bf1..2f07bf1
41--- a/debian/tests/test-python-ceilometer
42+++ b/debian/tests/test-python-ceilometer
43diff --git a/debian/tests/test-services b/debian/tests/test-services
44old mode 100644
45new mode 100755
46index cfd6343..abe67ef
47--- a/debian/tests/test-services
48+++ b/debian/tests/test-services
49@@ -5,17 +5,27 @@
50 set -e
51 SERVICES=('ceilometer-agent-central'
52 'ceilometer-agent-compute'
53- 'ceilometer-agent-ipmi'
54 'ceilometer-agent-notification'
55 'ceilometer-api'
56 'ceilometer-collector'
57 'ceilometer-polling')
58
59+# Doesn't work on s390x, and probably not needed as that is not an
60+# IMPI architecture
61+if [ `dpkg --print-architecture` != 's390x' ]
62+then
63+ SERVICES+=('ceilometer-agent-ipmi')
64+fi
65+
66+ret=0
67+
68 for service in "${SERVICES[@]}"; do
69 if systemctl is-active $service > /dev/null; then
70 echo "OK"
71 else
72 echo "ERROR: ${service} IS NOT RUNNING"
73- exit 1
74+ ret=1
75 fi
76 done
77+
78+exit $ret

Subscribers

People subscribed via source and target branches