Commit Graph

24 Commits

Author SHA1 Message Date
Chris MacNaughton
27e5f7d8bc We must have async functions for the before/after callables 2020-04-10 16:51:41 +02:00
Chris MacNaughton
2a98274d67 Add a few more function hooks to the series upgrade process
By including pre and pos-application functions, charm
series upgrades can be handled in a more generic way,
even when they require running additional actions
before a unit is upgraded, or after the whole application
is upgraded.
2020-04-10 10:50:43 +02:00
Alex Kavanagh
7076053627 Update rabbitmq tests for version 3.8.2 on focal
Ubuntu focal ships with rabbitmq server 3.8.2 which has changed the text
output format for the cli commands that the tests rely on.  Fortunately,
3.8.2 also adds a --formatter=json option.  This patch takes advantage
of that.
2020-03-23 17:49:22 +00:00
Edin Sarajlic
d780f76797 Port validating Rmq SSL off from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
e8068a8356 Port validating Rmq SSL on from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
814ff7ddee Don't sleep before attempting get AMQP msg. Retry w/ tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
60e84e4c27 Port Rmq charm func test removing a unit from a Rmq cluster
This function was previously called test_901_remove_unit, but had to
be renamed (moved to the end of the func tests); The way in which unit
removal is now performed (by running the "stop" hook) puts the the
removed unit in a "waiting" state -- which consequently causes
wait_for_cluster() (e.g. used in 910) to fail (timeout).
2019-10-14 10:45:59 +11:00
Edin Sarajlic
18726c341a Fix lint errors found in docstrings 2019-10-14 10:45:59 +11:00
Edin Sarajlic
4792a527c9 PROTOCOL_TLS is not available until Py3.6, use alternative 2019-10-14 10:45:59 +11:00
Edin Sarajlic
1acbfd8741 Add a function for retrieving a message to an Rmq unit 2019-10-14 10:45:59 +11:00
Edin Sarajlic
20aad97033 Add a function for publishing a message to an Rmq unit 2019-10-14 10:45:59 +11:00
Edin Sarajlic
e09660f7c1 Add a function for disabling SSL on Rmq units 2019-10-14 10:45:59 +11:00
Edin Sarajlic
79d70e4f8d Add a function for enabling SSL on Rmq units 2019-10-14 10:45:59 +11:00
Edin Sarajlic
97cc2b8e60 Add function validating is SSL is disabled on Rmq units 2019-10-14 10:45:59 +11:00
Edin Sarajlic
c917c5b370 Add function validating if SSL is enabled on Rmq units 2019-10-14 10:45:59 +11:00
Edin Sarajlic
79a9f179df Add function for determing if SSL is enabled in unit's Rmq config 2019-10-14 10:45:59 +11:00
Edin Sarajlic
6d3714aa06 Add a function for deleting a user from a Rmq cluster 2019-10-14 10:45:59 +11:00
Edin Sarajlic
3a64bec97a Add function for adding a user to an Rmq cluster 2019-10-14 10:45:59 +11:00
Edin Sarajlic
313f07bd0c Add test confirming that all Rmq units are part of cluster 2019-10-14 10:45:59 +11:00
Edin Sarajlic
6749ff763e Add a function for creating connection to Rmq instance on unit 2019-10-14 10:45:59 +11:00
Edin Sarajlic
fa68f09e72 Add a function providing all units/nodes Rmq cluster_status in JSON 2019-10-14 10:45:59 +11:00
Edin Sarajlic
47657d6113 Add a function for getting Rmq cluster_status info from a unit 2019-10-14 10:45:59 +11:00
Edin Sarajlic
2fb7dcbdfc Add function that waits until Rmq units are clustered and ready 2019-10-14 10:45:59 +11:00
Edin Sarajlic
cf91a9dab9 Create rabbitmq_server.utils file (add a license as a starter) 2019-10-14 10:45:59 +11:00