Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 30374 invoked from network); 28 Mar 2006 22:56:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 22:56:13 -0000 Received: (qmail 54586 invoked by uid 500); 28 Mar 2006 22:56:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 54517 invoked by uid 500); 28 Mar 2006 22:56:09 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 54464 invoked by uid 99); 28 Mar 2006 22:56:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2006 14:56:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.26] (HELO nwkea-mail-4.sun.com) (192.18.42.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2006 14:56:08 -0800 Received: from phys-mpk-2 ([129.146.11.82]) by nwkea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id k2SMtm3W005060 for ; Tue, 28 Mar 2006 14:55:48 -0800 (PST) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IWV00K010ZTKW@mpk-mail1.sfbay.sun.com> (original mail from Michelle.Caisse@Sun.COM) for derby-dev@db.apache.org; Tue, 28 Mar 2006 14:55:48 -0800 (PST) Received: from [129.150.25.232] (vpn-129-150-25-232.SFBay.Sun.COM [129.150.25.232]) by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IWV00BAH10I1H@mpk-mail1.sfbay.sun.com> for derby-dev@db.apache.org; Tue, 28 Mar 2006 14:55:30 -0800 (PST) Date: Tue, 28 Mar 2006 14:59:01 -0800 From: Michelle Caisse Subject: Re: Looking for good test suite to test Grant & Revoke functionality ... In-reply-to: <4424BA72.6080108@Sourcery.Org> To: derby-dev@db.apache.org Message-id: <4429BFB5.9080104@sun.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_Gyz0R6PU5UjKI4tAcPJFOA)" X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 References: <4424BA72.6080108@Sourcery.Org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --Boundary_(ID_Gyz0R6PU5UjKI4tAcPJFOA) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Hi Satheesh, I've attached some code to DERBY-464 that may be useful as the basis of a grant/revoke test. It comes from the Sun HADB test suite. If you decide to use it, let me know if you need any of the classes it depends on. -- Michelle Satheesh Bandaram wrote: > As I am wrapping up Grant & Revoke functionality being tracked under > DERBY-464 (except for views, triggers and constraints part), I am > looking for good way to test new functionality. While I have added two > new tests, grantRevokeDDL.sql and grantRevoke.java, I am looking to > expand test coverage to try some real schemas and usages. Some ideas are: > > 1. Try converting existings tests to new SQL authorization mode. > *nist *suite seems like a good candidate. It already enables > authentication and has authorization statements under comments. > I will have to change nist suite to grant required object > privileges and adjust test suite to work-around extra > restrictions current implementation has. I have already tried > running nist under SQL authorization and initial run caused > about* 40* test failures out of 126 tests. After changing tests > a little, I have brought down failures to about 20 tests. I will > need to further change tests to add grant statements to get the > test to pass. > 2. Import a suitable test in open source world with compatible > license. Any ideas here? > 3. Write one from scratch. Might take reasonable amount of time. > > Thanks for any suggestions, > > Satheesh --Boundary_(ID_Gyz0R6PU5UjKI4tAcPJFOA) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT Hi Satheesh,

I've attached some code to DERBY-464 that may be useful as the basis of a grant/revoke test.  It comes from the Sun HADB test suite.  If you decide to use it, let me know if you need any of the classes it depends on.

-- Michelle

Satheesh Bandaram wrote:
As I am wrapping up Grant & Revoke functionality being tracked under DERBY-464 (except for views, triggers and constraints part), I am looking for good way to test new functionality. While I have added two new tests, grantRevokeDDL.sql and grantRevoke.java, I am looking to expand test coverage to try some real schemas and usages. Some ideas are:
  1. Try converting existings tests to new SQL authorization mode. nist suite seems like a good candidate. It already enables authentication and has authorization statements under comments. I will have to change nist suite to grant required object privileges and adjust test suite to work-around extra restrictions current implementation has. I have already tried running nist under SQL authorization and initial run caused about 40 test failures out of 126 tests. After changing tests a little, I have brought down failures to about 20 tests. I will need to further change tests to add grant statements to get the test to pass.
  2. Import a suitable test in open source world with compatible license. Any ideas here?
  3. Write one from scratch. Might take reasonable amount of time.
Thanks for any suggestions,

Satheesh

--Boundary_(ID_Gyz0R6PU5UjKI4tAcPJFOA)--