From 8dc9f18e7ce661082201892e28d021b70fac3d95 Mon Sep 17 00:00:00 2001 From: diva Date: Wed, 10 Jun 2009 13:46:38 +0000 Subject: Attempt at fixing the inventory archiver tests. --- OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 51ee7b3..de5dd83 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs @@ -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; @@ -138,7 +139,20 @@ namespace OpenSim.Tests.Common.Setup assetService.RegionLoaded(testScene); 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(); -- cgit v1.1