|
|
|
@ -53,15 +53,6 @@ class JsInvokeServiceTest extends AbstractControllerTest { |
|
|
|
}).hasMessageContaining("body exceeds maximum allowed size"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void givenTooBigScriptForEval_whenMaxScriptBodySizeSetToZero_thenDoNothing() { |
|
|
|
String script = "var a = 'a'; return { a: a };"; |
|
|
|
|
|
|
|
assertDoesNotThrow(() -> { |
|
|
|
evalScript(script); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void givenTooBigScriptInputArgs_thenReturnErrorAndReportScriptExecutionError() throws Exception { |
|
|
|
String script = "return { msg: msg };"; |
|
|
|
|