Add e2e test for wrapper volumes

Use git server in e2e and refactor wrapper builder

Update e2e test to use a fake git server
This commit is contained in:
harry
2015-12-14 15:32:37 +08:00
committed by Harry Zhang
parent c0d49450e4
commit 0fa5b6c4f7
15 changed files with 263 additions and 163 deletions

View File

@@ -266,7 +266,7 @@ func doTestPlugin(scenario struct {
}
}
// gitRepo volume should create it's own empty wrapper path
// gitRepo volume should create its own empty wrapper path
podWrapperMetadataDir := fmt.Sprintf("%v/pods/poduid/plugins/kubernetes.io~empty-dir/wrapped_%v", rootDir, scenario.vol.Name)
if _, err := os.Stat(podWrapperMetadataDir); err != nil {