crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 274 forks source link

rlinks: Implement `stop_link` #1908

Open om26er opened 2 years ago

om26er commented 2 years ago

The stop_link API is not implemented. This can be very useful when writing tests for rlinks.

Imagine a static router config with three different router workers, all started but not connected to each other. The ability to start and stop links dynamically could mean that we can tests a whole bunch of different scenarios, without too much hassle.

om26er commented 2 years ago

Here is the relevant API https://github.com/crossbario/crossbar/blob/b9799d2ac6667a97373db0549d2055fff97d784c/crossbar/worker/rlink.py#L891

oberstet commented 2 years ago

Yes, that would be useful to have, agreed. Eg it would also allow to orchestrate more complex integration tests ... some already exist in commented form, eg https://github.com/crossbario/crossbar/blob/b9799d2ac6667a97373db0549d2055fff97d784c/test/test_cli_1.sh#L104