-
Notifications
You must be signed in to change notification settings - Fork 100
Utility function for SSRF Assertions in test writers #1382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
core/src/main/kotlin/org/evomaster/core/output/service/HttpWsTestCaseWriter.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/org/evomaster/core/output/service/TestSuiteWriter.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/org/evomaster/core/output/service/TestSuiteWriter.kt
Outdated
Show resolved
Hide resolved
| } else { | ||
| lines.addSingleCommentLine("Verifying that there are no requests made to HttpCallbackVerifier before test execution.") | ||
| lines.add("assertFalse(${verifier.getVerifierName()}") | ||
| lines.addStatement("assertFalse(verifierHasReceivedRequests(${verifier.getVerifierName()}, \"${action.getName()}\"))") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this verifierHasReceivedRequests label is used more than once in the code, should be put in a val
| initTestMethod(solution, lines, testSuiteFileName) | ||
| lines.addEmpty(2) | ||
|
|
||
| if (config.ssrf && solution.hasSsrfFaults() && format.isJava()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used in Kotlin?
| } | ||
| format.isJava() -> { | ||
| lines.startCommentBlock() | ||
| lines.addBlockCommentLine("Method to verify whether the HttpCallbackVerifier has received any requests.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the comment for Java is different for the comment for Kotlin ???
No description provided.