5824: Simplify keepproxy test setup.
authorTom Clegg <tom@curoverse.com>
Sat, 17 Oct 2015 08:23:27 +0000 (04:23 -0400)
committerTom Clegg <tom@curoverse.com>
Sat, 17 Oct 2015 08:23:27 +0000 (04:23 -0400)
commit813d35123538b00ab70719e247b6bb0881269460
tree0f6e29159a90b697d26cad8e0a93402ed20440b6
parentde1aef9bd3cd982604b1f9f1ad8433d0b28112ee
5824: Simplify keepproxy test setup.

For testing, configure KeepClient to use the test proxy server,
instead of telling the API about the test proxy server and using env
vars to trick the client into discovering it.

Let the OS choose an available port for each test server instead of
pre-assigning an arbitrary port number to each test case.

Use a properly formatted fake UUID.
services/keepproxy/keepproxy.go
services/keepproxy/keepproxy_test.go