e2e test for dns example

This commit is contained in:
Marek Biskup
2015-07-10 11:54:54 +02:00
parent eb43cbb5dc
commit 860822431b
3 changed files with 168 additions and 10 deletions

View File

@@ -285,14 +285,6 @@ func podsRunning(c *client.Client, pods *api.PodList) []error {
return e
}
func podsResponding(c *client.Client, ns, name string, wantName bool, pods *api.PodList) error {
By("trying to dial each unique pod")
retryTimeout := 2 * time.Minute
retryInterval := 5 * time.Second
label := labels.SelectorFromSet(labels.Set(map[string]string{"name": name}))
return wait.Poll(retryInterval, retryTimeout, podResponseChecker{c, ns, label, name, wantName, pods}.checkAllResponses)
}
func verifyPods(c *client.Client, ns, name string, wantName bool, replicas int) error {
pods, err := podsCreated(c, ns, name, replicas)
if err != nil {