Merge pull request #75116 from adelina-t/patch-1

Update gmsa test
pull/564/head
Kubernetes Prow Robot 2019-03-07 22:44:33 -08:00 committed by GitHub
commit 5c2fe63591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 17 deletions

View File

@ -68,23 +68,7 @@ var _ = SIGDescribe("[Feature:Windows] [Feature:WindowsGMSA] GMSA [Slow]", func(
}
ginkgo.By("creating a pod with correct GMSA annotations")
f.PodClient().Create(pod)
ginkgo.By("waiting for the pod and its containers to be running")
gomega.Eventually(func() bool {
pod, err := f.PodClient().Get(podName, metav1.GetOptions{})
if err != nil && pod.Status.Phase != corev1.PodRunning {
return false
}
for _, containerStatus := range pod.Status.ContainerStatuses {
if containerStatus.State.Running == nil {
return false
}
}
return true
}, 5*time.Minute, 1*time.Second).Should(gomega.BeTrue())
f.PodClient().CreateSync(pod)
ginkgo.By("checking the domain reported by nltest in the containers")
namespaceOption := fmt.Sprintf("--namespace=%s", f.Namespace.Name)