Commit Graph

37 Commits

Author SHA1 Message Date
Jeff Ames
ee205e7e81 Formatting cleanup. 2009-10-01 01:17:47 +09:00
dr scofield (aka dirk husemann)
05756e1fb9 warnings safari. 2009-09-02 11:06:18 +02:00
Teravus Ovares (Dan Olivares)
6f077d5e5f * Another attempt at fixing the random spurious test error.
* This time it might be the listening socket thread from HttpServer aborting with a non blocking thread abort exception.   Hopefully calling Stop() on MainServer.Instance will solve that.
2009-08-26 21:05:46 -04:00
Kunnis
b1853d9f26 Fixing a spot I missed in assets. Switching Grid to the new naming schema with Store/Get 2009-08-19 23:46:25 +01:00
Diva Canto
5246dc33dc Renamed QueryItem/QueryFolder to GetItem/GetFolder. The word 'query' starting to get on my nerves. 2009-08-13 14:10:12 -07:00
Justin Clark-Casey (justincc)
226c082ed4 Establish CachedUserInfo.OnInventoryReceived event so that region/test inventory code can be written with the async inventory fetch 2009-08-11 16:45:16 +01:00
Arthur Valadares
18aa2ea0c5 * Improves SceneSetupHelper to allow the tester to choose a real or mock, inventory and asset, service modules. The boolean startServices was replaced with realServices string. If the string contains the word asset, it will start a real asset module, if it contains inventory, it starts a real inventory. Otherwise, it use mock (NullPlugin-like) objects, for tests that don't really need functionality.
* SetupScene is now actually sharing the asset and inventory modules if the tester wishes to have multiple regions connected. To link regions, just start SetupScene with the same CommunicationManager for all scenes. SceneSetupHelper will hold a static reference to the modules and won't initialize them again, just run the scenes through the modules AddRegion, RegionLoaded and PostInitialize.

* With the recent changes, both asset and inventory (and in the future, user) services should always be asked from the scene, not instantiated alone. The tests should reflect this new behavior and always start a scene.
2009-08-11 12:07:54 -03:00
Arthur Valadares
c13f3649d2 * Reinstating UserProfileCacheServiceTests. One test still fails (TestUpdateFolder) 2009-06-11 18:27:12 +00:00
diva
f6c6e3e5f2 Attempt at disabling the inventory unit tests, so I can figure out how to fix them. The test setup is broken. 2009-06-10 13:33:26 +00:00
Jeff Ames
840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
Sean Dague
ce0a84cbc0 instrument most of the tests with a new InMethod function that may help us figure
out where that pesky deadlock is during test runs.
2009-05-07 19:07:08 +00:00
Justin Clarke Casey
8fe70c826d * minor: move user profile test utils to test/common/setup for future reuse 2009-04-24 19:19:19 +00:00
Justin Clarke Casey
607156cae8 * Comment out user profile cache update method for now 2009-04-21 20:12:33 +00:00
Justin Clarke Casey
48720ea7a2 * extend user cache update test to check data backend 2009-04-21 16:21:15 +00:00
Justin Clarke Casey
d2d0b9877f * Add the ability to update profiles via the cache, so that cached profiles don't become stale
* Add corresponding unit test
2009-04-21 15:21:27 +00:00
Justin Clarke Casey
3db52d95ef * Extend get user profile test to cover retrieval by name 2009-04-17 14:41:56 +00:00
Justin Clarke Casey
31ca3a8d4d * refactor: Move RequestInventoryForUser() from service to CachedUserInfo
* This simplifies callers in most cases - CachedUserInfo is already handling the rest of the fetch inventory work anyway
2009-02-12 17:07:44 +00:00
lbsa71
801da4346a * optimized usings. 2009-02-12 09:53:12 +00:00
Mike Mazur
9377c6f2b2 - move OpenSim/Framework/IInventoryData.cs to
OpenSim/Data/IInventoryData.cs
- trim trailing whitespace
2009-02-03 05:20:26 +00:00
Justin Clarke Casey
47a693ff1a * remove mono compiler warnings 2009-01-06 15:26:30 +00:00
Justin Clarke Casey
0b07c9762b * Simplify test code by always setting up mock 'in memory' user and inventory data plugins for every TestCommunicationsManager
* imo the gain in simplcity of test code outweighs the very small cost of setting up some stuff that some tests will never use
2009-01-05 18:00:53 +00:00
Justin Clarke Casey
71960f17bc * Extend update test to test situation where it also moves the folder
* Correct logic so that update folder behaves as expected
2008-12-12 21:06:07 +00:00
Justin Clarke Casey
b1f018aa26 * Create update folder test
* Correct small logic elidation
2008-12-12 20:43:42 +00:00
Justin Clarke Casey
1531035b14 * Actually properly enable the purge folders test and correct some problems 2008-12-12 20:04:58 +00:00
Justin Clarke Casey
9f6e567cb1 * add purge folder test 2008-12-12 19:37:51 +00:00
Justin Clarke Casey
7bbab12158 * Add user info move inventory folder test 2008-12-12 19:24:45 +00:00
Justin Clarke Casey
f8ce498755 * extend user profile create folder test to check that one can't create a folder with a non-existant parent folder id 2008-12-12 19:04:10 +00:00
Justin Clarke Casey
a7e145bdfd * refactor: pull out common user profile test code into utility functions 2008-12-12 18:48:29 +00:00
Justin Clarke Casey
80e267dcfe * refactor: Stop exposing InventoryFolderImpl.SubFolders publicly 2008-12-11 20:58:11 +00:00
Justin Clarke Casey
f23856a575 * Add get child folder test 2008-12-11 20:36:46 +00:00
Justin Clarke Casey
30213e141b * Add create folder userinfo test 2008-12-11 19:57:12 +00:00
Justin Clarke Casey
c9aabe2b90 * Pop in a missing using statement without which UserProfileCacheServiceTests.cs fails on Windows (but not mono) 2008-12-11 19:11:19 +00:00
Justin Clarke Casey
04a07daa5b minor: Add request inventory test 2008-12-11 18:56:04 +00:00
Justin Clarke Casey
bec3993849 * Fold mock classes into existing OpenSim/Tests/Common assembly rather than sprouting another one 2008-12-11 18:07:23 +00:00
Justin Clarke Casey
230eb06d34 * Extend test to probe for user details that should exist 2008-12-11 17:30:57 +00:00
Justin Clarke Casey
c4b45449ee * test: Add simple user profile test that checks for non-existing users 2008-12-11 17:23:55 +00:00
Justin Clarke Casey
f38c35b609 * refactor: Move inventory handlers out from UserProfileCacheService
* This means that UserProfileCacheService no longer needs to know about IClientAPI and can leave it to callers to do their own error logging
* This is also more consistent with the way that item inventory manipulation is handled
* I don't really think Scene.PacketHandlers.cs should be a permanent home for these handlers - this is just for convenience
2008-12-10 19:12:59 +00:00