diff options
author | AlexRa | 2010-05-21 15:47:37 +0300 |
---|---|---|
committer | AlexRa | 2010-05-23 11:48:08 +0300 |
commit | 330ad501a5b1933ad041cd13676548701170c56d (patch) | |
tree | 3bc20287e2f4830f339981ab9324582175d8bcca /OpenSim/Data/Tests | |
parent | Removed MySql and SQLite-specific asset test files (diff) | |
download | opensim-SC_OLD-330ad501a5b1933ad041cd13676548701170c56d.zip opensim-SC_OLD-330ad501a5b1933ad041cd13676548701170c56d.tar.gz opensim-SC_OLD-330ad501a5b1933ad041cd13676548701170c56d.tar.bz2 opensim-SC_OLD-330ad501a5b1933ad041cd13676548701170c56d.tar.xz |
Added MS SQL test conn to INI - only as an example, modify before use!!!
NOTE that this INI file is currently loaded as a embedded RESOURCE, which is weird and has a
disadvantage of having to rebuild the Tests whenever the conn strings are changed.
The only reason is that I couldn't figure out a reliable way to put this INI into the correct
dir at runtime. If somebody can do it, that would be cool.
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r-- | OpenSim/Data/Tests/Resources/TestDataConnections.ini | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/OpenSim/Data/Tests/Resources/TestDataConnections.ini b/OpenSim/Data/Tests/Resources/TestDataConnections.ini index d149744..5e68ab0 100644 --- a/OpenSim/Data/Tests/Resources/TestDataConnections.ini +++ b/OpenSim/Data/Tests/Resources/TestDataConnections.ini | |||
@@ -1,7 +1,24 @@ | |||
1 | ; The default connections to the test databases. Used by tests based on BasicDataServiceTest.cs. | 1 | ; The default connections to the test databases. Used by all data tests based on BasicDataServiceTest.cs. |
2 | ; Read by code in DefaultTestConns.cs | 2 | ; This is read by code in DefaultTestConns.cs. |
3 | |||
4 | ; NOTE that this INI file is currently loaded as a embedded RESOURCE, which is weird and has a | ||
5 | ; disadvantage of having to rebuild the Tests whenever the conn strings are changed. | ||
6 | ; The only reason is that I couldn't figure out a reliable way to put this INI into the correct | ||
7 | ; dir at runtime. If somebody can do it, that would be cool. | ||
8 | |||
9 | ; I'm using a local MSDE server for testing. Obviously, you'll have to modify | ||
10 | ; the conn string to whatever MS SQL server is available to you. | ||
11 | |||
12 | ; If any of the conn strings is commented out, emty or not valid on your system, | ||
13 | ; the relevant tests will be ignored, rather than fail. | ||
14 | |||
15 | ; As to SQLite, if the conn string here is empty, it will work anyway using a temporary | ||
16 | ; file for the DB. If you want the resulting DB to persist (e.g. for performance testing, | ||
17 | ; when filling up the tables can take a long time), explicitly specify a conn string like this: | ||
18 | |||
19 | ; SqliteConnection="URI=file:<path_to_your_file>,version=3" | ||
3 | 20 | ||
4 | [TestConnections] | 21 | [TestConnections] |
5 | MySqlConnection="Server=localhost;Port=3306;Database=opensim-nunit;User ID=opensim-nunit;Password=opensim-nunit;" | 22 | MySqlConnection="Server=localhost;Port=3306;Database=opensim-nunit;User ID=opensim-nunit;Password=opensim-nunit;" |
6 | ;SqlConnection="..." | 23 | SqlConnection="Server=.\SQL2008;Database=opensim-nunit;Trusted_Connection=True;" |
7 | ;SqliteConnection="..." \ No newline at end of file | 24 | SqliteConnection="" \ No newline at end of file |