Fix minor typos (#11941)
Co-authored-by: Nathan Baulch <nathan.baulch@gmail.com>
This commit is contained in:
parent
889afa9abd
commit
dcfa4507ae
47 changed files with 125 additions and 125 deletions
|
|
@ -84,7 +84,7 @@ var _ = framework.IngressNginxDescribeSerial("[TopologyHints] topology aware rou
|
|||
}
|
||||
|
||||
if gotHints {
|
||||
// we have 2 replics, if there is just one backend it means that we are routing according slices hints to same zone as controller is
|
||||
// we have 2 replicas, if there is just one backend it means that we are routing according slices hints to same zone as controller is
|
||||
assert.Equal(ginkgo.GinkgoT(), 1, gotBackends)
|
||||
} else {
|
||||
// two replicas should have two endpoints without topology hints
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const HTTPBunService = "httpbun"
|
|||
// NipService name of external service using nip.io
|
||||
const NIPService = "external-nip"
|
||||
|
||||
// HTTPBunImage is the default image that is used to deploy HTTPBun with the framwork
|
||||
// HTTPBunImage is the default image that is used to deploy HTTPBun with the framework
|
||||
var HTTPBunImage = os.Getenv("HTTPBUN_IMAGE")
|
||||
|
||||
// EchoImage is the default image to be used by the echo service
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ func NewDefaultFramework(baseName string, opts ...func(*Framework)) *Framework {
|
|||
}
|
||||
|
||||
// NewSimpleFramework makes a new framework that allows the usage of a namespace
|
||||
// for arbitraty tests.
|
||||
// for arbitrary tests.
|
||||
func NewSimpleFramework(baseName string, opts ...func(*Framework)) *Framework {
|
||||
defer ginkgo.GinkgoRecover()
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ var _ = framework.IngressNginxDescribe("[Shutdown] ingress controller", func() {
|
|||
f.NewSlowEchoDeployment()
|
||||
})
|
||||
|
||||
ginkgo.It("should shutdown in less than 60 secons without pending connections", func() {
|
||||
ginkgo.It("should shutdown in less than 60 seconds without pending connections", func() {
|
||||
f.EnsureIngress(framework.NewSingleIngress(host, "/", host, f.Namespace, framework.SlowEchoService, 80, nil))
|
||||
|
||||
f.WaitForNginxServer(host,
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
disable = "false"
|
||||
noAuthLocaltionSetting = "no-auth-locations"
|
||||
disable = "false"
|
||||
noAuthLocationSetting = "no-auth-locations"
|
||||
)
|
||||
|
||||
var _ = framework.DescribeSetting("[Security] global-auth-url", func() {
|
||||
|
|
@ -51,7 +51,7 @@ var _ = framework.DescribeSetting("[Security] global-auth-url", func() {
|
|||
fooPath := "/foo"
|
||||
barPath := "/bar"
|
||||
|
||||
noAuthSetting := noAuthLocaltionSetting
|
||||
noAuthSetting := noAuthLocationSetting
|
||||
noAuthLocations := barPath
|
||||
|
||||
enableGlobalExternalAuthAnnotation := "nginx.ingress.kubernetes.io/enable-global-auth"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// This is a loadtest under development
|
||||
// Test here is spec'd to have 100virtual-users
|
||||
// Other specs currently similar to smoktest
|
||||
// Other specs currently similar to smoketest
|
||||
// But loadtest needs testplan that likely uses auth & data-transfer
|
||||
|
||||
import http from 'k6/http';
|
||||
|
|
@ -35,7 +35,7 @@ export default function () {
|
|||
const req3 = {
|
||||
params: {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
},
|
||||
method: 'POST',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// smotest.js edited after copy/pasting from https://k6.io docs
|
||||
// smoketest.js edited after copy/pasting from https://k6.io docs
|
||||
// Using this like loadtest because of limited cpu/memory/other
|
||||
|
||||
import http from 'k6/http';
|
||||
|
|
@ -22,7 +22,7 @@ export const options = {
|
|||
};
|
||||
|
||||
export default function () {
|
||||
// docs of k6 say this is how to adds host header
|
||||
// docs of k6 say this is how to add host header
|
||||
// needed as ingress is created with this host value
|
||||
const params = {
|
||||
headers: {'host': 'test.ingress-nginx-controller.ga'},
|
||||
|
|
@ -39,7 +39,7 @@ export default function () {
|
|||
const req3 = {
|
||||
params: {
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
},
|
||||
method: 'POST',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue