Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB1DC1036D for ; Fri, 21 Mar 2014 10:04:05 +0000 (UTC) Received: (qmail 70034 invoked by uid 500); 21 Mar 2014 10:04:05 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 69825 invoked by uid 500); 21 Mar 2014 10:04:04 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 69818 invoked by uid 99); 21 Mar 2014 10:04:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 10:04:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of malintha.adikari@gmail.com designates 209.85.192.172 as permitted sender) Received: from [209.85.192.172] (HELO mail-pd0-f172.google.com) (209.85.192.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 10:03:56 +0000 Received: by mail-pd0-f172.google.com with SMTP id p10so2139254pdj.31 for ; Fri, 21 Mar 2014 03:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LhxhljPGhsE1qv6k2D8fYpady3Yu7Ruqo4AOGBhZavA=; b=fiU2bR6aXIrJqgHi8XZeMbBXA9DsIAo4vhseCxzgFsAMuelCFtfPpntVpR4rdwDtz9 z1zv8pw06p3I5AXooVK98LhqScKk0qqEPxd3KDEj+6GNp7VtTXtbi19a3NVcT6q7sWmp 7r62rsdDEscMZN+nzN4+I5WKbGXCZa9zWaWyoMXvMofsEqUNsgYYNhprlTESLG51C+25 Zid0MuvBRdACQLQQBx00cj+xKhw7/YuMuhZOd+nJ1cIUuW0ZQ5mZWnMfl0qgXByRAZXQ 6Iu3o13TlA5GsmJLTJWnKvjv3FKvEQJJoIps7YZjFsKbSLHUheH6qaGT7J+IFK4Zq+1/ U0SQ== MIME-Version: 1.0 X-Received: by 10.68.162.1 with SMTP id xw1mr35596217pbb.128.1395396214423; Fri, 21 Mar 2014 03:03:34 -0700 (PDT) Received: by 10.70.86.73 with HTTP; Fri, 21 Mar 2014 03:03:34 -0700 (PDT) Date: Fri, 21 Mar 2014 15:33:34 +0530 Message-ID: Subject: Stratos Backend REST API test approach From: Malintha Adikari To: dev@stratos.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7bacbb46ae84d404f51aff55 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bacbb46ae84d404f51aff55 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7bacbb46ae84d404f51aff55 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I am in the process of writing test= case/cases to test stratos =A0REST API. I can see some different approache= s =A0to communicate with Stratos backend in a test.

1. Pragmatically run Stratos CLI and execute CLI commands inside java ( W= e can test Stratos CLI as send request through it)
2. Use HTTP client (curl client) to send requests=A0
3. Re-u= se Stratos CLI client code to send requests.

What = is your opinion about above approaches ? What is the best way to send reque= sts to the backend in test classes

Regards,
Malintha Adikari
--047d7bacbb46ae84d404f51aff55--