forked from jpvelsamy/handyman
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from zucisystems-dev/zip_file_agadia
agadia zip file creation folder path fix
- Loading branch information
Showing
2 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/test/java/in/handyman/raven/lib/CreateZipActionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package in.handyman.raven.lib; | ||
|
||
import in.handyman.raven.lambda.doa.audit.ActionExecutionAudit; | ||
import in.handyman.raven.lib.model.CreateZip; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.Map; | ||
|
||
@Slf4j | ||
class CreateZipActionTest { | ||
|
||
@Test | ||
void execute() throws Exception { | ||
CreateZip createZipAction = CreateZip.builder().name("test") | ||
.fileName("SYNT_166730538_c3") | ||
.destination("/home/[email protected]/Documents/evaluation_output/47747/SYNT_166730538_c3") | ||
.source("/home/[email protected]/Documents/evaluation_output/47747/SYNT_166730538_c3/SYNT_166730538_c3_29022024") | ||
.build(); | ||
|
||
ActionExecutionAudit actionExecutionAudit = new ActionExecutionAudit(); | ||
|
||
actionExecutionAudit.getContext().putAll(Map.ofEntries( | ||
Map.entry("read.batch.size", "5"), | ||
Map.entry("gen_group_id.group_id", "5"), | ||
Map.entry("consumer.API.count", "1"), | ||
Map.entry("paper.itemizer.multipart.upload.url", "http://localhost:8002/multipart-download"), | ||
Map.entry("write.batch.size", "5"))); | ||
|
||
CreateZipAction createZipAction1 = new CreateZipAction(actionExecutionAudit, log, createZipAction); | ||
createZipAction1.execute(); | ||
|
||
} | ||
} |