You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a hardcoded "convention" where the CI router class uses 'router.addresses[0]' as the network address for the AMQP listener used for management requests. This convention is not enforced, and where it is used the tests hardcode router.addresses[0] in line.
This makes it difficult to implement generic management operations in the router class, with the above link as an example.
Proposal:
remove hardcoded use of router.addresses[0] in tests by converting these to using the router.management property.
Update all test router configurations to ensure the first listener is a "normal" AMQP listener, or force this behavior by default in the Qdrouterd constructor (better).
If there are tests that MUST instantiate some other listener for management provide an optional "management address override index" to allow tests to specify which listener should be used for the router.management property
For any test that MUST not instantiate an AMQP listener due to test constraints then router.management should return None and the test is responsible for dealing with router cleanup, etc.
The text was updated successfully, but these errors were encountered:
@kgiusti router.addresses[0] returns a string while the router.management property seems to be an instance of the Node object. So, all uses of router.addresses[0] cannot be immediately converted to use router.management property. Most of the tests that use router.addresses[0] make a connection on that address, that connection object could be replaced with router.management.connection
#743 (comment)
There is a hardcoded "convention" where the CI router class uses 'router.addresses[0]' as the network address for the AMQP listener used for management requests. This convention is not enforced, and where it is used the tests hardcode router.addresses[0] in line.
This makes it difficult to implement generic management operations in the router class, with the above link as an example.
Proposal:
The text was updated successfully, but these errors were encountered: