Cleanup proxy protocol e2e test
This commit is contained in:
parent
c8c69df30d
commit
4cda9787b8
1 changed files with 7 additions and 5 deletions
|
@ -21,14 +21,14 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
corev1 "k8s.io/api/core/v1"
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/util/intstr"
|
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo"
|
"github.com/onsi/ginkgo"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
corev1 "k8s.io/api/core/v1"
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/apimachinery/pkg/util/intstr"
|
||||||
|
|
||||||
"k8s.io/ingress-nginx/test/e2e/framework"
|
"k8s.io/ingress-nginx/test/e2e/framework"
|
||||||
)
|
)
|
||||||
|
@ -153,8 +153,10 @@ var _ = framework.DescribeSetting("use-proxy-protocol", func() {
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.It("should enable PROXY Protocol for TCP", func() {
|
ginkgo.It("should enable PROXY Protocol for TCP", func() {
|
||||||
f.UpdateNginxConfigMapData(setting, "true")
|
cmapData := map[string]string{}
|
||||||
f.UpdateNginxConfigMapData("enable-real-ip", "true")
|
cmapData[setting] = "true"
|
||||||
|
cmapData["enable-real-ip"] = "true"
|
||||||
|
f.SetNginxConfigMapData(cmapData)
|
||||||
|
|
||||||
config, err := f.KubeClientSet.
|
config, err := f.KubeClientSet.
|
||||||
CoreV1().
|
CoreV1().
|
||||||
|
|
Loading…
Reference in a new issue