dubeejw commented on a change in pull request #2326: (WIP) Alphabetize
URL: 
https://github.com/apache/incubator-openwhisk/pull/2326#discussion_r123567250
 
 

 ##########
 File path: tests/src/test/scala/apigw/healthtests/ApiGwEndToEndTests.scala
 ##########
 @@ -144,6 +276,147 @@ class ApiGwEndToEndTests
 
     behavior of "Wsk api"
 
+    it should "return a list of alphabetized api" in 
withAssetCleaner(wskprops) {
+    (wp, assetHelper) =>
+
+        val actionName1 = "actionName1"
+        val actionName2 = "actionName2"
+        val actionName3 = "actionName3"
+        val base1 = "/BaseTestPath1"
+        val base2 = "/BaseTestPath2"
+        val base3 = "/BaseTestPath3"
+
+        try {
+            //Create Actions for Apis
+            val file = TestUtils.getTestActionFilename(s"echo-web-http.js")
+            println("Create Action: " + actionName1)
+            assetHelper.withCleaner(wsk.action, actionName1) {
+                (action, name) => action.create(name, artifact = Some(file), 
expectedExitCode = SUCCESS_EXIT, web = Some("true"))
+            }
+            println("Create Action: " + actionName2)
+            assetHelper.withCleaner(wsk.action, actionName2) {
+                (action, name) => action.create(name, artifact = Some(file), 
expectedExitCode = SUCCESS_EXIT, web = Some("true"))
+            }
+            println("Create Action: " + actionName3)
+            assetHelper.withCleaner(wsk.action, actionName3) {
+                (action, name) => action.create(name, artifact = Some(file), 
expectedExitCode = SUCCESS_EXIT, web = Some("true"))
+            }
+            //Create Apis
+            println("Create API: Base Path " + base2)
 
 Review comment:
   Delete.
 
----------------------------------------------------------------
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

Reply via email to