markusthoemmes commented on a change in pull request #2291: Add subject with a 
namespace.
URL: 
https://github.com/apache/incubator-openwhisk/pull/2291#discussion_r127525606
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskBasicTests.scala
 ##########
 @@ -570,73 +556,63 @@ class WskBasicTests
         val file = Some(TestUtils.getTestActionFilename("argCheck.js"))
         val argInput = 
Some(TestUtils.getTestActionFilename("validInput2.json"))
 
-        (wp, assetHelper) =>
-            assetHelper.withCleaner(wsk.trigger, name) {
-                (trigger, _) =>
-                    trigger.create(name)
-            }
+        (wp, assetHelper) => assetHelper.withCleaner(wsk.trigger, name) {
+            (trigger, _) => trigger.create(name)
+        }
 
-            val expectedOutput = JsObject(
-                "payload" -> JsString("test"))
-            val run = wsk.trigger.fire(name, parameterFile = argInput)
-            withActivation(wsk.activation, run) {
-                activation =>
-                    activation.response.result shouldBe Some(expectedOutput)
-            }
+        val expectedOutput = JsObject("payload" -> JsString("test"))
+        val run = wsk.trigger.fire(name, parameterFile = argInput)
+        withActivation(wsk.activation, run) {
+            activation => activation.response.result shouldBe 
Some(expectedOutput)
+        }
     }
 
     it should "create a trigger, and get its individual fields" in 
withAssetCleaner(wskprops) {
         val name = "triggerFields"
         val paramInput = Map("payload" -> "test".toJson)
         val successMsg = s"ok: got trigger $name, displaying field"
 
-        (wp, assetHelper) =>
-            assetHelper.withCleaner(wsk.trigger, name) {
-                (trigger, _) =>
-                    trigger.create(name, parameters = paramInput)
-            }
-
-            val expectedParam = JsObject(
-                "payload" -> JsString("test"))
+        (wp, assetHelper) => assetHelper.withCleaner(wsk.trigger, name) {
+            (trigger, _) => trigger.create(name, parameters = paramInput)
+        }
 
-            val ns_regex_list = wsk.namespace.list().stdout.trim.replace('\n', 
'|')
+        val expectedParam = JsObject("payload" -> JsString("test"))
+        val ns = s""""${wsk.namespace.whois()}""""
 
 Review comment:
   same.
 
----------------------------------------------------------------
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