|
6 | 6 | "github.com/pkg/errors" |
7 | 7 | "github.com/stretchr/testify/assert" |
8 | 8 | "github.com/stretchr/testify/require" |
9 | | - |
10 | 9 | corev1 "k8s.io/api/core/v1" |
11 | 10 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
12 | 11 |
|
@@ -136,7 +135,6 @@ func TestContainer(t *testing.T) { |
136 | 135 | assert.Contains(t, container.Env, tt.verificationEnvVar()) |
137 | 136 | }) |
138 | 137 | } |
139 | | - |
140 | 138 | } |
141 | 139 |
|
142 | 140 | func TestSidecarContainerV2(t *testing.T) { |
@@ -248,7 +246,7 @@ func TestSidecarContainerV2(t *testing.T) { |
248 | 246 | } |
249 | 247 | } |
250 | 248 |
|
251 | | - assert.Len(t, container.VolumeMounts, 1) |
| 249 | + assert.Len(t, container.VolumeMounts, 2) |
252 | 250 | assert.Equal(t, "/pgconf/tls", container.VolumeMounts[0].MountPath) |
253 | 251 | assert.True(t, container.VolumeMounts[0].ReadOnly) |
254 | 252 | } |
@@ -357,7 +355,7 @@ func TestSidecarContainerV3(t *testing.T) { |
357 | 355 | } |
358 | 356 | } |
359 | 357 |
|
360 | | - assert.Len(t, container.VolumeMounts, 1) |
| 358 | + assert.Len(t, container.VolumeMounts, 2) |
361 | 359 | assert.Equal(t, "/pgconf/tls", container.VolumeMounts[0].MountPath) |
362 | 360 | assert.True(t, container.VolumeMounts[0].ReadOnly) |
363 | 361 | } |
0 commit comments