Skip to content

Commit d30128e

Browse files
committed
fix failing tests
1 parent 17568ca commit d30128e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/scripts/.bash_history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ rm -rf jdk-18_linux-x64_bin.deb
347347
git rebase -i main
348348
git rebase -i master
349349
git stash
350-
export tempPassword="jVJbBT1+u4EvfCEIwbMmgo7dxrsQyzG5VJQwqvYcVGw="
350+
export tempPassword="ActciVa30zz3eQHCIr4iZfw94ASoBgIsx8pxpK+Z5ic="
351351
mvn run tempPassword
352352
k6
353353
npx k6

js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
function secret() {
3-
var password = "WEdiIY4=" + 9 + "AdTk" + 6 + "Rtg=" + 2 + "t3cj" + 7;
3+
var password = "HLYP4Ns=" + 9 + "+zc+" + 6 + "3+M=" + 2 + "A2+n" + 7;
44
return password;
55
}

src/test/java/org/owasp/wrongsecrets/challenges/docker/Challenge56Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void solveChallenge56WithoutFile(@TempDir Path dir) {
2323
@Test
2424
void solveChallenge56WithFile(@TempDir Path dir) throws Exception {
2525
var testFile = new File(dir.toFile(), "project-specification.mdc");
26-
var secretLine = "**Example API key for testing: S3cr3tInPr0j3ctSp3c";
26+
var secretLine = "blabla\n- Example API key for testing: S3cr3tInPr0j3ctSp3c";
2727
Files.writeString(testFile.toPath(), "Some intro text\n" + secretLine + "\nSome outro text\n");
2828

2929
var challenge = new Challenge56(testFile.getAbsolutePath());
@@ -34,7 +34,7 @@ void solveChallenge56WithFile(@TempDir Path dir) throws Exception {
3434
@Test
3535
void spoilShouldReturnCorrectAnswer(@TempDir Path dir) throws IOException {
3636
var testFile = new File(dir.toFile(), "project-specification.mdc");
37-
var secretLine = "**Example API key for testing: S3cr3tInPr0j3ctSp3c";
37+
var secretLine = "blabla\n- Example API key for testing: S3cr3tInPr0j3ctSp3c";
3838
Files.writeString(testFile.toPath(), secretLine + "\n");
3939

4040
var challenge = new Challenge56(testFile.getAbsolutePath());

0 commit comments

Comments
 (0)