change ossl tests setup
parent
2c3522a826
commit
47488c9017
|
@ -64,11 +64,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
|||
IConfigSource initConfigSource = new IniConfigSource();
|
||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||
config.Set("Enabled", "true");
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
config = initConfigSource.AddConfig("NPC");
|
||||
config.Set("Enabled", "true");
|
||||
|
||||
config = initConfigSource.AddConfig("OSSL");
|
||||
config.Set("DebuggerSafe", false);
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
|
||||
m_scene = new SceneHelpers().SetupScene();
|
||||
SceneHelpers.SetupSceneModules(m_scene, initConfigSource, new AvatarFactoryModule(), new NPCModule());
|
||||
|
||||
|
|
|
@ -71,6 +71,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
|||
xengineConfig.Set("AllowOSFunctions", "true");
|
||||
xengineConfig.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
IConfig oconfig = initConfigSource.AddConfig("OSSL");
|
||||
oconfig.Set("DebuggerSafe", false);
|
||||
oconfig.Set("Enabled", "true");
|
||||
oconfig.Set("AllowOSFunctions", "true");
|
||||
oconfig.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
IConfig modulesConfig = initConfigSource.AddConfig("Modules");
|
||||
modulesConfig.Set("InventoryAccessModule", "BasicInventoryAccessModule");
|
||||
|
||||
|
|
|
@ -66,11 +66,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
|||
IConfigSource initConfigSource = new IniConfigSource();
|
||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||
config.Set("Enabled", "true");
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
config = initConfigSource.AddConfig("NPC");
|
||||
config.Set("Enabled", "true");
|
||||
|
||||
config = initConfigSource.AddConfig("OSSL");
|
||||
config.Set("DebuggerSafe", false);
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
m_scene = new SceneHelpers().SetupScene();
|
||||
SceneHelpers.SetupSceneModules(
|
||||
m_scene, initConfigSource, new AvatarFactoryModule(), new AttachmentsModule(), new NPCModule());
|
||||
|
|
Loading…
Reference in New Issue