~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/tests/nova-api

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Yolanda Robla, Adam Gandelman
  • Date: 2013-06-19 13:00:11 UTC
  • Revision ID: package-import@ubuntu.com-20130619130011-glthunrvb20v5qwq
Tags: 1:2013.2~b1-0ubuntu2
[Yolanda Robla]
* debian/tests: added autopkgtests

[ Adam Gandelman ]
* debian/control: Set version requirements python-pbr (>= 0.5.11),
  python-d2to1 (>= 0.2.10).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#-----------------
 
3
# Testing nova-api
 
4
#-----------------
 
5
set -e
 
6
DAEMONS=('nova-api-metadata' 'nova-api-os-compute' 'nova-api-ec2')
 
7
 
 
8
for 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
 
19
done