Patch version number in some bootstrap tests to allow tests to pass with non-dev version number
Set build number rather than minor version to simulate dev version
utils/ssh: set ServerAliveInterval option

Bootstrapping Azure was seeing the CLI
hang at "apt-get upgrade" with no further
output or command completion. Inspection
of cloud-init-output.log on the server
showed that the bootstrap procedure
completed successfully.

The problem appears to be due to the
"apt-get upgrade" taking a long time on
Azure: over 6 minutes. This inactivity
causes the ssh server to discontinue sending
output to the client. To resolve the issue
we need to ensure the ssh client sends
keepalive messages to the server.

Fixes https://bugs.launchpad.net/juju-core/+bug/1316185
Initial filtering of endpoints for public IPv4 addresses.
Simplified getting the address to return, it's always the first one.
Clean up tests.
Add missing suite setup/teardown, etc.
Merge pull request #191 from wallyworld/version-1-20-fix

Patch version number in some bootstrap tests

Patch the version.Current to a dev version since upload-tools is not allowed for non-dev versions.
Merge branch 'master' of https://github.com/juju/juju into api-endpoints-public-private-address
Changed comment on dependency of address order.
Merge pull request #205 from axw/moar-test-cleanup

Add missing suite setup/teardown, etc.
Merge branch 'master' of https://github.com/juju/juju into api-endpoints-public-private-address
Small test optimization.
Merge pull request #196 from axw/lp1316185-ssh-keepalive

utils/ssh: set ServerAliveInterval option

Bootstrapping Azure was seeing the CLI
hang at "apt-get upgrade" with no further
output or command completion. Inspection
of cloud-init-output.log on the server
showed that the bootstrap procedure
completed successfully.

The problem appears to be due to the
"apt-get upgrade" taking a long time on
Azure: over 6 minutes. This inactivity
causes the ssh server to discontinue sending
output to the client. To resolve the issue
we need to ensure the ssh client sends
keepalive messages to the server.

Fixes https://bugs.launchpad.net/juju-core/+bug/1316185
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.