ACLED credentialed integration needs regression test and diagnostics #3

Closed
opened 2026-05-17 11:21:49 +00:00 by MrSphay · 4 comments
Owner

Synced from upstream Crucix #33: https://github.com/calesthio/Crucix/issues/33

Current status in this fork: missing ACLED credentials degrade transparently and docs describe OAuth/cookie fallback. What is still missing is a credentialed regression test path and sharper diagnostics for auth-denied vs no-events vs API-shape changes.

Acceptance criteria:

  • Verify ACLED_USER/ACLED_PASSWORD and any alternate credential names against the current ACLED flow.
  • Add a mocked regression test for token success, auth denied, token endpoint failure, and empty-events response.
  • Health/source output must distinguish missing credentials, auth failed, API failed, and valid empty result.
  • Ensure logs never print credentials or bearer tokens.
Synced from upstream Crucix #33: https://github.com/calesthio/Crucix/issues/33 Current status in this fork: missing ACLED credentials degrade transparently and docs describe OAuth/cookie fallback. What is still missing is a credentialed regression test path and sharper diagnostics for auth-denied vs no-events vs API-shape changes. Acceptance criteria: - Verify ACLED_USER/ACLED_PASSWORD and any alternate credential names against the current ACLED flow. - Add a mocked regression test for token success, auth denied, token endpoint failure, and empty-events response. - Health/source output must distinguish missing credentials, auth failed, API failed, and valid empty result. - Ensure logs never print credentials or bearer tokens.
Author
Owner

In Bearbeitung durch Codex auf Branch codex/issue-3-acled-diagnostics. Scope: ACLED Credential-Diagnostik schaerfen und gemockte Regressionstests fuer Token-Erfolg, Auth-Denied, Token-Endpoint-Fehler und leere Events. Keine Dashboard/Docker/README-weiten Aenderungen, damit parallele Branches sauber mergbar bleiben.

In Bearbeitung durch Codex auf Branch codex/issue-3-acled-diagnostics. Scope: ACLED Credential-Diagnostik schaerfen und gemockte Regressionstests fuer Token-Erfolg, Auth-Denied, Token-Endpoint-Fehler und leere Events. Keine Dashboard/Docker/README-weiten Aenderungen, damit parallele Branches sauber mergbar bleiben.
Author
Owner

In Bearbeitung durch Codex auf Branch codex/issue-3-acled-diagnostics. Scope: ACLED Credential-/Auth-Diagnostik und gemockte Regressionstests. Ich halte die �nderungen auf ACLED-Source, Source-Doku und bestehende Tests begrenzt, damit PR #9/#12 separat mergbar bleiben.

In Bearbeitung durch Codex auf Branch codex/issue-3-acled-diagnostics. Scope: ACLED Credential-/Auth-Diagnostik und gemockte Regressionstests. Ich halte die �nderungen auf ACLED-Source, Source-Doku und bestehende Tests begrenzt, damit PR #9/#12 separat mergbar bleiben.
Author
Owner

PR geoeffnet: #13\n\nStatus: Umsetzung fuer Issue #3 ist fertig auf Branch codex/issue-3-acled-diagnostics. ACLED unterscheidet jetzt no_credentials/auth_failed/api_failed/live-empty, redigiert Token/Cookies in Debug-Ausgaben, akzeptiert ACLED_USER/ACLED_USERNAME und hat gemockte Regressionstests. Lokale npm/node Tests nicht ausgefuehrt; Runner soll npm run test:unit pruefen.

PR geoeffnet: https://git.wilkensxl.de/MrSphay/intelligence-terminal/pulls/13\n\nStatus: Umsetzung fuer Issue #3 ist fertig auf Branch codex/issue-3-acled-diagnostics. ACLED unterscheidet jetzt no_credentials/auth_failed/api_failed/live-empty, redigiert Token/Cookies in Debug-Ausgaben, akzeptiert ACLED_USER/ACLED_USERNAME und hat gemockte Regressionstests. Lokale npm/node Tests nicht ausgefuehrt; Runner soll npm run test:unit pruefen.
Author
Owner

Achtung Koordination: Beim Push war bereits ein Remote-Branch codex/issue-3-acled-diagnostics vorhanden (5b176851...). Ich habe diesen Branch nicht �berschrieben.

Meine ACLED-Variante liegt auf: codex/issue-3-acled-diagnostics-auth-tests
Commit: b13979
PR: #14

Status: lokale Checks gr�n. PR #14 ist als erg�nzender/alternativer Fix zu pr�fen und sollte mit dem anderen Issue-#3-Branch koordiniert werden.

Achtung Koordination: Beim Push war bereits ein Remote-Branch codex/issue-3-acled-diagnostics vorhanden (5b176851...). Ich habe diesen Branch nicht �berschrieben. Meine ACLED-Variante liegt auf: codex/issue-3-acled-diagnostics-auth-tests Commit: b13979 PR: https://git.wilkensxl.de/MrSphay/intelligence-terminal/pulls/14 Status: lokale Checks gr�n. PR #14 ist als erg�nzender/alternativer Fix zu pr�fen und sollte mit dem anderen Issue-#3-Branch koordiniert werden.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MrSphay/intelligence-terminal#3