mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 16:25:17 +00:00
tests: Modifying /etc/hosts need sudo
This commit is contained in:
parent
77d7d9fbab
commit
c428be48ff
@ -8,6 +8,9 @@ after_success:
|
||||
virtualenv:
|
||||
system_site_packages: true
|
||||
install:
|
||||
- echo "127.0.0.1 localhost" | sudo tee /etc/hosts
|
||||
- echo "127.0.0.1 ca.example.lan ca" | sudo tee -a /etc/hosts
|
||||
- echo "127.0.0.1 vpn.koodur.lan | sudo tee -a /etc/hosts
|
||||
- pip install -r requirements.txt
|
||||
- pip install codecov pytest-cov
|
||||
- pip install --editable .
|
||||
|
@ -35,10 +35,6 @@ def generate_csr(cn=None):
|
||||
def test_cli_setup_authority():
|
||||
import shutil
|
||||
import os
|
||||
with open("/etc/hosts", "w") as fh:
|
||||
fh.write("127.0.0.1 localhost\n")
|
||||
fh.write("127.0.0.1 ca.example.lan ca\n")
|
||||
fh.write("127.0.0.1 vpn.example.lan\n")
|
||||
if os.path.exists("/run/certidude/signer.pid"):
|
||||
with open("/run/certidude/signer.pid") as fh:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user