remove unused function type
move windows specific code to windows file
introduce mustOsVersion
Fix tests for osx
Fix windows version
wording
Initial filtering of endpoints for public IPv4 addresses.
Simplified getting the address to return, it's always the first one.
Clean up tests.
rename mustOsVersion to mustOSVersion
tweak
Merge branch 'master' of https://github.com/juju/juju into api-endpoints-public-private-address
Changed comment on dependency of address order.
Merge branch 'master' of https://github.com/juju/juju into api-endpoints-public-private-address
Small test optimization.
Merge pull request #208 from TheMue/api-endpoints-only-first-public-address

api-endpoints only first public address

Currently the command api-endpoints returns all addresses. Wanted is a compatible behavior with older releases returning only one address of the API server the command connected to. This is defined by the API to be always the first of the returned addresses.

Currently the test environment only returns one local address. A more complex test simulating multiple API servers will be added later in an extra change.
Merge pull request #201 from howbazaar/fix-tests

Clean up tests.

The machine pingers are added as resources to the API.  There were many tests that were adding resources to their API implementations without ever cleaning them up.

I have added cleanup calls, that at worst do nothing, and at best may actually stop some of the intermittent failures.

There were a few places where the Setup function was skipping a base suite.
Merge pull request #195 from davecheney/118-fix-os-version-some-more

version: fix package and tests

Introduce `mustOsVersion`, which replaces `osVersion`, and panics if the version cannot be determined.

`osVersion` now returns an error value if it cannot determine the series.

Fix the tests so they actually _compile_ and _pass_ on OSX.
Merge remote-tracking branch 'upstream/master' into 121-networkinterfaceswatcher