Hi Malintha,

IMO we should test Stratos via the REST API, not via the CLI. Cause;

* CLI is again a client used for REST API and not all the operations are
executed via CLI
* CLI truncate/format responses.

I recommend you to reuse the existing REST API clients used in Stratos.

Thanks for bringing this up.


On Fri, Mar 21, 2014 at 3:33 PM, Malintha Adikari <
[email protected]> wrote:

> Hi,
>
> I am in the process of writing test case/cases to test stratos  REST API.
> I can see some different approaches  to communicate with Stratos backend in
> a test.
>
> 1. Pragmatically run Stratos CLI and execute CLI commands inside java ( We
> can test Stratos CLI as send request through it)
> 2. Use HTTP client (curl client) to send requests
> 3. Re-use Stratos CLI client code to send requests.
>
> What is your opinion about above approaches ? What is the best way to send
> requests to the backend in test classes
>
> Regards,
> Malintha Adikari
>



-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to