Page MenuHomePhabricator

[chronik] Add support for HTTPS connection to the test framework python client
ClosedPublic

Authored by Fabien on Sep 21 2023, 11:36.

Details

Summary

This is not used in the tests but has proven to be useful when writing scripts outside of the test framework.

Test Plan

With Chronik:

ninja check-functional

Diff Detail

Event Timeline

Fabien requested review of this revision.Sep 21 2023, 11:36
bytesofman added a subscriber: bytesofman.

potential nit: https is set to False by default in the init, but the way the if/else connection and websocket url definition gates are ordered it would seem https is the expected condition.

This revision is now accepted and ready to land.Sep 21 2023, 13:00

potential nit: https is set to False by default in the init, but the way the if/else connection and websocket url definition gates are ordered it would seem https is the expected condition.

I just wanted to use the shorter version, doing the opposite would require if not self.https which is 4 chars more. I'm that lazy.