Add Helpdesk outbox worker validation

This commit is contained in:
Jason Thistlethwaite
2026-04-25 00:31:09 +00:00
parent dde4dca8a2
commit c9f4c69525
8 changed files with 388 additions and 27 deletions
+19 -1
View File
@@ -54,6 +54,16 @@ class SmokeConfig:
keep_open: bool
@dataclass(frozen=True)
class SmokeResult:
token: str
subject: str
issue_id: int
from_address: str
reply_token: str
control_issue_id: int
def main() -> int:
parser = argparse.ArgumentParser(description="Run a live Helpdesk/redMCP smoke test against the LAN Redmine copy.")
parser.add_argument("--redmine-url", default=os.getenv("REDMINE_URL", DEFAULT_REDMINE_URL))
@@ -101,7 +111,7 @@ def main() -> int:
return 1
def run_smoke(config: SmokeConfig) -> None:
def run_smoke(config: SmokeConfig) -> SmokeResult:
token = time.strftime("%Y%m%d%H%M%S")
subject = f"[redMCP-smoke {token}] Helpdesk inbound validation"
from_address = f"redmcp-smoke-{token}@example.test"
@@ -158,6 +168,14 @@ def run_smoke(config: SmokeConfig) -> None:
print("\nSmoke test passed.")
print(f" issue_id: {issue_id}")
print(f" subject: {subject}")
return SmokeResult(
token=token,
subject=subject,
issue_id=issue_id,
from_address=from_address,
reply_token=reply_token,
control_issue_id=control_id,
)
def load_env_file(path: Path) -> dict[str, str]: