dubeejw commented on a change in pull request #2895: Update the test cases
about rules with REST implementation
URL:
https://github.com/apache/incubator-openwhisk/pull/2895#discussion_r147790747
##########
File path: tests/src/test/scala/common/rest/WskRest.scala
##########
@@ -631,14 +632,14 @@ class WskRestActivation extends RunWskRestCmd with
HasActivationRest with WaitFo
var paramMap = Map("skip" -> "0", "docs" -> docs.toString) ++ {
limit map { l =>
Map("limit" -> l.toString)
- } getOrElse Map("limit" -> "30")
+ } getOrElse Map("limit" -> "0")
Review comment:
I believe the CLI defaults to a limit of 30. Looks like the backend will
default to 30 if 0 is provided for the limit query parameter. Looks like `skip`
defaults to 0 in the CLI, but we don't have any tests for the skip
functionality.
`wsk activation list` send this request:
`https://apihost/api/v1/namespaces/_/activations?limit=30&skip=0`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services