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