apache/openwhisk

WskRestOperation implements action create with copy but it should not

开放

#3,846 创建于 2018年7月6日

 (1 条评论) (0 个反应) (0 位负责人)Scala (1,177 个派生)batch import
help wantedtesting

仓库指标

星标
 (6,777 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The copy operation is a function of the cli, not the rest api. So supporting a copy in the WskRestOperation's implementation of wsk.action.create doesn't make sense.

https://github.com/apache/incubator-openwhisk/blob/3ab604c167ac5bec76c756e3e76473863eb0a25d/tests/src/test/scala/common/rest/WskRestOperations.scala#L332

The code should be removed and any rest tests in place should be moved strictly to the cli tests. It's arguable we should preserve this behavior --- if we reify this implementation into a scala SDK for openwhisk. Otherwise, I'm not sure why we should support this.

贡献者指南