* fix: Replace curl list backend with dbg command #9716 Signed-off-by: Son Bui <sonbv00@gmail.com> * fix: Remove curl dependencies in e2e tests #9716 Signed-off-by: Son Bui <sonbv00@gmail.com> --------- Signed-off-by: Son Bui <sonbv00@gmail.com>
This commit is contained in:
parent
53c2f2742f
commit
a92e7b4857
4 changed files with 25 additions and 31 deletions
|
|
@ -28,7 +28,6 @@ import (
|
|||
"github.com/onsi/ginkgo/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"k8s.io/ingress-nginx/internal/nginx"
|
||||
"k8s.io/ingress-nginx/test/e2e/framework"
|
||||
)
|
||||
|
||||
|
|
@ -72,8 +71,8 @@ var _ = framework.IngressNginxDescribeSerial("[TopologyHints] topology aware rou
|
|||
}
|
||||
}
|
||||
|
||||
curlCmd := fmt.Sprintf("curl --fail --silent http://localhost:%v/configuration/backends", nginx.StatusPort)
|
||||
status, err := f.ExecIngressPod(curlCmd)
|
||||
dbgCmd := "/dbg backends all"
|
||||
status, err := f.ExecIngressPod(dbgCmd)
|
||||
assert.Nil(ginkgo.GinkgoT(), err)
|
||||
var backends []map[string]interface{}
|
||||
err = json.Unmarshal([]byte(status), &backends)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue