Closed (fixed)
Project:
Version Control API
Version:
6.x-2.x-dev
Component:
API module
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
25 Aug 2010 at 12:45 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marvil07 commentedfor the record
Repository class unit tests works after http://drupal.org/cvs?commit=410920
the tests needed to fix are:
- Version Control Account Status functional testing
- Version Control Repository Management functional testing
Comment #2
marvil07 commenteddebugging and fix the 2nd param passed to VersioncontrolEntityController::load() at testAddRepository()
Notice that there is a problem at the defaultPrefix on the query object generated, it is empty instead of being the one selected by simpletest.
A dbtng problem?
Comment #3
sdboyer commentedtagging, we really need this sooner than later. like, now.
Comment #4
marvil07 commentedLink back to dbtng issue: #914392: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries
Comment #5
marvil07 commentedoopps
Comment #6
neclimdul#957262: Make sure autoload registry is setup peripherally associated with getting tests working.
Comment #7
marvil07 commentedLet me make a little summary of what is happening with tests:
It seems like we are blocked until patches on dbtng and simpletest get in.
Comment #8
neclimdulThat's a pretty good summary but there's one more problem. Just to make it a little more concise as I think I may be the only one able to get vcapi tests running atm.
1) Prefixes don't work in simpletests. patch: #914392-5: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries
2) autoload doesn't register dbtng object during simpletests. patch: http://drupal.org/node/957262#comment-3654338
3) dbtng_init() doesn't get called in simpletests so we don't have the global $databases variable initialized. psuedo-patch: #955996-6: Exception: The specified database connection is not defined: default)
4) Random failures when logining in users or making requests because of invalid headers. patch: #890440-14: Backport latest SimpleTest code from D7
Comment #9
marvil07 commentedI am now depending on DBTNGTestCase (see #914392: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries for details).
Still work to do, but finally I think I can work on versioncontrol stuff(not its dependencies)
Comment #10
marvil07 commentedUse what is on DBTNGTestCase instead of depending on it since we already have a base class for testing :-)
Comment #11
marvil07 commentedblame on me for forgetting remove the dependency
Comment #12
marvil07 commentedupdated to add recently views dependency.
all test except account status working (but waiting other projects commits too)
Comment #13
sdboyer commentedOh man. Screen fulla green. Way to go, folks.
Comment #14
marvil07 commentedmmm, this is not really completely committed.. in the other side I need to update the patch since there was some changes in dbtng: #914392-23: While testing, default prefix is used instead of simpletest prefix by dbtng-driven queries
Comment #15
marvil07 commentedI will commit this patch, and after it, all tests are passing(except account status, but it is not really related to this :-p)
Comment #16
marvil07 commentedcommitted to HEAD: http://drupal.org/cvs?commit=448688
Comment #17
marvil07 commentedJust another related: #890216-17: change nomeclature to use $username(s) instead of $vcs_username(s)
It makes account status module test to pass, so finally all test would be working again.