Clean up test logging for mq-related tests

Prior to this commit, many of the tests that were related to
ActiveMQ were writing a ton of distracting log output
(including stack traces) to the console.  This made it harder
to identify "real" failures in the test output.

This commit adds some more robust logic to the `with-log-output`
macro, which redirects log messages to an atom.  It also creates
a fixture that can be used to enable this macro on every test
in a file, and uses that fixture for the mq tests.

End result: no more false alarms from the mq tests.
Fix indentation
Merge pull request #549 from cprice404/maint/master/mq-tests-please-shut-up-your-face

Clean up test logging for mq-related tests
fixed suse init file, copyright line merged
Merge pull request #550 from aboe76/update_suse_init

fixed suse init file, copyright line merged
add missing sysconfig defaults
otherwise init script won't work
updated spec file suse support

This change wil make puppetdb rpm building possible on opensuse
with the same spec file as redhat.
Only requirement missing is lein / clojure on suse
So build it locally with lein from download script.
(#21614) Include /v2 in metrics end-point examples

Previously we weren't adding the /v2 to the examples show in this document.
While it is true there is no difference between v1 & v2 in this case, we
should keep the convention to avoid confusion, and to make clear the end-point
is part of the versioned structure.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #552 from aboe76/fix_suse

add missing sysconfig defaults
Merge pull request #553 from kbarber/ticket/master/21614-metrics_endpoint_add_v2_to_examples

(#21614) Include /v2 in metrics end-point examples
(#21611) Allow rake commands to be ran on Ruby 2.0

This allows rake commands to be ran on Ruby 2.0, for building on Fedora 19
to be made possible. This also removes the current behaviour whereby
unsupported rubies force the command to exit, instead we now just return
a warning to STDERR and keep going in the hope that things will work anyway,
so we don't block people that insist on using the latest Ruby before we
are ready.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #554 from kbarber/ticket/master/21611-allow_build_using_ruby2

(#21611) Allow rake commands to be ran on Ruby 2.0
(21450) JSON responses should be UTF-8

JSON is UTF-8, therefore our responses should also be UTF-8.
Silence Jetty INFO logging during tests
Merge pull request #551 from aboe76/suse_puppetdb_spec_erb

updated spec file suse support
improved systemd.service file with template erb
The template task will provide the right systemd file.
Removed the params as it is not needed with template

Small fix on suse init file template, removed puppetdb name
in favor of templated variable namespace.
Merge pull request #556 from aboe76/systemd_files_fix

improved systemd.service file with template erb and fix suse name in init template
Change createdb docs example to use UTF8 encoding

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #559 from kbarber/maint/createdb_utf8

Change createdb docs example to use UTF8 encoding
Use a random jetty port in test code