Skip to content

Test harness and flag tls connections#86

Open
MrIron-no wants to merge 3 commits into
UndernetIRC:masterfrom
MrIron-no:misc
Open

Test harness and flag tls connections#86
MrIron-no wants to merge 3 commits into
UndernetIRC:masterfrom
MrIron-no:misc

Conversation

@MrIron-no

Copy link
Copy Markdown
Contributor

Summary

  • Add a Python integration harness (test/harness) with a fake P10 hub and Dockerized gnuworld/Postgres, plus link and message-tags coverage.
  • Add StringTokenizer::trailing() and use it in ccontrol CHECK so an optional account field before :realname no longer breaks fullname parsing; cover with unit and harness tests.
  • Track server TLS (+z / FLAG_TLS), show it in mod.debug SERVERINFO, and mark the uplink as TLS whenever the outbound link is TLS (even if the hub SERVER line omits +z).

Test plan

  • cd test/harness && pytest -v (host build installed into bin//lib/ first; Docker available)
  • Confirm test_msgtags, test_link, test_ccontrol_check, and test_debug_serverinfo pass
  • make test_stringtokenizer_trailing && ./test_stringtokenizer_trailing
  • Manual smoke (optional): link with tls = yes, SERVERINFO on the uplink shows tls=yes; plain link shows tls=no; leaf with +z shows tls=yes

MrIron-no and others added 3 commits July 26, 2026 01:28
…rld.

Provides a reusable FakeHub, compose stack, and fixtures so S2S behaviour
(including message-tags) can be asserted without a live ircu network.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use it in ccontrol CHECK so an optional account field before :realname
no longer shifts the fullname index; cover with unit and harness tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Parse FLAG_TLS from SERVER flags, expose it in mod.debug SERVERINFO, and
set the uplink iServer TLS bit whenever the outbound connection is TLS.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant