mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
letsencrypt: Disable test when sudo is not available
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
8ace9046c3
commit
f0c0d6dcf5
@ -19,13 +19,16 @@ Tests for letsencrypt module.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from .. import on_domain_added, on_domain_removed
|
from .. import on_domain_added, on_domain_removed
|
||||||
|
|
||||||
euid = os.geteuid()
|
euid = os.geteuid()
|
||||||
|
sudo_available = os.path.isfile("/usr/bin/sudo")
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipUnless(sudo_available, 'Requires sudo')
|
||||||
class TestDomainNameChanges(unittest.TestCase):
|
class TestDomainNameChanges(unittest.TestCase):
|
||||||
"""Test for automatically obtaining and revoking Let's Encrypt certs"""
|
"""Test for automatically obtaining and revoking Let's Encrypt certs"""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user