Enhance test api to support test cases involved multiple containers

This commit is contained in:
He Simei
2015-06-23 16:03:31 +08:00
parent ebeb104493
commit 912e54789e
9 changed files with 30 additions and 23 deletions

View File

@@ -68,7 +68,7 @@ var _ = Describe("hostDir", func() {
fmt.Sprintf("--fs_type=%v", volumePath),
fmt.Sprintf("--file_mode=%v", volumePath),
}
testContainerOutputInNamespace("emptydir r/w on tmpfs", c, pod, []string{
testContainerOutputInNamespace("emptydir r/w on tmpfs", c, pod, 0, []string{
"mode of file \"/test-volume\": dtrwxrwxrwx", // we expect the sticky bit (mode flag t) to be set for the dir
},
namespace.Name)
@@ -87,7 +87,7 @@ var _ = Describe("hostDir", func() {
fmt.Sprintf("--rw_new_file=%v", filePath),
fmt.Sprintf("--file_mode=%v", filePath),
}
testContainerOutputInNamespace("emptydir r/w on tmpfs", c, pod, []string{
testContainerOutputInNamespace("emptydir r/w on tmpfs", c, pod, 0, []string{
"mode of file \"/test-volume/test-file\": -rw-r--r--",
"content of file \"/test-volume/test-file\": mount-tester new file",
}, namespace.Name,