Files
wekan/tests/nextcloud/harp.py
T
Lauri Ojansivu 91bfd08097 Test real Nextcloud deployments and preserve signed SockJS identities
Keep verified gateway identities bound to their actual upgrade sockets before SockJS filters custom headers. Add repository-local Nextcloud 32-35 acceptance runs for authentication, isolation, uploads, lifecycle, source-built upgrades, restored volumes and mutual-TLS FRP. Harden release archive checks and exercise signing and workflow failures.

Thanks to xet7.
2026-10-11 22:46:45 +03:00

22 lines
623 B
Python

#!/usr/bin/env python3
"""Start the real pinned HaRP servers on isolated loopback ports."""
import asyncio
import os
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / '.tools/nextcloud-harp'))
import haproxy_agent as harp
async def main():
# Same servers as upstream main(); only its fixed control port is configurable.
await asyncio.gather(
harp.SPOA_AGENT._run(host=harp.SPOA_HOST, port=harp.SPOA_PORT),
harp.run_http_server(host='127.0.0.1', port=int(os.environ['HP_CONTROL_PORT'])),
harp._loop_lag_monitor(),
)
asyncio.run(main())