rabbah commented on a change in pull request #2474: Adding status of rule to 
output. 
URL: 
https://github.com/apache/incubator-openwhisk/pull/2474#discussion_r130123944
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskRuleTests.scala
 ##########
 @@ -371,4 +370,23 @@ class WskRuleTests
             }
     }
 
+    it should "disable a rule and check its status is displayed when listed" 
in withAssetCleaner(wskprops) {
+        (wp, assetHelper) =>
+            val ruleName = withTimestamp("ruleDisable")
+            val ruleName2 = withTimestamp("ruleEnable")
+            val triggerName = withTimestamp("ruleDisableTrigger")
+            val actionName = withTimestamp("ruleDisableAction")
+
+            ruleSetup(Seq(
+                (ruleName, triggerName, (actionName, actionName, 
defaultAction)),
+                (ruleName2, triggerName, (actionName, actionName, 
defaultAction))),
+                assetHelper)
+
+            wsk.rule.disable(ruleName)
+            val listOutput = wsk.rule.list().toString().split("\n")
 
 Review comment:
   tip: you can replace `.split("\n")` with `.lines`
 
----------------------------------------------------------------
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