diff options
author | Sean Dague | 2009-03-09 15:20:36 +0000 |
---|---|---|
committer | Sean Dague | 2009-03-09 15:20:36 +0000 |
commit | a2ff2e9000db4cfc817f6bc1971674186f3af3b3 (patch) | |
tree | 45ec46cc02207fbbd1266844595c27f083660453 /OpenSim/Framework/Communications | |
parent | Refactor login test class. (diff) | |
download | opensim-SC-a2ff2e9000db4cfc817f6bc1971674186f3af3b3.zip opensim-SC-a2ff2e9000db4cfc817f6bc1971674186f3af3b3.tar.gz opensim-SC-a2ff2e9000db4cfc817f6bc1971674186f3af3b3.tar.bz2 opensim-SC-a2ff2e9000db4cfc817f6bc1971674186f3af3b3.tar.xz |
* Added TXXX in front of unit tests to make sure they are running in the correct order. Although it might not make a difference here, this pattern should be followed to avoid further issues.
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs index daa2a89..ca25922 100644 --- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
80 | /// Test the normal response to a login. Does not test authentication. | 80 | /// Test the normal response to a login. Does not test authentication. |
81 | /// </summary> | 81 | /// </summary> |
82 | [Test] | 82 | [Test] |
83 | public void TestUnauthenticatedLogin() | 83 | public void T010_TestUnauthenticatedLogin() |
84 | { | 84 | { |
85 | // We want to use our own LoginService for this test, one that | 85 | // We want to use our own LoginService for this test, one that |
86 | // doesn't require authentication. | 86 | // doesn't require authentication. |
@@ -116,7 +116,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
116 | } | 116 | } |
117 | 117 | ||
118 | [Test] | 118 | [Test] |
119 | public void TestAuthenticatedLoginSuccess() | 119 | public void T011_TestAuthenticatedLoginSuccess() |
120 | { | 120 | { |
121 | // TODO: Not check inventory part of response yet. | 121 | // TODO: Not check inventory part of response yet. |
122 | // TODO: Not checking all of login response thoroughly yet. | 122 | // TODO: Not checking all of login response thoroughly yet. |
@@ -165,7 +165,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
165 | } | 165 | } |
166 | 166 | ||
167 | [Test] | 167 | [Test] |
168 | public void TestAuthenticatedLoginForBuddies() | 168 | public void T012_TestAuthenticatedLoginForBuddies() |
169 | { | 169 | { |
170 | // 1.1) Test for budddies! | 170 | // 1.1) Test for budddies! |
171 | m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43); | 171 | m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43); |
@@ -204,7 +204,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
204 | } | 204 | } |
205 | 205 | ||
206 | [Test] | 206 | [Test] |
207 | public void TestAuthenticatedLoginBadUsername() | 207 | public void T020_TestAuthenticatedLoginBadUsername() |
208 | { | 208 | { |
209 | 209 | ||
210 | // 2) Test for negative authentication | 210 | // 2) Test for negative authentication |
@@ -231,7 +231,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
231 | } | 231 | } |
232 | 232 | ||
233 | [Test] | 233 | [Test] |
234 | public void TestAuthenticatedLoginBadPassword() | 234 | public void T021_TestAuthenticatedLoginBadPassword() |
235 | { | 235 | { |
236 | string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist."; | 236 | string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist."; |
237 | // 2.2) Test for wrong password | 237 | // 2.2) Test for wrong password |
@@ -254,7 +254,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
254 | } | 254 | } |
255 | 255 | ||
256 | [Test] | 256 | [Test] |
257 | public void TestAuthenticatedLoginBadXml() | 257 | public void T022_TestAuthenticatedLoginBadXml() |
258 | { | 258 | { |
259 | string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML."; | 259 | string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML."; |
260 | // 2.3) Bad XML | 260 | // 2.3) Bad XML |
@@ -277,7 +277,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
277 | } | 277 | } |
278 | 278 | ||
279 | [Test] | 279 | [Test] |
280 | public void TestAuthenticatedLoginAlreadyLoggedIn() | 280 | public void T023_TestAuthenticatedLoginAlreadyLoggedIn() |
281 | { | 281 | { |
282 | string error_already_logged = "You appear to be already logged in. " + | 282 | string error_already_logged = "You appear to be already logged in. " + |
283 | "If this is not the case please wait for your session to timeout. " + | 283 | "If this is not the case please wait for your session to timeout. " + |