#!/bin/bash
. $(dirname $0)/../assert.sh

if [ -f /etc/os-release ]; then
    . /etc/os-release
elif [ -f /etc/redhat-release ]; then
    NAME=$(sed -e 's/\(.*\)release\? \([0-9]\+\).*/\1/' /etc/redhat-release)
    ID=$(echo $NAME | tr '[:upper:]' '[:lower:]')
    VERSION_ID=$(sed -e 's/.*release\? \([0-9]\+\).*/\1/' /etc/redhat-release)
else
    echo "Disto ID check fail"
    exit 1
fi

### heat-cfntools for everything except CentOS 5
skip_if "test \"$ID\" = \"centos\" -a $VERSION_ID -lt 6"
assert_raises "which cfn-create-aws-symlinks cfn-get-metadata cfn-push-stats cfn-hup cfn-init cfn-signal"
assert_end "heat-cfntools are installed"

#!/bin/bash
. $(dirname $0)/../assert.sh

### heat-cfntools installed in path
assert_raises "which cfn-create-aws-symlinks cfn-get-metadata cfn-push-stats cfn-hup cfn-init cfn-signal"
assert_end "heat-cfntools are installed"

Remove CentOS 5 exception for heat-cfntools test now it's EOL
Remove CentOS 5 exception for heat-cfntools test now it's EOL

Change-Id: I9a5f470199f80420dfee9f6f4dcd16c2455ce7ba
