mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
23 lines
326 B
Go
23 lines
326 B
Go
|
package runconfig
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestParseLxcConfOpt(t *testing.T) {
|
||
|
opts := []string{"lxc.utsname=docker", "lxc.utsname = docker "}
|
||
|
|
||
|
for _, o := range opts {
|
||
|
k, v, err := parseLxcOpt(o)
|
||
|
if err != nil {
|
||
|
t.FailNow()
|
||
|
}
|
||
|
if k != "lxc.utsname" {
|
||
|
t.Fail()
|
||
|
}
|
||
|
if v != "docker" {
|
||
|
t.Fail()
|
||
|
}
|
||
|
}
|
||
|
}
|