Files
recipe-maintainer/recipe-info/mumble/tests/health_check.py
T
autonomic-bot f283a371bb recipe-maintainer: public snapshot (secrets + deployment plans removed, single commit)
Sanitized single-commit public mirror of recipe-maintainer.
- Removed test-ssh/.testenv (live creds); added test-ssh/.testenv.example placeholders.
- Removed plans/ and planned-updates/ (deployment-planning docs) so no client/
  deployment domains appear in the public repo.
- All other secret stores were already gitignored.
- docs.coopcloud.tech retained as a submodule (public upstream).
2026-06-16 20:18:24 +00:00

32 lines
888 B
Python

#!/usr/bin/env python3
"""Health check for Mumble — tests TCP connectivity to port 64738."""
import argparse
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from utils.tests.helpers import resolve_server, run
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--server', default=os.environ.get('TEST_SERVER'))
args = parser.parse_args()
server = args.server or resolve_server()
print(f"Checking Mumble TCP port 64738 on {server} ...")
result = run(
f"ssh {server} 'bash -c \"echo > /dev/tcp/localhost/64738\"'",
check=False,
timeout=15,
)
if result.returncode == 0:
print(f"PASS: Mumble is listening on {server}:64738")
else:
print(f"FAIL: Could not connect to {server}:64738")
sys.exit(1)
if __name__ == '__main__':
main()