Migrated test towards unit-style.

This test was intended to check the internal behavior of a type and thus is more of a unit test. In this spirit, we've migrated more towards this style by stubbing an internal variable to observe the type's behavior.
Removed unnecessary exports.
rsyslog: tweak rsyslog server cert to handle hostname changes on provider
rsyslog: test certificate fields
rsyslog: fix auto-complete error in comment
Service filtering is once again working.

- Reordered filtering to consider units first. This drives all other filtering.
- Included service filtering tests once more.
- Change in behavior: machines which are not filtered will now list all their subordinates.
rsyslog: exercise rsyslogHosts conditional logic in test
Status enhancements.

- Port is now appended to "oneline" output.
- "line" and "short" are now aliases for "oneline".
Merge branch 'master' into 1385456-services-no-longer-filtered
cmd/juju: user list test is now flexible about durations

The test for the "user list" command was assuming that the creation
and last connection durations for the displayed user would be under a
second. This isn't always true on slowers hosts (e.g. the ppc64
jenkins build slave).

A regex that accepts all possible durations is now used.
Merge pull request #1029 from mjs/userlist-test-robustness

cmd/juju: user list test is now flexible about durations

The test for the "user list" command was assuming that the creation and last connection durations for the displayed user would be under a second. This isn't always true on slowers hosts (e.g. the ppc64 jenkins build slave).

A regex that accepts all possible durations is now used.
Fix upload tools tests on ppc64
Merge pull request #1030 from wallyworld/sync-test-ppc64

Fix upload tools tests on ppc64

Fixes: https://bugs.launchpad.net/juju-core/+bug/1388853

Small test tweak.
Merge pull request #1024 from wwitzel3/ww3-rsyslog-cert-hostname

rsyslog: tweak rsyslog server cert to handle hostname changes on provide...

Bug: https://bugs.launchpad.net/juju-core/+bug/1388688
Review: http://reviews.vapour.ws/r/324/
Factory with support for charm metrics validation.
Increment juju to 1.22-alpha1
Merge pull request #1035 from sinzui/1.22-alpha1

Increment juju to 1.22-alpha1

Increment the devel master branch to 1.22-alpha1. We will complete the 1.21.0 development on a new stable branch named 1.21
Implemented review suggestions.

- Migrated to a string literal in oneline test.
Merge pull request #1032 from tasdomas/uniter-metrics-validation

Metrics validation support in the uniter.

Now that charms have a way of declaring the metrics they will report, validation of metrics will be performed by the charm package, when the metrics is added using the hook tool add-metric.

In addition to this, the MP fixes the way local charms are added to the charms collection in state, so that the Metrics component is also stored.
Merge pull request #965 from katco-/lp-1272407-prov-test-flaky

Migrated test towards unit-style.

https://bugs.launchpad.net/juju-core/+bug/1272407

This test was intended to check the internal behavior of a type and thus is more of a unit test. In this spirit, we've migrated more towards this style by stubbing an internal variable to observe the type's behavior.