2021-08-23 09:14:53 -04:00
|
|
|
//go:build windows
|
2017-03-10 12:39:22 -05:00
|
|
|
// +build windows
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package runconfig // import "github.com/docker/docker/runconfig"
|
2017-03-10 12:39:22 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/docker/docker/api/types/container"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestValidatePrivileged(t *testing.T) {
|
2017-05-21 13:50:55 -04:00
|
|
|
expected := "Windows does not support privileged mode"
|
2017-03-10 12:39:22 -05:00
|
|
|
err := validatePrivileged(&container.HostConfig{Privileged: true})
|
|
|
|
if err == nil || err.Error() != expected {
|
|
|
|
t.Fatalf("Expected %s", expected)
|
|
|
|
}
|
|
|
|
}
|