Attempt at fixing the inventory archiver tests.

0.6.6-post-fixes
diva 2009-06-10 13:46:38 +00:00
parent f6c6e3e5f2
commit 8dc9f18e7c
1 changed files with 15 additions and 1 deletions

View File

@ -41,6 +41,7 @@ using OpenSim.Region.Framework.Scenes;
using OpenSim.Region.CoreModules.Agent.Capabilities;
using OpenSim.Region.CoreModules.Avatar.Gods;
using OpenSim.Region.CoreModules.ServiceConnectors.Asset;
using OpenSim.Region.CoreModules.ServiceConnectors.Inventory;
using OpenSim.Services.Interfaces;
using OpenSim.Tests.Common.Mock;
@ -139,6 +140,19 @@ namespace OpenSim.Tests.Common.Setup
testScene.AddRegionModule(assetService.Name, assetService);
assetService.PostInitialise();
ISharedRegionModule inventoryService = new LocalInventoryServicesConnector();
config = new IniConfigSource();
config.AddConfig("Modules");
config.AddConfig("InventoryService");
config.Configs["Modules"].Set("InventoryServices", "LocalInventoryServicesConnector");
config.Configs["InventoryService"].Set("LocalServiceModule", "OpenSim.Services.InventoryService.dll:AssetService");
config.Configs["InventoryService"].Set("StorageProvider", "OpenSim.Tests.Common.dll");
assetService.Initialise(config);
assetService.AddRegion(testScene);
assetService.RegionLoaded(testScene);
testScene.AddRegionModule(inventoryService.Name, inventoryService);
assetService.PostInitialise();
testScene.SetModuleInterfaces();
testScene.LandChannel = new TestLandChannel();