File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
tests/src/test/scala/runtime/actionContainers Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ abstract class PythonBasicTests extends BasicActionRunnerTests with WskActorSyst
318
318
}
319
319
}
320
320
321
- it should " support array result" in {
321
+ it should " support return array result" in {
322
322
withActionContainer() { c =>
323
323
val code =
324
324
"""
@@ -334,4 +334,21 @@ abstract class PythonBasicTests extends BasicActionRunnerTests with WskActorSyst
334
334
runRes shouldBe Some (JsArray (JsString (" a" ), JsString (" b" )))
335
335
}
336
336
}
337
+
338
+ it should " support array as input param" in {
339
+ withActionContainer() { c =>
340
+ val code =
341
+ """
342
+ |def main(args):
343
+ | return args
344
+ """ .stripMargin
345
+
346
+ val (initCode, res) = c.init(initPayload(code))
347
+ initCode should be(200 )
348
+
349
+ val (runCode, runRes) = c.runForJsArray(runPayload(JsArray (JsString (" a" ), JsString (" b" ))))
350
+ runCode should be(200 )
351
+ runRes shouldBe Some (JsArray (JsString (" a" ), JsString (" b" )))
352
+ }
353
+ }
337
354
}
You can’t perform that action at this time.
0 commit comments