You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
326 B

testinfra_hosts = ['forum-host']
def test_discourse(host):
cmd ="""
set -xe
test -e /dev/sdb || d=/dev/vda
mount | grep $d | grep /var/lib/docker
curl --silent https://forum.$(hostname -d) | grep --quiet 'Congratulations, you installed Discourse!'
assert 0 == cmd.rc