mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
5ca6532011
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
24 lines
374 B
Go
24 lines
374 B
Go
package runconfig
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/dotcloud/docker/utils"
|
|
)
|
|
|
|
func TestParseLxcConfOpt(t *testing.T) {
|
|
opts := []string{"lxc.utsname=docker", "lxc.utsname = docker "}
|
|
|
|
for _, o := range opts {
|
|
k, v, err := utils.ParseKeyValueOpt(o)
|
|
if err != nil {
|
|
t.FailNow()
|
|
}
|
|
if k != "lxc.utsname" {
|
|
t.Fail()
|
|
}
|
|
if v != "docker" {
|
|
t.Fail()
|
|
}
|
|
}
|
|
}
|