Skip to content

Commit fd7c5e7

Browse files
committed
util method
1 parent f10a54a commit fd7c5e7

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

core/src/main/kotlin/org/evomaster/core/output/service/HttpWsTestCaseWriter.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,4 +874,19 @@ abstract class HttpWsTestCaseWriter : ApiTestCaseWriter() {
874874
lines.add(")")
875875
}
876876

877+
private fun ssrfAssertionsUtilFunction(lines: Lines, action: Action, verifier: ActionStubMapping, assertTrue: Boolean) {
878+
// TODO: Add function
879+
// lines.add()
880+
lines.indented {
881+
lines.add(verifier.getVerifierName())
882+
lines.indented {
883+
if (format.isKotlin()) {
884+
lines.add(".allServeEvents")
885+
lines.add(".filter { it.wasMatched && it.stubMapping.metadata != null }")
886+
lines.add(".any { it.stubMapping.metadata.getString(\"ssrf\") == \"${action.getName()}\" }")
887+
}
888+
}
889+
}
890+
}
891+
877892
}

0 commit comments

Comments
 (0)