Skip to content
Snippets Groups Projects
Unverified Commit e33216af authored by Maria's avatar Maria Committed by Alexander Turenko
Browse files

test: add clean up for box/access test

The commit e8009f41 ('box: user.grant
error should be versatile') did not do proper clean-up: it grants
non-default privileges for user 'guest' and does not revoke them at the
end. That caused occasional failures of other tests, all with the same
error saying user 'guest' already had access on universe.

This case should be handled by test-run in a future, see [1].

[1]: https://github.com/tarantool/test-run/issues/156

Follows up #714
parent d6cf327f
No related branches found
No related tags found
No related merge requests found
......@@ -2131,6 +2131,13 @@ box.schema.user.grant('guest', 'read,write,execute', 'space', 'not_universe')
---
- error: User 'guest' already has read,write,execute access on space 'not_universe'
...
-- Clean up.
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
---
...
box.schema.user.revoke('guest', 'read,write,execute', 'space', 'not_universe')
---
...
sp:drop()
---
...
......@@ -819,4 +819,8 @@ box.schema.user.grant('guest', 'read,write,execute', 'universe')
sp = box.schema.create_space('not_universe')
box.schema.user.grant('guest', 'read,write,execute', 'space', 'not_universe')
box.schema.user.grant('guest', 'read,write,execute', 'space', 'not_universe')
-- Clean up.
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
box.schema.user.revoke('guest', 'read,write,execute', 'space', 'not_universe')
sp:drop()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment