Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <zww@hdls.me>
  • Loading branch information
zwwhdls committed Mar 30, 2022
1 parent a085f29 commit b7b041d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
13 changes: 0 additions & 13 deletions charts/fluid-dataloader/juicefs/templates/dataloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ spec:
{{- end }}
{{- end }}
name: cachedir
{{- range $key, $val := .Values.dataloader.options }}
{{- if eq $key "mountpath" }}
- mountPath: {{ $val | quote }}
{{- end }}
{{- end }}
name: mountpath1
volumes:
- name: data-load-script
configMap:
Expand All @@ -139,10 +133,3 @@ spec:
path: {{ $val | quote }}
{{- end }}
{{- end }}
- name: mountpath1
{{- range $key, $val := .Values.dataloader.options }}
{{- if eq $key "mountpath" }}
hostPath:
path: {{ $val | quote }}
{{- end }}
{{- end }}
10 changes: 5 additions & 5 deletions pkg/ddc/juicefs/transform_fuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func TestJuiceFSEngine_genValue(t *testing.T) {
name: "test",
namespace: "fluid",
Client: client,
Log: log.NullLogger{},
Log: fake.NullLogger(),
runtime: &datav1alpha1.JuiceFSRuntime{
Spec: datav1alpha1.JuiceFSRuntimeSpec{
Fuse: datav1alpha1.JuiceFSFuseSpec{},
Expand Down Expand Up @@ -498,7 +498,7 @@ func TestJuiceFSEngine_genMount(t *testing.T) {
fields: fields{
name: "test",
namespace: "fluid",
Log: log.NullLogger{},
Log: fake.NullLogger(),
},
args: args{
value: &JuiceFS{
Expand Down Expand Up @@ -529,7 +529,7 @@ func TestJuiceFSEngine_genMount(t *testing.T) {
fields: fields{
name: "test",
namespace: "fluid",
Log: log.NullLogger{},
Log: fake.NullLogger(),
},
args: args{
value: &JuiceFS{
Expand Down Expand Up @@ -598,7 +598,7 @@ func TestJuiceFSEngine_genFormat(t *testing.T) {
fields: fields{
name: "test",
namespace: "fluid",
Log: log.NullLogger{},
Log: fake.NullLogger(),
},
args: args{
value: &JuiceFS{
Expand Down Expand Up @@ -629,7 +629,7 @@ func TestJuiceFSEngine_genFormat(t *testing.T) {
fields: fields{
name: "test",
namespace: "fluid",
Log: log.NullLogger{},
Log: fake.NullLogger(),
},
args: args{
value: &JuiceFS{
Expand Down

0 comments on commit b7b041d

Please sign in to comment.