Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLCaron committed Apr 16, 2024
1 parent b1a2dbf commit cc1a72b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/CommandLineInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ Options:
--device, -device -> voting device name (always required) { String }
--ballotFilepath, -ballot -> Plaintext ballot filepath (or 'CLOSE') (always required) { String }
--outputDir, -out -> Directory to write output election record (always required) { String }
--encryptBallotDir, -output -> Write encrypted ballot to this directory (always required) { String }
--noDeviceNameInDir, -deviceDir [false] -> Dont add device name to encrypted ballots directory
--help, -h -> Usage info
Expand Down
12 changes: 6 additions & 6 deletions src/test/kotlin/org/cryptobiotic/eg/cli/RunEncryptBallotTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RunEncryptBallotTest {
val inputDir = "src/test/data/encrypt/testBallotNoChain"
val outputDir = "${Testing.testOut}/encrypt/testRunEncryptBadPlaintextBallot"
val consumerIn = makeConsumer(inputDir)
val publisher = makePublisher(outputDir, true)
makePublisher(outputDir, true)

val retval = RunEncryptBallot.encryptBallot(
consumerIn,
Expand Down Expand Up @@ -77,7 +77,7 @@ class RunEncryptBallotTest {
arrayOf(
"--inputDir", inputDir,
"--ballotFilepath", "$outputDir/pballot-$ballotId.json",
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", "device42",
)
)
Expand Down Expand Up @@ -114,7 +114,7 @@ class RunEncryptBallotTest {
arrayOf(
"--inputDir", inputDir,
"--ballotFilepath", ballotFilename,
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", device,
"--noDeviceNameInDir"
)
Expand Down Expand Up @@ -157,7 +157,7 @@ class RunEncryptBallotTest {
arrayOf(
"--inputDir", inputDir,
"--ballotFilepath", ballotFilename,
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", device,
)
)
Expand All @@ -173,7 +173,7 @@ class RunEncryptBallotTest {
arrayOf(
"--inputDir", inputDir,
"--ballotFilepath", "CLOSE",
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", device,
)
)
Expand Down Expand Up @@ -207,7 +207,7 @@ class RunEncryptBallotTest {
arrayOf(
"--inputDir", inputDir,
"--ballotFilepath", ballotFilename,
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", device,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RunExampleEncryptionTest {
"--inputDir", inputDir,
"--nballots", nballots.toString(),
"--plaintextBallotDir", "$outputDir/plaintext",
"--encryptBallotDir", outputDir,
"--outputDir", outputDir,
"-device", "device42,device11",
)
)
Expand All @@ -43,7 +43,7 @@ class RunExampleEncryptionTest {
"--nballots", nballots.toString(),
"--plaintextBallotDir", "$outputDir/plaintext",
"-device", "device42,device11",
"--encryptBallotDir", "$outputDir",
"--outputDir", "$outputDir",
"--noDeviceNameInDir",
)
)
Expand Down

0 comments on commit cc1a72b

Please sign in to comment.