From c1b62d621b1f46e5e611ca1cb397cf6a6c8181d9 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Mon, 25 Mar 2024 18:38:44 +0300 Subject: [PATCH] test: use consistent setup for cartridge Part of #415 --- test/entrypoint/srv_say_hi/cartridge_init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/entrypoint/srv_say_hi/cartridge_init.lua b/test/entrypoint/srv_say_hi/cartridge_init.lua index 6dbe1303..32b6e4b9 100755 --- a/test/entrypoint/srv_say_hi/cartridge_init.lua +++ b/test/entrypoint/srv_say_hi/cartridge_init.lua @@ -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', }, })