Merge pull request #11050 from marekbiskup/dns-example-e2e

e2e test for dns example
This commit is contained in:
Brendan Burns
2015-07-29 13:10:26 -07:00
3 changed files with 192 additions and 12 deletions

View File

@@ -290,14 +290,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 {