Commit cb7bd710 authored by Robert Bailey's avatar Robert Bailey

Add a bit of extra logging to the dns test when it encounters

errors.
parent 9a764b76
...@@ -119,14 +119,14 @@ func assertFilesExist(fileNames []string, fileDir string, pod *api.Pod, client * ...@@ -119,14 +119,14 @@ func assertFilesExist(fileNames []string, fileDir string, pod *api.Pod, client *
expectNoError(wait.Poll(time.Second*2, time.Second*60, func() (bool, error) { expectNoError(wait.Poll(time.Second*2, time.Second*60, func() (bool, error) {
failed = []string{} failed = []string{}
for _, fileName := range fileNames { for _, fileName := range fileNames {
_, err := client.Get(). if _, err := client.Get().
Prefix("proxy"). Prefix("proxy").
Resource("pods"). Resource("pods").
Namespace(pod.Namespace). Namespace(pod.Namespace).
Name(pod.Name). Name(pod.Name).
Suffix(fileDir, fileName). Suffix(fileDir, fileName).
Do().Raw() Do().Raw(); err != nil {
if err != nil { Logf("Unable to read %s from pod %s: %v", fileName, pod.Name, err)
failed = append(failed, fileName) failed = append(failed, fileName)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment