mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove offline mode from auth unit tests
This commit is contained in:
parent
13e03a6911
commit
6dccdd657f
1 changed files with 0 additions and 6 deletions
|
@ -27,9 +27,6 @@ func TestEncodeAuth(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestLogin(t *testing.T) {
|
func TestLogin(t *testing.T) {
|
||||||
if os.Getenv("OFFLINE") != "" {
|
|
||||||
t.Skip("Offline mode, skipping.")
|
|
||||||
}
|
|
||||||
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 := NewAuthConfig("unittester", "surlautrerivejetattendrai", "noise+unittester@dotcloud.com", "/tmp")
|
authConfig := NewAuthConfig("unittester", "surlautrerivejetattendrai", "noise+unittester@dotcloud.com", "/tmp")
|
||||||
|
@ -43,9 +40,6 @@ func TestLogin(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateAccount(t *testing.T) {
|
func TestCreateAccount(t *testing.T) {
|
||||||
if os.Getenv("OFFLINE") != "" {
|
|
||||||
t.Skip("Offline mode, skipping.")
|
|
||||||
}
|
|
||||||
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", "")
|
||||||
tokenBuffer := make([]byte, 16)
|
tokenBuffer := make([]byte, 16)
|
||||||
|
|
Loading…
Reference in a new issue