From 1fe1a079645054be1faa11495faa95c6676ed1b8 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Sat, 6 Aug 2022 10:19:10 +0200 Subject: [PATCH] Update POM file with new version: ctfd-safe-3 --- Dockerfile.web | 2 +- src/main/resources/templates/welcome.html | 3 ++- .../ChallengesControllerCTFModeWithPresetK8sValuesTest.java | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile.web b/Dockerfile.web index 8eeb171ef..1fdd7dbed 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -1,4 +1,4 @@ -FROM jeroenwillemsen/wrongsecrets:ctfd-safe-2-no-vault +FROM jeroenwillemsen/wrongsecrets:ctfd-safe-3-no-vault ARG argBasedVersion="1.5.0" ARG CANARY_URLS="http://canarytokens.com/terms/about/s7cfbdakys13246ewd8ivuvku/post.jsp,http://canarytokens.com/terms/about/y0all60b627gzp19ahqh7rl6j/post.jsp" diff --git a/src/main/resources/templates/welcome.html b/src/main/resources/templates/welcome.html index f5f0a0b9d..25e717245 100644 --- a/src/main/resources/templates/welcome.html +++ b/src/main/resources/templates/welcome.html @@ -22,7 +22,8 @@  Challenge      Focus    - + + Difficulty diff --git a/src/test/java/org/owasp/wrongsecrets/ChallengesControllerCTFModeWithPresetK8sValuesTest.java b/src/test/java/org/owasp/wrongsecrets/ChallengesControllerCTFModeWithPresetK8sValuesTest.java index 495e43168..0adfe69cb 100644 --- a/src/test/java/org/owasp/wrongsecrets/ChallengesControllerCTFModeWithPresetK8sValuesTest.java +++ b/src/test/java/org/owasp/wrongsecrets/ChallengesControllerCTFModeWithPresetK8sValuesTest.java @@ -79,9 +79,9 @@ void shouldShowFlagWhenRespondingWithSuccessInCTFModeChallenge7() throws Excepti void shouldEnableK8sExercises() throws Exception{ mvc.perform(get("/")) .andExpect(status().isOk()) - .andExpect(content().string(containsString("Challenge 5"))) - .andExpect(content().string(containsString("Challenge 6"))) - .andExpect(content().string(containsString("Challenge 7"))); + .andExpect(content().string(containsString(" Challenge 5"))) + .andExpect(content().string(containsString(" Challenge 6"))) + .andExpect(content().string(containsString(" Challenge 7"))); } }