You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ho...@apache.org on 2017/07/12 03:18:29 UTC
[incubator-openwhisk-cli] 01/05: Create swagger operationId values
for code tooling consumption (#2388)
This is an automated email from the ASF dual-hosted git repository.
houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
commit 0593cb68bfbbf967151106a165af336117e8326b
Author: Mark Deuser <md...@us.ibm.com>
AuthorDate: Tue Jun 27 12:57:40 2017 -0400
Create swagger operationId values for code tooling consumption (#2388)
---
tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala b/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
index 3cb00de..a2d0a3c 100644
--- a/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
@@ -640,7 +640,7 @@ class ApiGwTests
it should "verify successful creation and deletion of a new API" in {
val testName = "CLI_APIGWTEST1"
val testbasepath = "/"+testName+"_bp"
- val testrelpath = "/path"
+ val testrelpath = "/path/with/sub_paths/in/it"
val testnewrelpath = "/path_new"
val testurlop = "get"
val testapiname = testName+" API Name"
@@ -658,6 +658,8 @@ class ApiGwTests
rr.stdout should include("ok: APIs")
rr.stdout should include regex (s"/${clinamespace}/${actionName}\\s+${testurlop}\\s+${testapiname}\\s+")
rr.stdout should include(testbasepath + testrelpath)
+ rr = apiGet(basepathOrApiName = Some(testbasepath))
+ rr.stdout should include regex (s""""operationId":\\s+"getPathWithSub_pathsInIt"""")
val deleteresult = apiDelete(basepathOrApiName = testbasepath)
deleteresult.stdout should include("ok: deleted API")
}
--
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.