mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Fix TestRunLookupGoogleDNS for nanoserver
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
2debfe8435
commit
80a63e8a21
1 changed files with 6 additions and 4 deletions
|
@ -63,12 +63,14 @@ func (s *DockerSuite) TestRunLeakyFileDescriptors(c *check.C) {
|
||||||
// this will fail when Internet access is unavailable
|
// this will fail when Internet access is unavailable
|
||||||
func (s *DockerSuite) TestRunLookupGoogleDNS(c *check.C) {
|
func (s *DockerSuite) TestRunLookupGoogleDNS(c *check.C) {
|
||||||
testRequires(c, Network, NotArm)
|
testRequires(c, Network, NotArm)
|
||||||
image := DefaultImage
|
|
||||||
if daemonPlatform == "windows" {
|
if daemonPlatform == "windows" {
|
||||||
// nslookup isn't present in Windows busybox. Is built-in.
|
// nslookup isn't present in Windows busybox. Is built-in. Further,
|
||||||
image = WindowsBaseImage
|
// nslookup isn't present in nanoserver. Hence just use PowerShell...
|
||||||
|
dockerCmd(c, "run", WindowsBaseImage, "powershell", "Resolve-DNSName", "google.com")
|
||||||
|
} else {
|
||||||
|
dockerCmd(c, "run", DefaultImage, "nslookup", "google.com")
|
||||||
}
|
}
|
||||||
dockerCmd(c, "run", image, "nslookup", "google.com")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// the exit code should be 0
|
// the exit code should be 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue