-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use designated test domains (RFC2606) in tests
Some tests were using domain names that were intended to be "fake", but are actually registered domain names (such as mycorp.com). Even though we were not actually making connections to these domains, it's better to use domains that are designated for testing/examples in RFC2606: https://tools.ietf.org/html/rfc2606 Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
13 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR | ||
current * description of current https://someswarmserver https://someserver (default) all | ||
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm | ||
other description of other https://someswarmserver https://someserver (default) all | ||
unset description of unset https://someswarmserver https://someserver (default) | ||
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR | ||
current * description of current https://someswarmserver.example.com https://someserver.example.com (default) all | ||
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm | ||
other description of other https://someswarmserver.example.com https://someserver.example.com (default) all | ||
unset description of unset https://someswarmserver.example.com https://someserver.example.com (default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,10 @@ func TestEncodeAuth(t *testing.T) { | |
} | ||
|
||
func TestProxyConfig(t *testing.T) { | ||
httpProxy := "http://proxy.mycorp.com:3128" | ||
httpsProxy := "https://user:[email protected]:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.com:21" | ||
noProxy := "*.intra.mycorp.com" | ||
httpProxy := "http://proxy.mycorp.example.com:3128" | ||
httpsProxy := "https://user:[email protected].example.com:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.example.com:21" | ||
noProxy := "*.intra.mycorp.example.com" | ||
defaultProxyConfig := ProxyConfig{ | ||
HTTPProxy: httpProxy, | ||
HTTPSProxy: httpsProxy, | ||
|
@@ -59,12 +59,12 @@ func TestProxyConfig(t *testing.T) { | |
} | ||
|
||
func TestProxyConfigOverride(t *testing.T) { | ||
httpProxy := "http://proxy.mycorp.com:3128" | ||
httpProxy := "http://proxy.mycorp.example.com:3128" | ||
overrideHTTPProxy := "http://proxy.example.com:3128" | ||
overrideNoProxy := "" | ||
httpsProxy := "https://user:[email protected]:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.com:21" | ||
noProxy := "*.intra.mycorp.com" | ||
httpsProxy := "https://user:[email protected].example.com:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.example.com:21" | ||
noProxy := "*.intra.mycorp.example.com" | ||
defaultProxyConfig := ProxyConfig{ | ||
HTTPProxy: httpProxy, | ||
HTTPSProxy: httpsProxy, | ||
|
@@ -102,10 +102,10 @@ func TestProxyConfigOverride(t *testing.T) { | |
} | ||
|
||
func TestProxyConfigPerHost(t *testing.T) { | ||
httpProxy := "http://proxy.mycorp.com:3128" | ||
httpsProxy := "https://user:[email protected]:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.com:21" | ||
noProxy := "*.intra.mycorp.com" | ||
httpProxy := "http://proxy.mycorp.example.com:3128" | ||
httpsProxy := "https://user:[email protected].example.com:3129" | ||
ftpProxy := "http://ftpproxy.mycorp.example.com:21" | ||
noProxy := "*.intra.mycorp.example.com" | ||
|
||
extHTTPProxy := "http://proxy.example.com:3128" | ||
extHTTPSProxy := "https://user:[email protected]:3129" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ func TestFileStoreGet(t *testing.T) { | |
|
||
func TestFileStoreGetAll(t *testing.T) { | ||
s1 := "https://example.com" | ||
s2 := "https://example2.com" | ||
s2 := "https://example2.example.com" | ||
f := newStore(map[string]types.AuthConfig{ | ||
s1: { | ||
Auth: "super_secret_token", | ||
|
@@ -80,7 +80,7 @@ func TestFileStoreGetAll(t *testing.T) { | |
s2: { | ||
Auth: "super_secret_token2", | ||
Email: "[email protected]", | ||
ServerAddress: "https://example2.com", | ||
ServerAddress: "https://example2.example.com", | ||
}, | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters