Commit fb602f38 authored by Loïc Dachary's avatar Loïc Dachary

Merge branch 'handle_missing_API_token' into 'master'

tests: create subdomain when needed

Closes #267

See merge request !303
parents 61a6b141 c3ae4eb9
Pipeline #1042 canceled with stage
......@@ -2,6 +2,7 @@ import os
import pytest
import shutil
import textwrap
import yaml
from enough.common import Enough
......@@ -75,7 +76,9 @@ def pytest_sessionstart(session):
route_to_internal=False)
(needs_vpn, hosts) = get_hosts(session, e)
r = e.create_missings(hosts)
if len(r) > 0:
with open(f'{e.config_dir}/inventory/group_vars/all/domain.yml', 'r') as f:
data = yaml.safe_load(f)
if len(r) > 0 or data.get('domain') == domain:
e.heat.create_test_subdomain('enough.community')
if needs_vpn:
if not e.vpn_has_credentials():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment