92291a7355
Signed-off-by: Stanislav Bondarenko <stanislav.bondarenko@gmail.com>
17 lines
363 B
Go
17 lines
363 B
Go
// +build windows
|
|
|
|
package runconfig
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/docker/docker/api/types/container"
|
|
)
|
|
|
|
func TestValidatePrivileged(t *testing.T) {
|
|
expected := "Windows does not support privileged mode"
|
|
err := validatePrivileged(&container.HostConfig{Privileged: true})
|
|
if err == nil || err.Error() != expected {
|
|
t.Fatalf("Expected %s", expected)
|
|
}
|
|
}
|