separate metrics code/tests; move helpers from uniter_test to util_test
drop uniter_old_test, move components into uniter_test and util_test as appropriate
Add network.ParsePortRangePort.
ParsePortRangePorts -> ParsePortRange.
Add network.ParsePortRanges.
Add a round-trip test for PortRange strings.
Move ParsePortRange into portrange.go.
Fix switch so it also looks in the config store.
Merge pull request #1321 from wallyworld/lp-1328958

Change the way the ubuntu user is detected

Fixes https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1328958

Instead of looking for /home/ubuntu, we grep the passwd file to determine if the ubuntu user exists.

(Review request: http://reviews.vapour.ws/r/640/)
Tweak errors.
cmd/jujud: fixed patch race in upgrade tests

The patch to the attempt strategy used during upgrades was done just
/after/ the upgrade worker had already been started so there was a
race. The worker was occasionally getting the real attempt strategy
instead of the test one, causing long test runs and unexpected numbers
of retries.

The patch is now made before starting the worker.

Fixes LP #1389389.
Tweak implementation to use 'id'
Typo fix
Merge pull request #1304 from mjs/1389389-TestUpgradeStepsFailure-intermittent-failure

cmd/jujud: fixed patch race in upgrade tests

The patch to the attempt strategy used during upgrades was done just /after/ the upgrade worker had already been started so there was a race. The worker was occasionally getting the real attempt strategy instead of the test one, causing long test runs and unexpected numbers of retries.

The patch is now made before starting the worker.

Fixes LP #1389389.

(Review request: http://reviews.vapour.ws/r/618/)
Merge pull request #1320 from howbazaar/fix-switch

Fix switch so it also looks in the config store.

Fixes https://bugs.launchpad.net/juju-core/+bug/1334768

(Review request: http://reviews.vapour.ws/r/639/)
Merge pull request #1323 from wallyworld/lp-1328958-master

Merge pull request #1321 from wallyworld/lp-1328958

Change the way the ubuntu user is detected

Fixes https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1328958

Instead of looking for /home/ubuntu, we grep the passwd file to determine if the ubuntu user exists.

(Review request: http://reviews.vapour.ws/r/640/)

(Review request: http://reviews.vapour.ws/r/642/)
Merge pull request #1310 from waigani/makeEnv-take-config

testing: Update MakeEnvironment to take CofingAttrs

Update the testing factory function MakeEnvironment to take a new parameter: ConfigAttrs. ConfigAttrs is a map of environment configuration attributes which override the factory defaults.

(Review request: http://reviews.vapour.ws/r/625/)
Merge pull request #1296 from fwereade/uniter-test-cleanup

Uniter test cleanup

This started out as a simple move of the metrics code/tests into their own file, and then grew to include more significant test rearrangements:

  * moving all the context/stepper bits into util_test.go
  * moving all the global uniterTest arrays inside the methods that use them
  * dropping uniter_old_test.go, because there's no benefit to keeping its one test method outside uniter_test.go
  * moving UniterSuite.APILogin to context.apiLogin because it seemed cleaner

It's basically all mechanical, though.

(Review request: http://reviews.vapour.ws/r/610/)
Merge pull request #1327 from johnweldon/typo-fix

Typo fix



(Review request: http://reviews.vapour.ws/r/646/)
Merge pull request #1298 from ericsnowcurrently/network-parse-port-range

Add helpers for parsing port range strings.

We'll be using this in the GCE provider.

(Review request: http://reviews.vapour.ws/r/612/)