Merge pull request #4607 from vbatts/vbatts-static_registry

static registry support
This commit is contained in:
Victor Vieux 2014-04-29 11:22:44 -07:00
commit c914523873
2 changed files with 47 additions and 22 deletions

View file

@ -24,11 +24,11 @@ func spawnTestRegistry(t *testing.T) *Registry {
}
func TestPingRegistryEndpoint(t *testing.T) {
standalone, err := pingRegistryEndpoint(makeURL("/v1/"))
regInfo, err := pingRegistryEndpoint(makeURL("/v1/"))
if err != nil {
t.Fatal(err)
}
assertEqual(t, standalone, true, "Expected standalone to be true (default)")
assertEqual(t, regInfo.Standalone, true, "Expected standalone to be true (default)")
}
func TestGetRemoteHistory(t *testing.T) {