diff options
author | John Howard (VM) <jhoward@ntdev.microsoft.com> | 2017-03-10 09:39:22 -0800 |
---|---|---|
committer | John Howard (VM) <jhoward@ntdev.microsoft.com> | 2017-03-13 08:56:17 -0700 |
commit | 4af3389d43d93f50d9b4fa217de148ec45abf8cb (patch) | |
tree | d10e035aad75ed4b210890f29013cdd46b2b6134 /runconfig/hostconfig_windows_test.go | |
parent | 3fe2730ab3d7bba483d7bf4fb1e95b627823ff4d (diff) | |
download | docker-4af3389d43d93f50d9b4fa217de148ec45abf8cb.tar.gz |
Windows: Balk on --privileged
Signed-off-by: John Howard (VM) <jhoward@ntdev.microsoft.com>
Diffstat (limited to 'runconfig/hostconfig_windows_test.go')
-rw-r--r-- | runconfig/hostconfig_windows_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runconfig/hostconfig_windows_test.go b/runconfig/hostconfig_windows_test.go new file mode 100644 index 0000000000..174a65fcb8 --- /dev/null +++ b/runconfig/hostconfig_windows_test.go @@ -0,0 +1,17 @@ +// +build windows + +package runconfig + +import ( + "testing" + + "github.com/docker/docker/api/types/container" +) + +func TestValidatePrivileged(t *testing.T) { + expected := "invalid --privileged: Windows does not support this feature" + err := validatePrivileged(&container.HostConfig{Privileged: true}) + if err == nil || err.Error() != expected { + t.Fatalf("Expected %s", expected) + } +} |