Omit Exec Code if Empty
- Do not send or display the exec.code if it is empty
diff --git a/tests/src/system/basic/WskBasicTests.scala b/tests/src/system/basic/WskBasicTests.scala
index e7cc446..7115d6a 100644
--- a/tests/src/system/basic/WskBasicTests.scala
+++ b/tests/src/system/basic/WskBasicTests.scala
@@ -442,6 +442,17 @@
}
res.stdout shouldBe ""
+
+ }
+
+ it should "create, and get docker action get ensure exec code is omitted" in withAssetCleaner(wskprops) {
+ val name = "dockerContainer"
+ (wp, assetHelper) =>
+ assetHelper.withCleaner(wsk.action, name) {
+ (action, _) => action.create(name, Some("fakeContainer"), kind = Some("docker"))
+ }
+
+ wsk.action.get(name).stdout should not include (""""code"""")
}
behavior of "Wsk Trigger CLI"