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
=== modified file 'debian/changelog'
--- debian/changelog 2013-05-31 12:55:48 +0000
+++ debian/changelog 2013-06-03 14:14:39 +0000
@@ -1,3 +1,9 @@
1nova (1:2013.2~b1-0ubuntu2) UNRELEASED; urgency=low
2
3 * debian/tests: added autopkgtests
4
5 -- Yolanda Robla <yolanda.robla@canonical.com> Mon, 03 Jun 2013 16:10:12 +0200
6
1nova (1:2013.2~b1-0ubuntu1) saucy; urgency=low7nova (1:2013.2~b1-0ubuntu1) saucy; urgency=low
28
3 [ Chuck Short ]9 [ Chuck Short ]
410
=== modified file 'debian/control'
--- debian/control 2013-05-24 02:49:22 +0000
+++ debian/control 2013-06-03 14:14:39 +0000
@@ -54,6 +54,7 @@
54Homepage: http://launchpad.net/nova54Homepage: http://launchpad.net/nova
55Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex/debian/files55Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex/debian/files
56Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex56Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex
57XS-Testsuite: autopkgtest
5758
58Package: python-nova59Package: python-nova
59Architecture: all60Architecture: all
6061
=== added directory 'debian/tests'
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2013-06-03 14:14:39 +0000
@@ -0,0 +1,5 @@
1Tests: nova-compute-daemons nova-daemons nova-clients nova-api python-nova
2Depends: nova-compute, nova-conductor, nova-cert, nova-scheduler, nova-novncproxy,
3 nova-xvpvncproxy, nova-api, nova-network, nova-objectstore, nova-console,
4 nova-consoleauth, nova-baremetal, python-nova
5Restrictions: needs-root
06
=== added file 'debian/tests/nova-api'
--- debian/tests/nova-api 1970-01-01 00:00:00 +0000
+++ debian/tests/nova-api 2013-06-03 14:14:39 +0000
@@ -0,0 +1,19 @@
1#!/bin/bash
2#-----------------
3# Testing nova-api
4#-----------------
5set -e
6DAEMONS=('nova-api-metadata' 'nova-api-os-compute' 'nova-api-ec2')
7
8for daemon in "${DAEMONS[@]}"; do
9 apt-get install -y $daemon 2>&1 > /dev/null
10
11 if pidof -x $daemon > /dev/null; then
12 echo "OK"
13 else
14 echo "ERROR: ${daemon} IS NOT RUNNING"
15 exit 1
16 fi
17
18 apt-get remove -y $daemon 2>&1 > /dev/null
19done
020
=== added file 'debian/tests/nova-clients'
--- debian/tests/nova-clients 1970-01-01 00:00:00 +0000
+++ debian/tests/nova-clients 2013-06-03 14:14:39 +0000
@@ -0,0 +1,14 @@
1#!/bin/bash
2#-------------------------
3# Testing client utilities
4#-------------------------
5set -e
6
7HELP_CLIENTS=('nova-xvpvncproxy' 'nova-api')
8for client in "${HELP_CLIENTS[@]}"; do
9 RET=$($client -h 2>&1 > /dev/null)
10
11 if [[ $RET ]]; then
12 echo "ERROR, ${client} is not running"
13 fi
14done
015
=== added file 'debian/tests/nova-compute-daemons'
--- debian/tests/nova-compute-daemons 1970-01-01 00:00:00 +0000
+++ debian/tests/nova-compute-daemons 2013-06-03 14:14:39 +0000
@@ -0,0 +1,19 @@
1#!/bin/bash
2#---------------------
3# Testing nova-compute
4#---------------------
5set -e
6DAEMONS=('nova-compute-kvm' 'nova-compute-lxc' 'nova-compute-uml' 'nova-compute-xen' 'nova-compute-qemu' 'nova-compute-xcp')
7
8for daemon in "${DAEMONS[@]}"; do
9 apt-get install -y nova-compute $daemon 2>&1 > /dev/null
10
11 if pidof -x nova-compute > /dev/null; then
12 echo "OK"
13 else
14 echo "ERROR: NOVA-COMPUTE IS NOT RUNNING"
15 exit 1
16 fi
17
18 apt-get remove -y $daemon nova-compute 2>&1 > /dev/null
19done
020
=== added file 'debian/tests/nova-daemons'
--- debian/tests/nova-daemons 1970-01-01 00:00:00 +0000
+++ debian/tests/nova-daemons 2013-06-03 14:14:39 +0000
@@ -0,0 +1,16 @@
1#!/bin/bash
2#---------------------
3# Testing nova-daemons
4#---------------------
5set -e
6DAEMONS=('nova-conductor' 'nova-cert' 'nova-scheduler' 'nova-novncproxy' 'nova-network' 'nova-objectstore' \
7 'nova-console' 'nova-consoleauth' 'nova-baremetal-deploy-helper')
8
9for daemon in "${DAEMONS[@]}"; do
10 if pidof -x $daemon > /dev/null; then
11 echo "OK"
12 else
13 echo "ERROR: ${daemon} IS NOT RUNNING"
14 exit 1
15 fi
16done
017
=== added file 'debian/tests/python-nova'
--- debian/tests/python-nova 1970-01-01 00:00:00 +0000
+++ debian/tests/python-nova 2013-06-03 14:14:39 +0000
@@ -0,0 +1,14 @@
1#!/bin/bash
2#-------------------------
3# Testing client utilities
4#-------------------------
5set -e
6
7result=$(python `dirname $0`/test_import_nova.py 2>&1)
8if [ "$result" ]; then
9 echo "ERROR: PYTHON-NOVA MODULE CANNOT BE IMPORTED"
10 exit 1
11else
12 echo "OK"
13 exit 0
14fi
015
=== added file 'debian/tests/test_import_nova.py'
--- debian/tests/test_import_nova.py 1970-01-01 00:00:00 +0000
+++ debian/tests/test_import_nova.py 2013-06-03 14:14:39 +0000
@@ -0,0 +1,4 @@
1try:
2 import nova
3except ImportError, e:
4 print "ERROR IMPORTING MODULE"

Subscribers

People subscribed via source and target branches