mirror of
https://github.com/rancher/os.git
synced 2025-09-06 17:22:34 +00:00
v2.0.0-beta7
- Docker 24.0.5 - Kernel 5.10.188 - System-docker 17.06.108 - System container images compresses with zstd instead of xz - Added WSL2 support - Include Hyper-V, ProxmoxVE and VMware tools to ISO - Include apparmor tools to console - Enable apparmor by default - Remove experimental selinux support - Include chroot command to initrd
This commit is contained in:
@@ -37,13 +37,6 @@ func TestGenerateEngineOptsString(t *testing.T) {
|
||||
Bridge: "bridge",
|
||||
})), "--bridge bridge")
|
||||
|
||||
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
|
||||
SelinuxEnabled: &[]bool{true}[0],
|
||||
})), "--selinux-enabled")
|
||||
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
|
||||
SelinuxEnabled: &[]bool{false}[0],
|
||||
})), "--selinux-enabled=false")
|
||||
|
||||
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
|
||||
Host: []string{
|
||||
"unix:///var/run/system-docker.sock",
|
||||
@@ -59,11 +52,10 @@ func TestGenerateEngineOptsString(t *testing.T) {
|
||||
})), "--log-opt max-size=25m", "--log-opt max-file=2")
|
||||
|
||||
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
|
||||
Bridge: "bridge",
|
||||
SelinuxEnabled: &[]bool{true}[0],
|
||||
Bridge: "bridge",
|
||||
LogOpts: map[string]string{
|
||||
"max-size": "25m",
|
||||
"max-file": "2",
|
||||
},
|
||||
})), "--bridge bridge", "--selinux-enabled", "--log-opt max-size=25m", "--log-opt max-file=2")
|
||||
})), "--bridge bridge", "--log-opt max-size=25m", "--log-opt max-file=2")
|
||||
}
|
||||
|
Reference in New Issue
Block a user