Skip to content

Commit 4a2b917

Browse files
committed
updated Mock management to test external file config apply
1 parent f22834f commit 4a2b917

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/file/file_manager_service.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ func (fms *FileManagerService) handleExternalFileDownload(ctx context.Context, f
842842
slog.DebugContext(ctx, "External file unchanged (304), skipping disk write.",
843843
"file", fileAction.File.GetFileMeta().GetName())
844844

845+
fileAction.Action = model.Unchanged
846+
845847
return nil
846848
}
847849

test/mock/grpc/mock_management_command_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ func processConfigApplyRequestBody(c *gin.Context, initialFiles []*mpi.File) ([]
577577
} else {
578578
newFile := &mpi.File{
579579
FileMeta: &mpi.FileMeta{
580-
Name: ed.FilePath,
580+
Name: ed.FilePath,
581+
Permissions: "0644",
581582
},
582583
ExternalDataSource: &mpi.ExternalDataSource{
583584
Location: ed.Location,

0 commit comments

Comments
 (0)