Deprecate HostConfig at container start

This commit is contained in:
Lantao Liu
2016-02-04 00:40:04 +00:00
parent b2600a65f5
commit 4a386f881f
6 changed files with 58 additions and 53 deletions

View File

@@ -1628,7 +1628,7 @@ func TestSyncPodWithTerminationLog(t *testing.T) {
t.Fatalf("unexpected error %v", err)
}
parts := strings.Split(newContainer.HostConfig.Binds[0], ":")
if !matchString(t, testPodContainerDir+"/k8s_bar\\.[a-f0-9]", parts[0]) {
if !matchString(t, testPodContainerDir+"/[a-f0-9]", parts[0]) {
t.Errorf("Unexpected host path: %s", parts[0])
}
if parts[1] != "/dev/somepath" {