Skip to content
Snippets Groups Projects
Commit 7e1011bb authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

gh-503: update forgotten tests

parent eb79acc0
No related branches found
No related tags found
No related merge requests found
...@@ -1189,6 +1189,21 @@ s_nil.index.secondary:count(1) ...@@ -1189,6 +1189,21 @@ s_nil.index.secondary:count(1)
--- ---
- 0 - 0
... ...
-- gh-503 if_not_exits option in create index
i1 = s_empty:create_index("test")
---
...
i2 = s_empty:create_index("test")
---
- error: Index 'test' already exists
...
i3 = s_empty:create_index("test", { if_not_exists = true } )
---
...
i3:select{}
---
- []
...
-- cleanup -- cleanup
s_empty:drop() s_empty:drop()
--- ---
......
...@@ -209,6 +209,7 @@ t; ...@@ -209,6 +209,7 @@ t;
- 'box.error.CREATE_USER : 43' - 'box.error.CREATE_USER : 43'
- 'box.error.CREATE_SPACE : 9' - 'box.error.CREATE_SPACE : 9'
- 'box.error.UNKNOWN_SCHEMA_OBJECT : 49' - 'box.error.UNKNOWN_SCHEMA_OBJECT : 49'
- 'box.error.PROC_LUA : 32'
- 'box.error.CREATE_ROLE : 84' - 'box.error.CREATE_ROLE : 84'
- 'box.error.ROLE_EXISTS : 83' - 'box.error.ROLE_EXISTS : 83'
- 'box.error.NO_SUCH_ROLE : 82' - 'box.error.NO_SUCH_ROLE : 82'
...@@ -250,7 +251,7 @@ t; ...@@ -250,7 +251,7 @@ t;
- 'box.error.TIMEOUT : 78' - 'box.error.TIMEOUT : 78'
- 'box.error.MORE_THAN_ONE_TUPLE : 41' - 'box.error.MORE_THAN_ONE_TUPLE : 41'
- 'box.error.NO_SUCH_SPACE : 36' - 'box.error.NO_SUCH_SPACE : 36'
- 'box.error.PROC_LUA : 32' - 'box.error.INDEX_EXISTS : 85'
- 'box.error.UPDATE_FIELD : 29' - 'box.error.UPDATE_FIELD : 29'
- 'box.error.ARG_TYPE : 26' - 'box.error.ARG_TYPE : 26'
- 'box.error.INDEX_FIELD_COUNT : 39' - 'box.error.INDEX_FIELD_COUNT : 39'
......
...@@ -50,7 +50,7 @@ box.stat.REPLACE.total ...@@ -50,7 +50,7 @@ box.stat.REPLACE.total
... ...
box.stat.SELECT.total box.stat.SELECT.total
--- ---
- 2 - 3
... ...
--# stop server default --# stop server default
--# start server default --# start server default
......
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