@@ -201,15 +201,12 @@ var _ = Describe("FluidAppReconcilerImplement", func() {
201201 fuseContainer := corev1.Container {
202202 Name : common .FuseContainerName + "-0" ,
203203 VolumeMounts : []corev1.VolumeMount {{
204- Name : "fuse-mount" ,
205- MountPath : fuseMountPath ,
204+ Name : juicefsFuseMount ,
205+ MountPath : juicefsMountPath ,
206206 }},
207207 }
208208
209- patches = gomonkey .ApplyFunc (kubeclient .GetMountPathInContainer , func (corev1.Container ) (string , error ) {
210- return fuseMountPath , nil
211- })
212- patches .ApplyFunc (kubeclient .ExecCommandInContainerWithContext , func (context.Context , string , string , string , []string ) (string , string , error ) {
209+ patches = gomonkey .ApplyFunc (kubeclient .ExecCommandInContainerWithFullOutput , func (context.Context , string , string , string , []string ) (string , string , error ) {
213210 return "" , "not mounted" , fmt .Errorf ("umount failed" )
214211 })
215212
@@ -222,15 +219,12 @@ var _ = Describe("FluidAppReconcilerImplement", func() {
222219 fuseContainer := corev1.Container {
223220 Name : common .FuseContainerName + "-0" ,
224221 VolumeMounts : []corev1.VolumeMount {{
225- Name : "fuse-mount" ,
226- MountPath : fuseMountPath ,
222+ Name : juicefsFuseMount ,
223+ MountPath : juicefsMountPath ,
227224 }},
228225 }
229226
230- patches = gomonkey .ApplyFunc (kubeclient .GetMountPathInContainer , func (corev1.Container ) (string , error ) {
231- return fuseMountPath , nil
232- })
233- patches .ApplyFunc (kubeclient .ExecCommandInContainerWithContext , func (context.Context , string , string , string , []string ) (string , string , error ) {
227+ patches = gomonkey .ApplyFunc (kubeclient .ExecCommandInContainerWithFullOutput , func (context.Context , string , string , string , []string ) (string , string , error ) {
234228 return "" , "" , fmt .Errorf ("exit code 137" )
235229 })
236230
0 commit comments