Migrate integration tests away from Python#529
Open
vitalyster wants to merge 4 commits into
Open
Conversation
43e6bf9 to
34023a8
Compare
f0f515f to
15efaed
Compare
Replace Python XMPP tests (sleekxmpp/slixmpp) with C++ AdminInterface protobuf-based integration tests. Use raw TCP IRC client to connect directly to ngircd for message receive verification. Test changes: - Add C++ integration test framework (test_chat.cpp) using AdminInterface protobuf commands (connect_user, join_room, send_room_message, etc.) - Add IRC client (IrcClient) for message receive verification on ngircd - Add tests: muc_join_leave, muc_echo, muc_pm, muc_away, muc_topic - Delete all Python integration test files (~1360 lines) - Add run.sh to start spectrum2, wait for backend, run integration test - Extend CMake build for integration test target Backend fix: - Fix stale IRC session blocking reconnect in handleLoginRequest (disconnected sessions were never cleaned from m_sessions map) - Add MyIrcSession::isConnected() accessor AdminInterface: - Add chat commands: ConnectUser, DisconnectUser, JoinRoom, LeaveRoom, SendMessage, SendRoomMessage Slack: - Disable Slack frontend from main binary (ODR collision with JoinRoomCommand) - Rename Slack join_room/leave_room to join_slack_room/leave_slack_room - Restore Slack unit tests with unique command names Config: - Remove data_path from prosody.cfg.lua - Write backend logs to backend.log file Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
SummaryReplace Python XMPP integration tests with C++ protobuf-based tests using raw TCP IRC client for receive verification. ChangesNew integration tests (
|
In spectrum2 server mode, MUC rooms must use transport encoding: #channel%localhost@localhost instead of #channel@localhost. This lets the backend correctly map to IRC channel #channel. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.