Verify manager reachability after Headscale enrollment
This commit is contained in:
+2
-2
@@ -1,5 +1,4 @@
|
||||
"""Offline regression tests: no real containers, services, APT or credentials."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import tempfile
|
||||
@@ -77,7 +76,7 @@ command() {
|
||||
dpkg-query() { [[ $MOCK_INSTALLED != 1 ]] || printf 'install ok installed'; }
|
||||
timeout() {
|
||||
shift
|
||||
if [[ $1 == bash && $2 == -c ]]; then return 0; fi
|
||||
if [[ $1 == bash && $2 == -c ]]; then echo "CHECK TCP ${@: -1}"; return 0; fi
|
||||
"$@"
|
||||
}
|
||||
apt-get() {
|
||||
@@ -107,6 +106,7 @@ id() { if [[ $1 == -u ]]; then echo 1000; else return 0; fi; }
|
||||
self.assertIn('--auth-key=file:', r.stdout)
|
||||
self.assertIn('--accept-dns=false', r.stdout)
|
||||
self.assertIn('mit dem Manager verbunden', r.stdout)
|
||||
self.assertLess(r.stdout.index('TAILSCALE up'), r.stdout.index('CHECK TCP 1514'))
|
||||
|
||||
def test_existing_components_are_not_reinstalled(self):
|
||||
r = self.run_worker(1, 1, installed=True)
|
||||
|
||||
Reference in New Issue
Block a user