apache/openwhisk

WskRestOperation implements action create with copy but it should not

Open

#3846 aperta il 6 lug 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Scala (1177 fork)batch import
help wantedtesting

Metriche repository

Star
 (6777 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor