Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v1 1/1] test: fix space deletion for access.test
@ 2018-08-02  7:45 Kirill Shcherbatov
  2018-08-02  8:49 ` [tarantool-patches] " Kirill Yukhin
  0 siblings, 1 reply; 2+ messages in thread
From: Kirill Shcherbatov @ 2018-08-02  7:45 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Kirill Shcherbatov

As space deletion in 2.0 require lookup _trigger space
we have grant read from it for actual user.

Closes #3595.
---
Branch: https://github.com/tarantool/tarantool/compare/kshch/gh-3595-triggers-access-on-space-delete
Issue: https://github.com/tarantool/tarantool/issues/3595

 test/box/access.result   | 3 +++
 test/box/access.test.lua | 1 +
 2 files changed, 4 insertions(+)

diff --git a/test/box/access.result b/test/box/access.result
index f4669a4..bc2a182 100644
--- a/test/box/access.result
+++ b/test/box/access.result
@@ -1440,6 +1440,9 @@ box.schema.user.grant('tester', 'create', 'universe')
 box.schema.user.grant('tester', 'read', 'space', '_sequence')
 ---
 ...
+box.schema.user.grant('tester', 'read', 'space', '_trigger')
+---
+...
 box.session.su("tester")
 ---
 ...
diff --git a/test/box/access.test.lua b/test/box/access.test.lua
index 9ae0e11..a7e636c 100644
--- a/test/box/access.test.lua
+++ b/test/box/access.test.lua
@@ -547,6 +547,7 @@ box.schema.user.grant('tester', 'create', 'universe')
 --box.schema.user.grant('tester', 'create', 'function')
 --box.schema.user.grant('tester', 'create' , 'sequence')
 box.schema.user.grant('tester', 'read', 'space', '_sequence')
+box.schema.user.grant('tester', 'read', 'space', '_trigger')
 box.session.su("tester")
 -- successful create
 s1 = box.schema.space.create("test_space")
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tarantool-patches] Re: [PATCH v1 1/1] test: fix space deletion for access.test
  2018-08-02  7:45 [tarantool-patches] [PATCH v1 1/1] test: fix space deletion for access.test Kirill Shcherbatov
@ 2018-08-02  8:49 ` Kirill Yukhin
  0 siblings, 0 replies; 2+ messages in thread
From: Kirill Yukhin @ 2018-08-02  8:49 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Kirill Shcherbatov

Hello,
On 02 авг 10:45, Kirill Shcherbatov wrote:
> As space deletion in 2.0 require lookup _trigger space
> we have grant read from it for actual user.
> 
> Closes #3595.
> ---
> Branch: https://github.com/tarantool/tarantool/compare/kshch/gh-3595-triggers-access-on-space-delete
> Issue: https://github.com/tarantool/tarantool/issues/3595
The patch was committed to 2.0 branch as obvious.

--
Regards, Kirill Yukhin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-02  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02  7:45 [tarantool-patches] [PATCH v1 1/1] test: fix space deletion for access.test Kirill Shcherbatov
2018-08-02  8:49 ` [tarantool-patches] " Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox