Skip to content

Commit

Permalink
[#12048] Add SQL injection tests in FeedbackSessionsDbIT (#12857)
Browse files Browse the repository at this point in the history
* Add createTypicalXyz methods

* Add SQL injection tests for createFeedbackSession

* Add SQL injection tests for getFeedbackSession(String, String)

* Add SQL injection tests for getSoftDeletedFeedbackSession

* Add SQL injection test for getSoftDeletedFeedbackSessionsForCourse

* Add SQL injection tests from restoreDeletedFeedbackSession

* Change SQL injection for restoreDeletedFeedbackSession

* Add SQL injection test for getFeedbackSessionEntitiesForCourse

* Add SQL injection test for get ... for course starting after

* Add comment for SQL injection attempts on deleteFeedbackSession

* Add SQL injection tests for updateFeedbackSession

* Add SQL injection tests for softDeleteFeedbackSession

* Fix lint

* Fix PMD

* Make SQL injection query more concise

---------

Co-authored-by: Wei Qing <[email protected]>
  • Loading branch information
jayasting98 and weiquu authored Mar 18, 2024
1 parent da601bd commit ffb07dd
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 1 deletion.
Loading

0 comments on commit ffb07dd

Please sign in to comment.