aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel2016-11-031-417/+0
|
* Fix "save iar" hanging permanently if the asset request phase times out.Justin Clark-Casey (justincc)2012-10-261-2/+2
| | | | | | | | Unlike "save oar", this was happening on the same thread as the original request. The timeout happens on another so the original thread is never aborted. On "save oar" this leaves the thread hanging (still bad) but on "save iar" it left the console thread hanging. Temporary fix is to make "save iar" do asset request on a separate thread, like "save oar". Longer term fix will be to restructure asset save to use a ManualResetEvent rather than a separate timeout timer.
* Fix regression introduced in a0d178b2 (Sat Aug 25 02:00:17 2012) where ↵Justin Clark-Casey (justincc)2012-08-291-32/+32
| | | | | | | | | | | folders with asset type of 'Folder' and 'Unknown' were accidentally treated as system folders. This prevented more than one additional ordinary folder from being created in the base "My Inventory" user folder. Added regression test for this case. Switched tests to use XInventoryService with mostly implemented TestXInventoryDataPlugin rather than InventoryService Disabled TestLoadIarV0_1SameNameCreator() since this has not been working for a very long time (ever since XInventoryService) started being used since it doesnt' preserve creator data in the same way as InventoryService did and so effectively lost the OSPAs. However, nobody noticed/complained about this issue and OSPAs have been superseded by HG like creator information via the --home save oar/iar switch.
* Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)2012-04-271-1/+1
| | | | | | | | the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
* rename TestHelper => TestHelpers for consistencyJustin Clark-Casey (justincc)2011-08-061-7/+7
|
* rename test SceneSetupHelpers -> SceneHelpers for consistencyJustin Clark-Casey (justincc)2011-08-061-4/+4
|
* Add --noassets option for "save iar"Justin Clark-Casey (justincc)2011-05-261-2/+102
| | | | | | | | Like "save oar", this saves an iar without assets This can be useful for backup when you know the required assets will still be present (e.g. you're backing up the assets db separately). This also bumps the iar format version to 0.3 and 1.2 respectively. 0.3 is backward compatible with previous opensim versions 1.2 is used if the --profile switch is specified. It is only compatible with 0.7.1 presently.
* Get rid of OpenSim.Tests.Common.Setup subpackage in favour of just ↵Justin Clark-Casey (justincc)2011-05-211-1/+0
| | | | OpenSim.Tests.Common instead
* rename UserProfileTestUtils to UserAccountHelpers to be consistent with ↵Justin Clark-Casey (justincc)2011-05-211-6/+6
| | | | other test helper names
* add test to ensure that an IAR starts with the control fileJustin Clark-Casey (justincc)2011-04-181-1/+28
|
* get rid of all traces of the now used mock service infrastructureJustin Clark-Casey (justincc)2011-04-151-1/+1
|
* extend TestLoadCoalesecedItem() to check loaded object ids and positionsJustin Clark-Casey (justincc)2011-04-151-1/+7
|
* Make all the objects in a coalescence reappears after being loaded from an ↵Justin Clark-Casey (justincc)2011-04-151-18/+25
| | | | | | | IAR. This still doesn't work proprerly since some required textures/contained item assets might be missing. From pure code inspection, it looks like the uuid gatherer may get most asset uuids because the scene object serializer naively pulls non-root parts from all contained scene objects into one mega-object. However, root part uuids may well still be missing, and there may be other odd artifacts from this bug. It appears that storing the size of the coalescence and the offsets is redundant, since one can work out this information from the position data already in the scene object groups.
* implement stub TestLoadCoalesecedItem(). Doesn't do what it's meant to do yet.Justin Clark-Casey (justincc)2011-04-141-0/+17
|
* simplify TestSaveItemToIarV0_1()Justin Clark-Casey (justincc)2011-04-141-18/+2
|
* Add test for simple case where creator account with appropriate uuid exists ↵Justin Clark-Casey (justincc)2011-03-101-0/+32
| | | | on the target system for an iar load
* refactor: rename test user account fieldsJustin Clark-Casey (justincc)2011-03-101-14/+14
|
* factor out common scene setup code in InventoryArchiveTestCaseJustin Clark-Casey (justincc)2011-03-101-40/+32
|
* extend TestLoadIarV0_1AbsentCreator() to check serialized object CreatorId ↵Justin Clark-Casey (justincc)2011-03-101-0/+6
| | | | as well
* re-enable item.CreatorId check in TestLoadIarV0_1AbsentCreator()Justin Clark-Casey (justincc)2011-03-101-3/+3
|
* For objects loaded from an IAR, make sure the CreatorID points towards the ↵Justin Clark-Casey (justincc)2011-03-101-5/+5
| | | | | | | | | OSP resolved ID if newer CreationData is not present. This should resolve issues where the creator for rezzed objects was being shown as "Unknown user" where previous behaviour was to show the OSP resolved account. This is being done by parsing the serialized objects and updating the CreatorID if no CreationData exists. This operation might be expensive for sculpties where the sculpt texture is inlined with the object data. Will just have to see. This relies on the IAR streaming inventory data before asset data (as is currently the case). Will need to introduce more stringent checks for file order on loading (much like JAR zips must start with the manifest file). This is for IAR loading only. Tests updated to check this behaviour.
* When setting up default iar for testing, use iar archiving code rather than ↵Justin Clark-Casey (justincc)2011-03-101-0/+6
| | | | constructing the tar manually
* Change existing users load iar test so that it fulfills it's original ↵Justin Clark-Casey (justincc)2011-03-101-10/+9
| | | | | | intention (i.e. OSPA resolution, which is still active). Will need to write a separate test for the simplest case where creator accounts with appropriate uuids exist on iar load.
* Split the inventory path testing parts of TestLoadIarV0_1ExistingUsers() ↵Justin Clark-Casey (justincc)2011-03-101-22/+0
| | | | into a new test TestLoadIarToInventoryPaths()
* Upgrade nunit.framework.dll to version 2.5.9. Fix up tests appropriately.Justin Clark-Casey (justincc)2011-03-091-1/+0
| | | | This version removes the NUnit.Framework.SyntaxHelpers namespace, so any modules with their own tests will need to delete this using statement.
* Split out path tests from InventoryArchiveTests. Factor common code into ↵Justin Clark-Casey (justincc)2011-03-091-531/+2
| | | | test case parent
* Simplify TestLoadIarV0_1AbsentUsers() to use common IAR test setup. Make ↵Justin Clark-Casey (justincc)2011-03-091-50/+15
| | | | static dictionaries on NullUserAccountData instance instead to stop user accounts being carried over between tests
* Construct test load iar only once and reuse for each test, rather than ↵Justin Clark-Casey (justincc)2011-03-051-8/+18
| | | | recreating it every time
* Remove the restriction that you have to be logged in when loading/saving iarsJustin Clark-Casey (justincc)2010-12-111-7/+7
| | | | This is pointless as we're supplying the password on the command line
* Fix unit test.Diva Canto2010-11-291-5/+8
|
* Preservation of creator information now also working in IARs. Cleaned up ↵Diva Canto2010-11-291-3/+2
| | | | usage help. Moved Osp around, deleted unnecessary OspInventoryWrapperPlugin, added manipulation of SOP's xml representation in a generic ExternalRepresentationUtils function.
* Formatting cleanup.Jeff Ames2010-09-121-27/+27
|
* Create Scene.Inventory.cs.AddInventoryItem(InventoryItemBase item)Justin Clark-Casey (justincc)2010-09-041-3/+3
| | | | The agentID in AddInventoryItem(UUID agentID, InventoryItemBase item) is redundant since it's contained in item.Owner, and it doesn't make sense for agentID != item.Owner, hence the method is deprecated.
* very minor log message and var name tweaking for iar savingJustin Clark-Casey (justincc)2010-08-281-1/+2
|
* Improve liveness by operating on list copies of SOG.Children where appropriateJustin Clark-Casey (justincc)2010-08-281-1/+1
|
* allow inventory path specified in "load iar" to start with a / (e.g. ↵Justin Clark-Casey (justincc)2010-08-271-0/+24
| | | | /Objects is now valid where it wasn't before)
* refactor: Make IAR tests set up standard iar for loadingJustin Clark-Casey (justincc)2010-08-271-44/+60
|
* Remove old test classes that don't actually test anything not done elsewhereJustin Clark-Casey (justincc)2010-08-071-1/+1
| | | | Also comment out log4net line in InventoryArchiverTests
* Merge branch 'iar-merge'Justin Clark-Casey (justincc)2010-08-041-5/+45
|\ | | | | | | | | | | Conflicts: OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
| * Add --merge switch to load iar.Justin Clark-Casey (justincc)2010-06-301-5/+45
| | | | | | | | | | | | When this switch is used, iar folders are merged with existing same-name user inventory folders. This makes it a little easier to back and restore entire individual user inventories, among other things Added unit test to check behaviour
* | Fix obvious bug in XInventoryService.GetFolderItems() which was preventing ↵Justin Clark-Casey (justincc)2010-07-141-5/+120
|/ | | | the iar module from being able to save single item iars
* Fix problem where iar load would duplicate huge number of foldersJustin Clark-Casey (justincc)2010-06-181-26/+49
| | | | | This was http://opensimulator.org/mantis/view.php?id=4770 Extend unit tests to check for this scenario too
* change TestPartExistingIarPath() to check appropriate folder creationJustin Clark-Casey (justincc)2010-06-181-15/+23
| | | | change some names in InventoryArchiveReadRequest in an effort to make the code more comprehendable
* in IAR utils, return all folders that match a particular path rather than ↵Justin Clark-Casey (justincc)2010-06-181-5/+5
| | | | just the first one
* Revert "Allow IInventoryService.GetFolder(folderId, userId) as well as ↵Justin Clark-Casey (justincc)2010-06-111-2/+2
| | | | | | GetFolder(InventoryFolderBase folder)" This reverts commit 3525195bc9b5fdfd9799411edd452981ef1f4ebd.
* Allow IInventoryService.GetFolder(folderId, userId) as well as ↵Justin Clark-Casey (justincc)2010-06-111-2/+2
| | | | | | | GetFolder(InventoryFolderBase folder) This involves no wire changes since the methods often just construct an InventoryFolderBase under the hood. This is in line with other methods that alraedy allow requests via uuid
* create inactive test for iar folders/items merged with existing pathsJustin Clark-Casey (justincc)2010-06-111-2/+48
| | | | add various helper functions for simplifying test readability
* various refactorings on methods to replicate IAR paths to user inventory in ↵Justin Clark-Casey (justincc)2010-06-051-1/+1
| | | | order to improve readability
* refactor: do pathname trimming outside of ReplicateArchivePathToUserInventory()Justin Clark-Casey (justincc)2010-06-041-1/+1
|
* bring TestLoadIarV0_1AbsentUsers() back onlineJustin Clark-Casey (justincc)2010-06-041-63/+56
|