1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #5000 from shykes/skip-login-tests

Skip login tests because of external dependency to a hosted service.
This commit is contained in:
unclejack 2014-04-04 01:11:09 +03:00
commit 55729ab4cb

View file

@ -16,6 +16,7 @@ import (
// - Integration tests should have side-effects limited to the host environment being tested. // - Integration tests should have side-effects limited to the host environment being tested.
func TestLogin(t *testing.T) { func TestLogin(t *testing.T) {
t.Skip("FIXME: please remove dependency on external services")
os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com") os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
defer os.Setenv("DOCKER_INDEX_URL", "") defer os.Setenv("DOCKER_INDEX_URL", "")
authConfig := &registry.AuthConfig{ authConfig := &registry.AuthConfig{
@ -34,6 +35,7 @@ func TestLogin(t *testing.T) {
} }
func TestCreateAccount(t *testing.T) { func TestCreateAccount(t *testing.T) {
t.Skip("FIXME: please remove dependency on external services")
tokenBuffer := make([]byte, 16) tokenBuffer := make([]byte, 16)
_, err := rand.Read(tokenBuffer) _, err := rand.Read(tokenBuffer)
if err != nil { if err != nil {