[tarantool-patches] [PATCH v3 01/14] txn: Fire a trigger after a transaction finalization

Vladimir Davydov vdavydov.dev at gmail.com
Tue Jun 11 14:42:04 MSK 2019


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()



More information about the Tarantool-patches mailing list