Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5BEC18DEB for ; Fri, 5 Feb 2016 14:26:56 +0000 (UTC) Received: (qmail 2205 invoked by uid 500); 5 Feb 2016 14:26:43 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 2142 invoked by uid 500); 5 Feb 2016 14:26:43 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 2132 invoked by uid 99); 5 Feb 2016 14:26:43 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2016 14:26:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id ED016C0DBD for ; Fri, 5 Feb 2016 14:26:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_BADIPHTTP=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RycQw7Yk1u9q for ; Fri, 5 Feb 2016 14:26:41 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CE04120D55 for ; Fri, 5 Feb 2016 14:26:40 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id g62so50335250wme.0 for ; Fri, 05 Feb 2016 06:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lsLtkFghKCKQ/NdUJm642JCTc0PEHgNXgXdpHTxwqMI=; b=tJ1gNRWDZM4AtW1Ik9EFXMTUr8KWcE0Loz/A3HLxEkviLpP2PmbStV91Qyvgq1c3w5 BQiju5Eld1r3SRUodwAwsGGXQI2gwwM0zgidG1Dr/KwmmiFbW55fSZI5L5e2M2lKAoG/ i1kV+LGa7YSdgL4kSHPxM73WJemTIQLyM1xxIyWjSFfKx64+WcMyunhjwUB3L1bJZu6/ By/047GAocb1GTJ1Yoou52SzIDFi4d+JGWDYFHvfVxOjIT2tTdoGarKn5g5C337tf9s6 GvQzLsv86SmsHQ0aNO45t2pwkCQ5I2Q8nkf5PnCVuMvBTLiS6zUKzNMDuenNI9/5JMKf oqfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=lsLtkFghKCKQ/NdUJm642JCTc0PEHgNXgXdpHTxwqMI=; b=WY25XFa0YrOQ7VjbZqWT+08ZVZauZWpPaSi3FedXa6NCe3KRMvVzBT3iC2Q8iW1Dxj JV4CYnf7XZ7ErUTU8vtISyPN4S0SMR0mVTf9UvpduH6lirdDmJ+7PyVcNUy11DSFcySA AoIEPGElX28wpIkvgbKxqEeXJccIJnF+SWp6313ImlrJN5eu0GaBzkxITIaJ+q/quRV8 ro37Vpvc5FpLIXZQo9X4hOKjQSrCk3Kw9TJITTT9WOFg+rWjKcGlkB8qELwlWOfw+HDR 4zlxHpUzjeyFwctMSFKe1on+QWWzkEQ/vKMWnEQMbOARQN3YGClWbBActCPW0jvHq9Rg U6MA== X-Gm-Message-State: AG10YOTqVa0O28Qr8q7+ET5GEdDMEPx5rF+7s9p7SqAQc+89MEulSfcLMUGUWrsZ2blyg/2rRBBTm6H2o/DUKw== MIME-Version: 1.0 X-Received: by 10.28.138.69 with SMTP id m66mr39542936wmd.101.1454682399459; Fri, 05 Feb 2016 06:26:39 -0800 (PST) Received: by 10.194.37.198 with HTTP; Fri, 5 Feb 2016 06:26:39 -0800 (PST) In-Reply-To: References: <3A242214-802F-4DAE-A124-7FEB0B23D54D@jaguNET.com> Date: Fri, 5 Feb 2016 17:26:39 +0300 Message-ID: Subject: Re: collaboration request - apache server automation testing with swat tool From: Alexey Melezhik To: dev@httpd.apache.org Content-Type: text/plain; charset=UTF-8 > I wonder how possible it would be to transcode the old tests to Swat? Swat has some architectural specifics. As it simply makes http requests ( by curl ) and validate server response ( by swat DSL ) it is considered as black box testing tools , there is no way to interact with httpd internal structure. So probably most of old tests could be easily ported but some probably not ( which implies something more complicated ). Basically swat could cover simple and average use cases, everything that could expressed in terms of make http requests and then analyzing an output , see examples for some issues I have expressed in swat scenarios at https://github.com/melezhik/apache-swat Also alternatively we may run 2 frameworks in parallel. Apache-swat is intended for developers usage first and is able to run per-issues test. This how I see possible workflow: * developer accept a bug request * developer ( or some else ) create swat test for given bug/feature * so we have `test first` approach - everyone involved in bug/feature resolution has possibility to verify changes by simply running : swat -t $issue-id 2016-02-05 17:08 GMT+03:00 Alexey Melezhik : > 2016-02-05 17:01 GMT+03:00 Jim Jagielski : >> Personally, I like the idea of having another framework; >> the current one is OK but somewhat "painful" to update. > > Hi! What kind of possible issues you here ? when saying "painful" to > update, please explain. > Thanks. > > Also , please consider this link - https://github.com/melezhik/apache-swat and > this post - http://mail-archives.apache.org/mod_mbox/httpd-dev/201602.mbox/%3CCAL7UUk-zqb1=7wDvCe8E-Ku=U=aY0MdJ_-JgCjVzZdvAranKQg@mail.gmail.com%3E > as latest version of this idea .... > > > > > >> >> I wonder how possible it would be to transcode the old tests >> to Swat? We could then provide for 2 testing frameworks, one >> developed by the ASF and the other external and 3rd party. >> >> >>> On Feb 1, 2016, at 5:23 AM, Alexey Melezhik wrote: >>> >>> Here the list of existed issues I was able to automate tests for: >>> >>> vagrant@Debian-jessie-amd64-netboot:~/my/apache-swat$ ls -1 | grep -P '\d' >>> 44221 >>> 46751 >>> 58789 >>> 58828 >>> 58854 >>> >>> >>> I have informed developers at https://bz.apache.org/bugzilla/ about >>> these, so they rely upon them. Or you have some pre-release testing, >>> so run all of these in a whole chunk? >>> >>> Regards >>> >>> Alexey >>> >>> PS chaining issues / tests listing as always - >>> https://github.com/melezhik/apache-swat >>> >>> PS2 it'd be could to verify tests as well against "bleeding edge" >>> apache version gets installed from SCM, but I don't know how to do >>> this. >>> Currently I use http://httpd.apache.org/download.cgi ( last stable release ) >>> >>> >>> >>> 2016-01-30 21:36 GMT+03:00 Alexey Melezhik : >>>> Hi Bill! >>>> >>>> I have started to assemble swat tests for apache2 issues coming from >>>> https://bz.apache.org/bugzilla >>>> >>>> And this the first one - https://bz.apache.org/bugzilla/show_bug.cgi?id=44221 , >>>> >>>> Test suite is failed for the moment : >>>> >>>> >>>> vagrant@Debian-jessie-amd64-netboot:~/my/apache-swat$ swat -t 44221 >>>> /home/vagrant/.swat/.cache/384/prove/44221/foo.baz/00.GET.t ... >>>> ok 1 - GET 127.0.0.1/44221/foo.baz succeeded >>>> # http headers saved to /home/vagrant/.swat/.cache/384/prove/52jLAo76YZ.hdr >>>> # body saved to /home/vagrant/.swat/.cache/384/prove/52jLAo76YZ >>>> ok 2 - output match '200 OK' >>>> 1..2 >>>> ok >>>> /home/vagrant/.swat/.cache/384/prove/44221/FOO.bar/00.GET.t ... >>>> ok 1 - GET 127.0.0.1/44221/FOO.bar succeeded >>>> # http headers saved to /home/vagrant/.swat/.cache/384/prove/DvEZnO6ALe.hdr >>>> # body saved to /home/vagrant/.swat/.cache/384/prove/DvEZnO6ALe >>>> ok 2 - output match '200 OK' >>>> ok 3 - output match /Location: \S+/ >>>> ok 4 - 'Location: http://127.0.0.1/44221/foo.bar' match 'foo.bar' >>>> 1..4 >>>> ok >>>> /home/vagrant/.swat/.cache/384/prove/44221/foo.BAR/00.GET.t ... >>>> ok 1 - GET 127.0.0.1/44221/foo.BAR succeeded >>>> # http headers saved to /home/vagrant/.swat/.cache/384/prove/bWQ1Sbl0YZ.hdr >>>> # body saved to /home/vagrant/.swat/.cache/384/prove/bWQ1Sbl0YZ >>>> ok 2 - output match '200 OK' >>>> ok 3 - output match /Location: \S+/ >>>> ok 4 - 'Location: http://127.0.0.1/44221/foo.bar' match 'foo.bar' >>>> 1..4 >>>> ok >>>> /home/vagrant/.swat/.cache/384/prove/44221/foo.bar/00.GET.t ... >>>> ok 1 - GET 127.0.0.1/44221/foo.bar succeeded >>>> # http headers saved to /home/vagrant/.swat/.cache/384/prove/Jd_hlo7Qwv.hdr >>>> # body saved to /home/vagrant/.swat/.cache/384/prove/Jd_hlo7Qwv >>>> ok 2 - output match '200 OK' >>>> 1..2 >>>> ok >>>> /home/vagrant/.swat/.cache/384/prove/44221/foo.html/00.GET.t .. >>>> ok 1 - GET 127.0.0.1/44221/foo.html succeeded >>>> # http headers saved to /home/vagrant/.swat/.cache/384/prove/tW2L511eym.hdr >>>> # body saved to /home/vagrant/.swat/.cache/384/prove/tW2L511eym >>>> ok 2 - output match /HTTP\/(\S+) (\d+) \S+/ >>>> not ok 3 - 'HTTP/1.1 300 Multiple Choices' match /404 / >>>> >>>> # Failed test ''HTTP/1.1 300 Multiple Choices' match /404 /' >>>> # at /usr/local/share/perl/5.20.2/swat.pm line 218. >>>> not ok 4 - output match 'Not Found' >>>> >>>> # Failed test 'output match 'Not Found'' >>>> # at /usr/local/share/perl/5.20.2/swat.pm line 218. >>>> 1..4 >>>> # Looks like you failed 2 tests of 4. >>>> Dubious, test returned 2 (wstat 512, 0x200) >>>> Failed 2/4 subtests >>>> >>>> Test Summary Report >>>> ------------------- >>>> /home/vagrant/.swat/.cache/384/prove/44221/foo.html/00.GET.t (Wstat: >>>> 512 Tests: 4 Failed: 2) >>>> Failed tests: 3-4 >>>> Non-zero exit status: 2 >>>> Files=5, Tests=16, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.27 cusr >>>> 0.00 csys = 0.30 CPU) >>>> Result: FAIL >>>> >>>> ... >>>> >>>> Ok, this is just the beginning ;-))) , watch soon updates at - >>>> https://github.com/melezhik/apache-swat >>>> >>>> 2016-01-29 20:44 GMT+03:00 William A Rowe Jr : >>>>> On Fri, Jan 29, 2016 at 6:35 AM, Alexey Melezhik wrote: >>>>>> >>>>>> Hi Bill! >>>>>> >>>>>> Any news? ( Please see my previous reply ...) >>>>>> Intr >>>>> >>>>> >>>>> Intrigued :) But my responses will be delayed, I personally >>>>> won't have time to look further myself until other backlogged >>>>> commitments to httpd are caught up some more. >>>>> >>>>> Be aware many of us have only a few hours to participate in the >>>>> httpd project itself, so it will take several days or more to gather >>>>> feedback on your interest and perhaps a champion to drive such >>>>> an effort if it is actively driven from this side. Of course that >>>>> should not stop you from assembling some ideas at the vcs of >>>>> your choice, and sharing a link for those who want to look at an >>>>> early draft of such an effort! >>>>> >>>>> Cheers, >>>>> >>>>> Bill >>