aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-05-23BasicAssetTest.cs replaced by AssetTests.csAlexRa1-0/+161
AssetTests: The name has changed to reflect the fact it is no longer a base class, but the complete asset test for all supported databases. The test can also check storing of CreatorID, but the feature is disabled at this commit!
2010-05-23Bugfix in tests (must clear db before migrations, not after)AlexRa3-3/+3
2010-05-23EstateData tests passing on all DBsAlexRa1-28/+2
2010-05-23Corrections in RegionTests.cs. It now fully works!AlexRa1-48/+75
The problem was that some tests relied on prior tests to leave the DB in a particular state, but the test class cleared the DB every time. The affected tests have been merged into one to remove the dependencies. tested on all 3 Dbs, all tests green.
2010-05-23Minor corrections in BasicDataServiceTest.csAlexRa1-0/+41
(added more functions for cleaning up DB from the derived tests)
2010-05-23All data tests made DBMS-independentAlexRa3-87/+159
2010-05-23Added generic base classes for testing database servicesAlexRa3-0/+241
These are some generic classes that simplify writing tests for any of the data connectors and databases. Among other things, configuring the connection strings is done once, in a separate resource file. Tests based on the new BasicDataServiceTest class require NUnit 2.5 or better.
2010-05-20Series of patches to include creator ID in assets.AlexRa1-4/+35
Contains a migration. SQLite: May contain nuts. The SQLite migration copies the entire asset table. Be prepared for quite a wait. Don't interrupt it. Back up your assets db. BasicAssetTest checks CreatorID storage, new test for weird CreatorID (now also checks that non-GUID or empty CreatorID gets stored correctly) Signed-off-by: Melanie <melanie@t-data.com>
2010-05-19Scrambled asset type in BasicAssetTest.cs!AlexRa1-9/+10
The asset type wasn't in the list of "DontScramble" fields, so the test assets were stored with randomized type, which caused exception on reading them. Also the scrambler was moved from local var to the class level, so it could be used in the new tests I've added (see the next commit).
2010-04-30rename SQLiteNG to SQLite and SQLite to SQLiteLegacyJustin Clark-Casey (justincc)1-1/+2
this seems the least evil way forward since mono 2.6 and later will see increasing usage, and this only works with what was SQLiteNG MAC USERS WILL NEED TO CHANGE REFERENCES TO "OpenSim.Data.SQLite.dll" to "OpenSim.Data.SQLiteLegacy.dll" in OpenSim.ini and config-include/StandaloneCommon.ini (if using standalone) See the OpenSim.ini.example and StandaloneCommon.ini.example files for more details This commit also temporarily changes unsigned ParentEstateID values in the OpenSim.Data.Tests to signed temporarily, since the new plugin enforces creation of signed fields in the database (which is what the SQL actually specifies). And change data columns in sqlite is a pita.
2010-03-22Remove the reading of estate_settings.xml and the associated processing ofMelanie1-12/+12
defaults. Adding code to facilitate estate creation / managemment as part of first time start up
2010-03-02Fixed SQL tests.Diva Canto1-4/+1
2010-02-22Changed asset CreatorID to a stringJohn Hurliman3-11/+11
2010-02-22* Adds CreatorID to asset metadata. This is just the plumbing to support ↵John Hurliman3-11/+11
CreatorID, it doesn't modify database backends or OAR files to support storing/loading it
2010-02-21MySQL tests pass, except T016_RandomSogWithSceneParts. Total mystery as to ↵Diva Canto1-0/+6
why that test doesn't show in panda.
2010-02-21Deleted obsolete files in the Data layer. Compiles.Diva Canto2-876/+0
2010-02-16Disable Data.BasicRegioNTest.T016_RandomSogWithSceneParts() temporarily ↵Justin Clark-Casey (justincc)1-1/+1
since it's making the tests fail but the cause is not obvious (wrapped up in layers of reflection)
2009-12-31Put PassCollision on the ignore list for testing, since we don't save thatMelanie1-0/+1
yet.
2009-12-06Getting rid of the dead field RootInventoryFolderId on UserProfileData, It's ↵Kunnis1-7/+2
not even stored in mysql. Signed-off-by: Melanie <melanie@t-data.com>
2009-11-27Apply patch that fixes the failing T013_eStateSettingsRandomStorage testJustin Clark-Casey (justincc)1-3/+4
See http://opensimulator.org/mantis/view.php?id=3993 Thanks Kunnis
2009-11-12minor: remove some mono compiler warningsJustin Clark-Casey (justincc)1-1/+1
2009-11-05Changing the AssetBase constructors to avoid initializing assets with an ↵John Hurliman3-12/+11
unknown asset type, and log an error if it ever does happen
2009-10-19* Removed OpenSim.Data.NHibernateJohn Hurliman2-2/+1
* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
2009-10-01Formatting cleanup.Jeff Ames1-1/+1
2009-10-01Formatting cleanup.Jeff Ames2-29/+29
2009-09-16SceneObjectGroup cleanup. Removes the default constructor and unnecessary ↵John Hurliman1-4/+2
null checks on m_rootPart
2009-09-07oops, disable T012_EstateSettingsRandomStorage() again since it does appear ↵Justin Clark-Casey (justincc)1-1/+2
to fail occasionally
2009-09-06T012_EstateSettingsRandomStorage() which wasn't being run because the method ↵Justin Clark-Casey (justincc)1-2/+1
was private test appears to work, so method made public to run in tests
2009-08-19Fixing a spot I missed in assets. Switching Grid to the new naming schema ↵Kunnis1-4/+4
with Store/Get
2009-08-19* Switching IAssetData to follow the new naming schema, removing the ↵Kunnis1-12/+12
separate insert and update methods.
2009-08-17Add copyright headers. Formatting cleanup. Fix a compiler warning.Jeff Ames3-6/+33
2009-08-16* Added Expression based ignores to the PropertyScrambler, which makes a lot ↵Kunnis8-224/+210
of the tests clearer because I'm not constantly resetting properties.
2009-08-16* More improvements to BasicAssetTest.csKunnis1-26/+12
2009-08-16* Fixed MySQL/MySQLAssetData.cs to properly do updates * Removed an extra ↵Kunnis3-27/+92
parameter from MySQL/MySQLInventoryData.cs * Fixed a bug in SQLite/SQLiteAssetData.cs that was causing a NRE when updating an asset. * Improved the BasicAssetTest.cs to do full create/update/get testing * Improved the BasicInventoryTest.cs to do full create/update/get of both a folder and an item * Moved the null ref tests to the start of the PropertyCompareConstraint.cs, so that it doesn't throw when passing in a null item
2009-08-16* Modified SQLite/SQLiteInventoryStore.cs to not throw if the inventory row ↵Kunnis4-46/+140
does not exist, to match the mysql behavior. * Modified SQLite/SQLiteRegionData.cs to only persist temporary items following the same rules mysql uses. * Added another ignore to the inventory test that was missing. * Added a few more ignores to the RegionTest that the first version of my test were missing. * Added ignoring the root Folder ID, which is set by the inventory system. * Added several improvements to the PropertyCompareConstraint: Protection against infinite loops, added IComparable<T> (for UUID) and moved IComparable before the property matching. * Fixed a bug where I was saving the inside of the ignore expression instead of the outside of it.
2009-08-16Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis6-90/+140
2009-08-16Add copyright headers. Formatting cleanup.Jeff Ames2-3/+57
2009-08-14minor formatting adjustmentsJustin Clark-Casey (justincc)1-2/+10
2009-08-14Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis2-0/+400
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames6-6/+6
LICENSE.txt.
2009-04-13make the asserts spit out messages about their test namesSean Dague5-378/+378
2009-04-09* Moved the DatabaseTestAttribute to Test.Common, and thus included ref to ↵lbsa711-17/+0
that in all db tests. *phew*
2009-04-09* Added custom DatabaseTestAttribute to help separating unit tests from ↵lbsa711-0/+17
component tests.
2009-04-08* Make it possible to store creator strings in user inventory items as well ↵Justin Clarke Casey2-3/+3
as UUIDs * All existing functionality should be unaffected. * Database schemas have not been changed.
2009-04-01* Removes some hard-coded magic numbers relating to RegionSize. We now use ↵Adam Frisby1-5/+5
Constants.RegionSize as expected. (Working towards enlarged or smaller regionsizes that arent multiples of 256m) * Adds minor functionality to MRM Scripting.
2009-03-11Remove chained tests in BasicGridTest.cs.Mike Mazur1-118/+88
It's good practice to isolate unit tests so their outcome (pass/fail) does not depend on whether another test has been run/passed/failed. A method is used to populate the DB independently for each test, and a TearDown method cleans up the database after each test. Also adding extra comment in C-style comment test.
2009-02-25* minor: Remove most mono compiler warningsJustin Clarke Casey5-5/+5
2009-02-22Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke6-2/+20
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
2009-02-21* Applied a patch that: Added estate ban table to migration scripts and ↵lbsa711-4/+4
nhibernate mapping. Refactored property getters and setters for estate ban object to support NHibernate. * Added estate ban table to migration scripts of all supported databases. * Added nhibernate mapping for EstateBans property of EstateSettings * Refactored property accessors for EstateBan object. * Added comments for EstateBan properties. * Ensured that NHibernate tests pass with NUnitGUI. * Ensured that nant test target passes. This fixes mantis #3210. Thank you, tlaukkan!
2009-02-20* Apply http://opensimulator.org/mantis/view.php?id=3185idb1-2/+3
* Fixes NHibernate problem where prim contents show as textures * Thanks Tommil!