aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs
index 41319ea..a5165d9 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs
@@ -40,10 +40,8 @@ using OpenSim.Framework.Communications.Cache;
40 40
41namespace OpenSim.ApplicationPlugins.Rest.Inventory 41namespace OpenSim.ApplicationPlugins.Rest.Inventory
42{ 42{
43
44 public class RestTestServices : IRest 43 public class RestTestServices : IRest
45 { 44 {
46
47 private bool enabled = false; 45 private bool enabled = false;
48 private string qPrefix = "test"; 46 private string qPrefix = "test";
49 47
@@ -52,7 +50,6 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
52 50
53 public RestTestServices() 51 public RestTestServices()
54 { 52 {
55
56 Rest.Log.InfoFormat("{0} Test services initializing", MsgId); 53 Rest.Log.InfoFormat("{0} Test services initializing", MsgId);
57 Rest.Log.InfoFormat("{0} Using REST Implementation Version {1}", MsgId, Rest.Version); 54 Rest.Log.InfoFormat("{0} Using REST Implementation Version {1}", MsgId, Rest.Version);
58 55
@@ -67,7 +64,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
67 // Load test cases 64 // Load test cases
68 65
69 loadTests(); 66 loadTests();
70 foreach ( ITest test in tests ) 67 foreach (ITest test in tests)
71 { 68 {
72 test.Initialize(); 69 test.Initialize();
73 } 70 }
@@ -81,7 +78,6 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
81 enabled = true; 78 enabled = true;
82 79
83 Rest.Log.InfoFormat("{0} Test services initialization complete", MsgId); 80 Rest.Log.InfoFormat("{0} Test services initialization complete", MsgId);
84
85 } 81 }
86 82
87 // Post-construction, pre-enabled initialization opportunity 83 // Post-construction, pre-enabled initialization opportunity
@@ -98,7 +94,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
98 public void Close() 94 public void Close()
99 { 95 {
100 enabled = false; 96 enabled = false;
101 foreach ( ITest test in tests ) 97 foreach (ITest test in tests)
102 { 98 {
103 test.Close(); 99 test.Close();
104 } 100 }
@@ -123,8 +119,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
123 119
124 private void DoTests(RequestData rdata) 120 private void DoTests(RequestData rdata)
125 { 121 {
126 122 if (!enabled)
127 if (!enabled) return; 123 return;
128 124
129 // Now that we know this is a serious attempt to 125 // Now that we know this is a serious attempt to
130 // access inventory data, we should find out who 126 // access inventory data, we should find out who
@@ -177,7 +173,6 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
177 if (!rdata.handled) 173 if (!rdata.handled)
178 test.Execute(rdata); 174 test.Execute(rdata);
179 } 175 }
180
181 } 176 }
182 177
183 #endregion Interface 178 #endregion Interface