Refactor e2e tests to use testify y httpexpect
This commit is contained in:
parent
046e2d959d
commit
f9624cbe46
80 changed files with 2280 additions and 2631 deletions
|
|
@ -19,7 +19,7 @@ package settings
|
|||
import (
|
||||
"strings"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
"github.com/onsi/ginkgo"
|
||||
|
||||
"k8s.io/ingress-nginx/test/e2e/framework"
|
||||
)
|
||||
|
|
@ -27,12 +27,13 @@ import (
|
|||
var _ = framework.DescribeSetting("[Security] modsecurity-snippet", func() {
|
||||
f := framework.NewDefaultFramework("modsecurity-snippet")
|
||||
|
||||
It("should add value of modsecurity-snippet setting to nginx config", func() {
|
||||
modsecSnippet := "modsecurity-snippet"
|
||||
ginkgo.It("should add value of modsecurity-snippet setting to nginx config", func() {
|
||||
expectedComment := "# modsecurity snippet"
|
||||
|
||||
f.UpdateNginxConfigMapData("enable-modsecurity", "true")
|
||||
f.UpdateNginxConfigMapData(modsecSnippet, expectedComment)
|
||||
f.SetNginxConfigMapData(map[string]string{
|
||||
"enable-modsecurity": "true",
|
||||
"modsecurity-snippet": expectedComment,
|
||||
})
|
||||
|
||||
f.WaitForNginxConfiguration(
|
||||
func(cfg string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue