Browse Source

cloud: libvirt does not support external devices

keep-around/8ae30ae25c73e74219c5abf2ba2a95c26c9a8be8
Loïc Dachary 7 months ago
committed by some
parent
commit
8ae30ae25c
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 17
      playbooks/cloud/tests/test_nextcloud.py

17
playbooks/cloud/tests/test_nextcloud.py

@ -1,10 +1,11 @@
import pytest
testinfra_hosts = ['ansible://cloud-host']
def test_nextcloud(host):
def test_nextcloud_web(host):
cmd = host.run("""
set -xe
mount | grep /dev/mapper/spare
curl --silent https://cloud.$(hostname -d)/login | \
grep --quiet 'This application requires JavaScript'
""")
@ -13,6 +14,18 @@ def test_nextcloud(host):
assert 0 == cmd.rc
def test_nextcloud_device(request, host):
if request.session.infrastructure.driver == 'libvirt':
pytest.skip("libvirt does not support external devices")
cmd = host.run("""
set -xe
mount | grep /dev/mapper/spare
""")
print(cmd.stdout)
print(cmd.stderr)
assert 0 == cmd.rc
def test_nextcloud_via_tor(host):
cmd = host.run("""
set -xe

Loading…
Cancel
Save