From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 11 Jun 2019 14:42:04 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] [PATCH v3 01/14] txn: Fire a trigger after a transaction finalization Message-ID: <20190611114204.axyiryohpzzcmhz5@esperanza> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Georgy Kirichenko Cc: tarantool-patches@freelists.org List-ID: On Sun, Jun 09, 2019 at 11:44:30PM +0300, Georgy Kirichenko wrote: > diff --git a/test/box/ddl.test.lua b/test/box/ddl.test.lua > index 101bc6f9b..301f7e6c1 100644 > --- a/test/box/ddl.test.lua > +++ b/test/box/ddl.test.lua > @@ -270,3 +270,18 @@ box.rollback() > > _ = c:get() > test_latch:drop() -- this is where everything stops > + > +-- gh-4276 - check grant privilege rollback > +_ = box.schema.user.create('testg') > +_ = box.schema.space.create('testg'):create_index('pk') > + > +box.error.injection.set('ERRINJ_WAL_IO', true) The test must be disabled in the release mode. Moved it to box/errinj.test.lua and pushed to master. > +-- the grant operation above fails and test hasn't any space test permissions > +box.schema.user.grant('testg', 'read,write', 'space', 'testg') > +-- switch user and check they couldn't select > +box.session.su('testg') > +box.space.testg:select() > +box.session.su('admin') > +box.error.injection.set('ERRINJ_WAL_IO', false) > +box.schema.user.drop('testg') > +box.space.testg:drop()