mon: osd create pool test refactor

* Use test-helpers.sh instead of duplicating it
* Isolate each test in a separate function for clarity

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: add missing format argument to crush rule dump

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: add missing format argument to crush dump

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: add ruleset name to crush rule dump

The crush rule name is made an optional first argument. If not provided, it
defaults to dumping all rules.

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: osd crush rule functional tests

* A set of test for the simplest operations
* A test covering all cases of osd crush rule

Signed-off-by: Loic Dachary <loic@dachary.org>
mon: osd crush rule create-simple functional tests

Basic tests and a test that create the conditions where a paxos proposal
is pending and the rule is found to exist in the pending proposal.

Signed-off-by: Loic Dachary <loic@dachary.org>