6a09caa1e5
Implementiert die vollständige Test-Harness für Rocket.Chat Live-Tests von .101 (Bernd) gegen .45 (MyTestBot) via REST API. ARCHITEKTUR: - tests/live_rc/conftest.py: Fixtures, Marker, Skip-Logik, Self-Check, Token-Bucket-Rate-Limiter (60 calls/min), Suite-Lock (/tmp/rc-live-tests.lock), Cleanup-Fixture, Message-Ownership-Assert, Bot-Status-Check - helpers/rc_rest.py: REST-Client-Wrapper (post, history, users.info, self-check) - helpers/polling.py: Cursor-basiertes Polling mit Rate-Limiter-Integration und exponentiellen Backoff bei HTTP 429 TESTS: - test_01_echo.py: Smoke-Test — Bot antwortet auf einfache Nachricht - test_02_button_click.py: ::-Text als Button-Klick-Simulation (E3) - test_03-06: Skeletons mit @pytest.mark.skip VERIFIZIERT: - Ohne Env-Variablen: komplettes SKIP, keine Fehler - Mit Env-Variablen + Bot im Onboarding: SKIP mit klarer Diagnose - Rate-Limiter verhindert HTTP 429 (vorher: 100% Fehlerrate) - Self-Check validiert Token/User-Identity vor jedem Lauf - Suite-Lock verhindert parallele Läufe
15 lines
321 B
Python
15 lines
321 B
Python
"""
|
|
Test 05 — Antwort nach Stream-Abbruch (skeleton).
|
|
|
|
Benötigt Stream-Abbruch-Simulation — vorerst skip.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.live_rc
|
|
@pytest.mark.skip(reason="needs stream abort simulation setup")
|
|
def test_05_stream_retry():
|
|
"""Stream-Retry: Bot antwortet korrekt nach Stream-Abbruch."""
|
|
pass
|