fix 6a6b page

This commit is contained in:
Rene Zubcevic
2019-07-22 15:36:31 +02:00
parent b65644edee
commit 7ad3996f2f
3 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,7 @@ public class SqlInjectionLesson6aTest extends LessonTest {
mockMvc.perform(MockMvcRequestBuilders.post("/SqlInjectionAdvanced/attack6a")
.param("userid_6a", "Smith'; SELECT * from user_system_data; --"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.lessonCompleted", is(false)))
.andExpect(jsonPath("$.lessonCompleted", is(true)))
.andExpect(jsonPath("$.feedback", containsString("passW0rD")));
}
@ -82,6 +82,7 @@ public class SqlInjectionLesson6aTest extends LessonTest {
.param("userid_6a", "S'; Select * from user_system_data; --"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.lessonCompleted", is(true)))
.andExpect(jsonPath("$.feedback", containsString("UNION")));
}
}