RFI: Explicit database naming in test suite w/ multisite

samkuhn2

Joined: 2004-04-13
Posts: 60
Posted: Wed, 2005-02-16 19:24

Request for improvement:

The test suite does not explicitly define which database it is going to reset.

The desired behavior would be a warning if the reset functions are going to affect all galleries, or just the one that is used to access the test suite.

I also filed a sourceforge bug regarding the inability to log in from a secondary site multiinstall: https://sourceforge.net/tracker/index.php?func=detail&aid=1124211&group_id=7130&atid=107130
----

Gallery URL (optional):
Gallery version: CVS from feb-15-2005
Webserver (with version): Apache 2.0
Datatabase (with version): MySQL 4.1.8
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
http://photos.kuhnfamily.net/lib/tools/phpinfo.php
Graphics Toolkit(s): IM/GD
Operating system: ClarkConnect (Fedora Core 2)
Web browser/version: Mozilla 5/IE 6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-16 21:58

the test suite is nearly obsolete.. it's only still around because these are still useful: FlushCache, FlushTemplates, Reset, Reinit

that being said, i don't see the behavior you describe.. i'm able to see/use the test suite and run unit tests (lib/tools/phpunit/index.php) for a secondary install.
if you'd like me to debug this PM me ssh access to your system, thx.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-02-17 00:29

sorry, above i was referring to not seeing the behavior you describe in the bug report.. turns out that was caused by a blank line added to config.php.

as for which db will be reset, for now you just have to be very careful to make sure the url you're using to access the test suite is for the G2 site you want to reset.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-02-18 00:13

The CleanStore test already listed the database name that will be affected.. I have now added the table prefix as well so you can tell more precisely.