Skip to content

Commit

Permalink
test: run all cases on config cluster
Browse files Browse the repository at this point in the history
After this patch, all unit and integration tests run also on cluster
started from configuration file.

Part of #412
Part of #415
  • Loading branch information
DifferentialOrange committed Jan 23, 2024
1 parent 1749af5 commit 90ffa1b
Show file tree
Hide file tree
Showing 8 changed files with 579 additions and 131 deletions.
9 changes: 7 additions & 2 deletions test/entrypoint/srv_say_hi/cartridge_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ end
local root = fio.dirname(fio.dirname(fio.dirname(debug.sourcedir())))
package.path = package.path .. root .. "/?.lua;"

local ok, err
package.preload['customers-storage'] = function()
return {
role_name = 'customers-storage',
}
end

ok, err = errors.pcall('CartridgeCfgError', cartridge.cfg, {
local ok, err = errors.pcall('CartridgeCfgError', cartridge.cfg, {
advertise_uri = 'localhost:3301',
http_port = 8081,
bucket_count = 3000,
roles = {
'cartridge.roles.crud-storage',
'cartridge.roles.crud-router',
'customers-storage',
},
})

Expand Down
Loading

0 comments on commit 90ffa1b

Please sign in to comment.