use static mode for affinity e2e test

This commit is contained in:
Elvin Efendi 2018-07-26 22:34:49 -04:00
parent 925be40943
commit 6641aa58e2
2 changed files with 21 additions and 1 deletions

View file

@ -32,11 +32,15 @@ import (
"k8s.io/ingress-nginx/test/e2e/framework"
)
// TODO(elvinefendi) merge this with Affinity tests in test/e2e/lua/dynamic_configuration.go
var _ = framework.IngressNginxDescribe("Annotations - Affinity", func() {
f := framework.NewDefaultFramework("affinity")
BeforeEach(func() {
err := f.NewEchoDeploymentWithReplicas(2)
err := f.DisableDynamicConfiguration()
Expect(err).NotTo(HaveOccurred())
err = f.NewEchoDeploymentWithReplicas(2)
Expect(err).NotTo(HaveOccurred())
})