Cleanup and standardization of e2e test definitions (#5090)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-16 15:27:58 -03:00 committed by GitHub
parent 45c9f94b17
commit cc318cdec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 90 additions and 133 deletions

View file

@ -26,7 +26,7 @@ import (
"k8s.io/ingress-nginx/test/e2e/framework"
)
var _ = framework.IngressNginxDescribe("Configmap change", func() {
var _ = framework.DescribeSetting("Configmap change", func() {
f := framework.NewDefaultFramework("configmap-change")
BeforeEach(func() {
@ -39,12 +39,9 @@ var _ = framework.IngressNginxDescribe("Configmap change", func() {
ing := framework.NewSingleIngress(host, "/", host, f.Namespace, framework.EchoService, 80, nil)
f.EnsureIngress(ing)
wlKey := "whitelist-source-range"
wlValue := "1.1.1.1"
By("adding a whitelist-source-range")
f.UpdateNginxConfigMapData(wlKey, wlValue)
f.UpdateNginxConfigMapData("whitelist-source-range", "1.1.1.1")
checksumRegex := regexp.MustCompile(`Configuration checksum:\s+(\d+)`)
checksum := ""