Skip to content

Commit 87a298a

Browse files
committed
update unit tests and schema
1 parent 19bb3ec commit 87a298a

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

charts/nginx-gateway-fabric/values.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
"type": "object"
353353
},
354354
"readinessProbe": {
355-
"description": "# Defines the settings for the data plane readiness probe. This probe returns Ready when the NGINX data plane is ready to serve traffic.",
355+
"description": "# -- Defines the settings for the data plane readiness probe. This probe returns Ready when the NGINX data plane is ready to serve traffic.",
356356
"required": [],
357357
"title": "readinessProbe",
358358
"type": "object"

charts/nginx-gateway-fabric/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ nginx:
441441
# -- volumeMounts are the additional volume mounts for the NGINX container.
442442
volumeMounts: []
443443

444-
## Defines the settings for the data plane readiness probe. This probe returns Ready when the NGINX data plane is ready to serve traffic.
444+
## -- Defines the settings for the data plane readiness probe. This probe returns Ready when the NGINX data plane is ready to serve traffic.
445445
readinessProbe: {}
446446
# @schema
447447
# type: integer

internal/controller/provisioner/objects_test.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,6 @@ func TestBuildNginxConfigMaps_WorkerConnections(t *testing.T) {
10711071

10721072
func TestBuildReadinessProbe(t *testing.T) {
10731073
t.Parallel()
1074-
g := NewWithT(t)
10751074

10761075
defaultProbe := &corev1.Probe{
10771076
ProbeHandler: corev1.ProbeHandler{
@@ -1104,15 +1103,6 @@ func TestBuildReadinessProbe(t *testing.T) {
11041103
},
11051104
expected: defaultProbe,
11061105
},
1107-
{
1108-
name: "daemonSet is nil, default probe is returned",
1109-
nProxyCfg: &graph.EffectiveNginxProxy{
1110-
Kubernetes: &ngfAPIv1alpha2.KubernetesSpec{
1111-
DaemonSet: nil,
1112-
},
1113-
},
1114-
expected: defaultProbe,
1115-
},
11161106
{
11171107
name: "container is nil, default probe is returned",
11181108
nProxyCfg: &graph.EffectiveNginxProxy{
@@ -1166,6 +1156,7 @@ func TestBuildReadinessProbe(t *testing.T) {
11661156
for _, tt := range tests {
11671157
t.Run(tt.name, func(t *testing.T) {
11681158
t.Parallel()
1159+
g := NewWithT(t)
11691160
probe := provisioner.buildReadinessProbe(tt.nProxyCfg)
11701161
g.Expect(probe).To(Equal(tt.expected))
11711162
})

0 commit comments

Comments
 (0)