aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs14
-rw-r--r--OpenSim/Framework/Communications/Tests/LoginServiceTests.cs12
2 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index 2972a0a..75848b7 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -34,6 +34,7 @@ using OpenSim.Framework.Communications.Cache;
34using OpenSim.Region.Communications.Local; 34using OpenSim.Region.Communications.Local;
35using OpenSim.Tests.Common.Mock; 35using OpenSim.Tests.Common.Mock;
36using OpenSim.Tests.Common.Setup; 36using OpenSim.Tests.Common.Setup;
37using OpenSim.Tests.Common;
37 38
38namespace OpenSim.Framework.Communications.Tests 39namespace OpenSim.Framework.Communications.Tests
39{ 40{
@@ -43,6 +44,8 @@ namespace OpenSim.Framework.Communications.Tests
43 [Test] 44 [Test]
44 public void TestGetUserDetails() 45 public void TestGetUserDetails()
45 { 46 {
47 TestHelper.InMethod();
48
46 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000002"); 49 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000002");
47 string firstName = "Bill"; 50 string firstName = "Bill";
48 string lastName = "Bailey"; 51 string lastName = "Bailey";
@@ -109,6 +112,8 @@ namespace OpenSim.Framework.Communications.Tests
109 [Test] 112 [Test]
110 public void TestFetchInventory() 113 public void TestFetchInventory()
111 { 114 {
115 TestHelper.InMethod();
116
112 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 117 TestCommunicationsManager commsManager = new TestCommunicationsManager();
113 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 118 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
114 119
@@ -118,6 +123,8 @@ namespace OpenSim.Framework.Communications.Tests
118 [Test] 123 [Test]
119 public void TestGetChildFolder() 124 public void TestGetChildFolder()
120 { 125 {
126 TestHelper.InMethod();
127
121 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 128 TestCommunicationsManager commsManager = new TestCommunicationsManager();
122 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 129 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
123 130
@@ -132,6 +139,8 @@ namespace OpenSim.Framework.Communications.Tests
132 [Test] 139 [Test]
133 public void TestCreateFolder() 140 public void TestCreateFolder()
134 { 141 {
142 TestHelper.InMethod();
143
135 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 144 TestCommunicationsManager commsManager = new TestCommunicationsManager();
136 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 145 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
137 146
@@ -159,6 +168,8 @@ namespace OpenSim.Framework.Communications.Tests
159 [Test] 168 [Test]
160 public void TestUpdateFolder() 169 public void TestUpdateFolder()
161 { 170 {
171 TestHelper.InMethod();
172
162 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 173 TestCommunicationsManager commsManager = new TestCommunicationsManager();
163 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 174 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
164 175
@@ -213,6 +224,8 @@ namespace OpenSim.Framework.Communications.Tests
213 [Test] 224 [Test]
214 public void TestMoveFolder() 225 public void TestMoveFolder()
215 { 226 {
227 TestHelper.InMethod();
228
216 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 229 TestCommunicationsManager commsManager = new TestCommunicationsManager();
217 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 230 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
218 231
@@ -244,6 +257,7 @@ namespace OpenSim.Framework.Communications.Tests
244 [Test] 257 [Test]
245 public void TestPurgeFolder() 258 public void TestPurgeFolder()
246 { 259 {
260 TestHelper.InMethod();
247 //log4net.Config.XmlConfigurator.Configure(); 261 //log4net.Config.XmlConfigurator.Configure();
248 262
249 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 263 TestCommunicationsManager commsManager = new TestCommunicationsManager();
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
index 965e6b4..7d75faa 100644
--- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
@@ -38,6 +38,7 @@ using OpenSim.Framework.Communications.Services;
38using OpenSim.Region.Communications.Local; 38using OpenSim.Region.Communications.Local;
39using OpenSim.Tests.Common.Mock; 39using OpenSim.Tests.Common.Mock;
40using OpenSim.Client.Linden; 40using OpenSim.Client.Linden;
41using OpenSim.Tests.Common;
41 42
42namespace OpenSim.Framework.Communications.Tests 43namespace OpenSim.Framework.Communications.Tests
43{ 44{
@@ -45,6 +46,7 @@ namespace OpenSim.Framework.Communications.Tests
45 /// Test the login service. For now, most of this will be done through the LocalLoginService as LoginService 46 /// Test the login service. For now, most of this will be done through the LocalLoginService as LoginService
46 /// is abstract 47 /// is abstract
47 /// </summary> 48 /// </summary>
49
48 [TestFixture] 50 [TestFixture]
49 public class LoginServiceTests 51 public class LoginServiceTests
50 { 52 {
@@ -83,6 +85,7 @@ namespace OpenSim.Framework.Communications.Tests
83 [Test] 85 [Test]
84 public void T010_TestUnauthenticatedLogin() 86 public void T010_TestUnauthenticatedLogin()
85 { 87 {
88 TestHelper.InMethod();
86 // We want to use our own LoginService for this test, one that 89 // We want to use our own LoginService for this test, one that
87 // doesn't require authentication. 90 // doesn't require authentication.
88 LoginService loginService = new LLStandaloneLoginService((UserManagerBase)m_commsManager.UserService, "Hello folks", m_commsManager.InterServiceInventoryService, 91 LoginService loginService = new LLStandaloneLoginService((UserManagerBase)m_commsManager.UserService, "Hello folks", m_commsManager.InterServiceInventoryService,
@@ -119,6 +122,7 @@ namespace OpenSim.Framework.Communications.Tests
119 [Test] 122 [Test]
120 public void T011_TestAuthenticatedLoginSuccess() 123 public void T011_TestAuthenticatedLoginSuccess()
121 { 124 {
125 TestHelper.InMethod();
122 // TODO: Not check inventory part of response yet. 126 // TODO: Not check inventory part of response yet.
123 // TODO: Not checking all of login response thoroughly yet. 127 // TODO: Not checking all of login response thoroughly yet.
124 128
@@ -168,6 +172,7 @@ namespace OpenSim.Framework.Communications.Tests
168 [Test] 172 [Test]
169 public void T012_TestAuthenticatedLoginForBuddies() 173 public void T012_TestAuthenticatedLoginForBuddies()
170 { 174 {
175 TestHelper.InMethod();
171 // 1.1) Test for budddies! 176 // 1.1) Test for budddies!
172 m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43); 177 m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43);
173 m_localUserServices.AddUser("Friend","Number2","boingboing","abc@ftw.com",42,43); 178 m_localUserServices.AddUser("Friend","Number2","boingboing","abc@ftw.com",42,43);
@@ -207,6 +212,7 @@ namespace OpenSim.Framework.Communications.Tests
207 [Test] 212 [Test]
208 public void T020_TestAuthenticatedLoginBadUsername() 213 public void T020_TestAuthenticatedLoginBadUsername()
209 { 214 {
215 TestHelper.InMethod();
210 216
211 // 2) Test for negative authentication 217 // 2) Test for negative authentication
212 // 218 //
@@ -234,6 +240,8 @@ namespace OpenSim.Framework.Communications.Tests
234 [Test] 240 [Test]
235 public void T021_TestAuthenticatedLoginBadPassword() 241 public void T021_TestAuthenticatedLoginBadPassword()
236 { 242 {
243 TestHelper.InMethod();
244
237 string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist."; 245 string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist.";
238 // 2.2) Test for wrong password 246 // 2.2) Test for wrong password
239 Hashtable loginParams = new Hashtable(); 247 Hashtable loginParams = new Hashtable();
@@ -257,6 +265,8 @@ namespace OpenSim.Framework.Communications.Tests
257 [Test] 265 [Test]
258 public void T022_TestAuthenticatedLoginBadXml() 266 public void T022_TestAuthenticatedLoginBadXml()
259 { 267 {
268 TestHelper.InMethod();
269
260 string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML."; 270 string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML.";
261 // 2.3) Bad XML 271 // 2.3) Bad XML
262 Hashtable loginParams = new Hashtable(); 272 Hashtable loginParams = new Hashtable();
@@ -280,6 +290,8 @@ namespace OpenSim.Framework.Communications.Tests
280 [Test] 290 [Test]
281 public void T023_TestAuthenticatedLoginAlreadyLoggedIn() 291 public void T023_TestAuthenticatedLoginAlreadyLoggedIn()
282 { 292 {
293 TestHelper.InMethod();
294
283 //Console.WriteLine("Starting T023_TestAuthenticatedLoginAlreadyLoggedIn()"); 295 //Console.WriteLine("Starting T023_TestAuthenticatedLoginAlreadyLoggedIn()");
284 //log4net.Config.XmlConfigurator.Configure(); 296 //log4net.Config.XmlConfigurator.Configure();
285 297