Skip to content

Commit f8d61b5

Browse files
committed
Update module versions in test Cartridge app
1 parent 781a641 commit f8d61b5

File tree

2 files changed

+4
-69
lines changed

2 files changed

+4
-69
lines changed

src/test/resources/cartridge/app/roles/api_router.lua

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
local crud = require('crud')
21
local cartridge = require('cartridge')
32

4-
-- initialize crud
5-
crud.init()
6-
73
local function profile_return(a, b, c, d, e, f)
84
return a, b, c, d, e, f;
95
end
@@ -93,68 +89,10 @@ local function get_schema_metadata()
9389
return router:callro(bucket_id, 'storage_get_space_format', {})
9490
end
9591

96-
-- crud cluster API call
97-
98-
local function crud_cluster_api_get(space_name, key, opts)
99-
return crud.get(space_name, key, opts)
100-
end
101-
102-
local function crud_cluster_api_insert(space_name, key_parts, obj, opts)
103-
return crud.insert(space_name, key_parts, obj, opts)
104-
end
105-
106-
local function crud_cluster_api_delete(space_name, key, opts)
107-
return crud.delete(space_name, key, opts)
108-
end
109-
110-
local function crud_cluster_api_replace(space_name, key_parts, obj, opts)
111-
return crud.replace(space_name, key_parts, obj, opts)
112-
end
113-
114-
local function crud_cluster_api_update(space_name, key, operations, opts)
115-
return crud.update(space_name, key, operations, opts)
116-
end
117-
118-
local function crud_cluster_api_upsert(space_name, key_parts, obj, operations, opts)
119-
return crud.upsert(space_name, key_parts, obj, operations, opts)
120-
end
121-
122-
local function crud_cluster_api_select(space_name, key_parts, opts)
123-
local objects = {}
124-
125-
local iter, err = crud.select(space_name, key_parts, opts)
126-
if err ~= nil then return nil, err end
127-
128-
while iter:has_next() do
129-
local obj = iter:get()
130-
assert(obj ~= nil)
131-
132-
table.insert(objects, obj)
133-
end
134-
135-
return unpack(objects)
136-
end
137-
138-
local function crud_cluster_api_get_schema()
139-
return crud.get_schema()
140-
end
141-
14292
local function init(opts)
14393
if opts.is_master then
14494
end
14595

146-
147-
rawset(_G, 'crud_cluster_api_get_schema', crud_cluster_api_get_schema)
148-
149-
rawset(_G, 'crud_cluster_api_get', crud_cluster_api_get)
150-
rawset(_G, 'crud_cluster_api_insert', crud_cluster_api_insert)
151-
rawset(_G, 'crud_cluster_api_delete', crud_cluster_api_delete)
152-
rawset(_G, 'crud_cluster_api_replace', crud_cluster_api_replace)
153-
rawset(_G, 'crud_cluster_api_update', crud_cluster_api_update)
154-
rawset(_G, 'crud_cluster_api_upsert', crud_cluster_api_upsert)
155-
rawset(_G, 'crud_cluster_api_select', crud_cluster_api_select)
156-
157-
15896
rawset(_G, 'profile_return', profile_return)
15997

16098
rawset(_G, 'profile_insert', profile_insert)
@@ -163,9 +101,6 @@ local function init(opts)
163101
rawset(_G, 'profile_update', profile_update)
164102
rawset(_G, 'profile_upsert', profile_upsert)
165103
rawset(_G, 'profile_get', profile_get)
166-
167-
168-
rawset(_G, 'get_schema_metadata', get_schema_metadata)
169104

170105
return true
171106
end

src/test/resources/cartridge/testapp-scm-1.rockspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ source = {
77
dependencies = {
88
'tarantool',
99
'lua >= 5.1',
10-
'checks == 3.0.1-1',
11-
'cartridge == 2.1.2-1',
12-
'ddl == 1.1.0-1',
13-
'crud == 0.1.0-1',
10+
'checks == 3.1.0-1',
11+
'cartridge == 2.6.0-1',
12+
'ddl == 1.4.0-1',
13+
'crud == 0.8.0-1',
1414
}
1515
build = {
1616
type = 'none';

0 commit comments

Comments
 (0)