Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the fundamental framework of REST invocation for test cases to re…
…place wsk binary Almost all the test cases in OpenWhisk are currently running based on the wsk CLI binary. In order to separate the CLI out of OpenWhisk core repository, we need to call REST API of OpenWhisk to access OpenWhisk services instead of calling the wsk CLI binary command. This PR adds the basic REST implementation for all the test cases to use. One basic principle is to keep the changes to the existing test cases as few as possible, so we add WskRest.scala as an equivalent class to Wsk.scala and WskRestTestHelpers.scala as an equivalent file to WskTestHelpers.scala for REST. All the replacement of binary with REST will happen in an increamental fashion. This PR only changes one existing test case in WskActionTests.scala, and reimplements it in WskRestActionTests.scala. All the other test cases can follow the same way to change the test cases one by one. New changes may be necessary to the basic REST implementation as well in future to accommodate the test cases.
- Loading branch information