E2E: set stability iterations to 10 by default (#3997)

This commit is contained in:
Jack Francis 2018-10-12 17:17:42 -07:00 коммит произвёл GitHub
Родитель 884e8b97cf
Коммит fb2a496c06
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 8 удалений

Просмотреть файл

@ -70,11 +70,9 @@ var _ = BeforeSuite(func() {
masterSSHPort = "22"
}
masterSSHPrivateKeyFilepath = cfg.GetSSHKeyPath()
// TODO
// If no user-configurable stability iteration value is passed in, run stability tests once
/*if cfg.StabilityIterations == 0 {
cfg.StabilityIterations = 1
}*/
if cfg.StabilityIterations == 0 && !eng.HasWindowsAgents() {
cfg.StabilityIterations = 10
}
})
var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", func() {
@ -408,7 +406,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
}
})
It("should have stable external container networking", func() {
It("should have stable external container networking as we recycle a bunch of pods", func() {
name := fmt.Sprintf("alpine-%s", cfg.Name)
command := fmt.Sprintf("nc -vz 8.8.8.8 53 || nc -vz 8.8.4.4 53")
successes, err := pod.RunCommandMultipleTimes(pod.RunLinuxPod, "alpine", name, command, cfg.StabilityIterations)
@ -416,7 +414,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
Expect(successes).To(Equal(cfg.StabilityIterations))
})
It("should have stable internal container networking", func() {
It("should have stable internal container networking as we recycle a bunch of pods", func() {
name := fmt.Sprintf("alpine-%s", cfg.Name)
var command string
if common.IsKubernetesVersionGe(eng.ExpandedDefinition.Properties.OrchestratorProfile.OrchestratorVersion, "1.12.0") {
@ -546,7 +544,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
Expect(err).NotTo(HaveOccurred())
Expect(ready).To(Equal(true))
By("Ensuring that we have stable external DNS resolution from a container")
By("Ensuring that we have stable external DNS resolution as we recycle a bunch of pods")
name := fmt.Sprintf("alpine-%s", cfg.Name)
command := fmt.Sprintf("nc -vz bbc.co.uk 80 || nc -vz google.com 443 || nc -vz microsoft.com 80")
successes, err := pod.RunCommandMultipleTimes(pod.RunLinuxPod, "alpine", name, command, cfg.StabilityIterations)