Skip to content

Commit

Permalink
Fix unit test for chrry-pick PR-3250
Browse files Browse the repository at this point in the history
Signed-off-by: jooho <[email protected]>
  • Loading branch information
Jooho committed Nov 17, 2023
1 parent fb8c038 commit 2348e63
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,9 @@ func TestCaBundleSecretVolumeMount(t *testing.T) {
ReadOnly: true,
},
},
SecurityContext: &v1.SecurityContext{
RunAsUser: expectedInitContainerUid,
},
},
},
Volumes: []v1.Volume{
Expand Down Expand Up @@ -1485,6 +1488,9 @@ func TestCaBundleSecretVolumeMount(t *testing.T) {
MountPath: constants.DefaultModelLocalMountPath,
},
},
SecurityContext: &v1.SecurityContext{
RunAsUser: expectedInitContainerUid,
},
},
},
Volumes: []v1.Volume{
Expand All @@ -1508,7 +1514,7 @@ func TestCaBundleSecretVolumeMount(t *testing.T) {
config: scenario.storageConfig,
client: c,
}
if err := injector.InjectStorageInitializer(scenario.original,targetNS); err != nil {
if err := injector.InjectStorageInitializer(scenario.original, targetNS); err != nil {
t.Errorf("Test %q unexpected result: %s", name, err)
}
if diff, _ := kmp.SafeDiff(scenario.expected.Spec, scenario.original.Spec); diff != "" {
Expand Down

0 comments on commit 2348e63

Please sign in to comment.