3 failed tests, all in testImportAlbumSuccessful

edriss
edriss's picture

Joined: 2004-07-19
Posts: 74
Posted: Sat, 2005-07-16 18:11

Hi,

Just as an FYI, just ran the Unit Tests and 3 test cases are failing on my box (setup below):

Failure Details

   1. testImportAlbumSuccessful
          * item 0 
            Mismatch At: [ 0] ¡Time to migrate! !== Test Album Two

array (
  0 => '¡Time to migrate!',
  1 => NULL,
  2 => 'stump grinder chipper shredder',
  3 => 'chipper',
  4 => 6,
  5 => 1056015116,
  6 => 1056015077,
  7 => 2,
)

               type:array

array (
  0 => 'Test Album Two',
  1 => 'No description',
  2 => NULL,
  3 => NULL,
  4 => 6,
  5 => 1056014506,
  6 => 1056014506,
  7 => 5,
)

               type:array
   2. testImportAlbumSuccessful
          * derivative operations 
            Mismatch At: [] crop|34.568,40.923,34.877,35.077;thumbnail|150 !== thumbnail|150
            crop|34.568,40.923,34.877,35.077;thumbnail|150   type:string
            thumbnail|150   type:string
   3. testImportAlbumSuccessful
          * item 1 
            Mismatch At: [ 0] Test Album Two !== ¡Time to migrate!

array (
  0 => 'Test Album Two',
  1 => 'No description',
  2 => NULL,
  3 => NULL,
  4 => 6,
  5 => 1056014506,
  6 => 1056014506,
  7 => 5,
)

               type:array

array (
  0 => '¡Time to migrate!',
  1 => NULL,
  2 => 'stump grinder chipper shredder',
  3 => 'chipper',
  4 => 6,
  5 => 1056015116,
  6 => 1056015077,
  7 => 2,
)

               type:array

----

Gallery version = 2.0-beta-3+ core 0.9.31
PHP version = 5.0.4 isapi
Webserver = Microsoft-IIS/5.1
Database = mysqlt 5.0.9-beta-nt
Toolkits = Exif, Thumbnail, ArchiveUpload, Ffmpeg, ImageMagick, NetPBM
Operating system = Windows NT 5.1 build 2600
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-16 22:38

edriss, is this a fresh install? or have you already added a few items, changed options like the sort order etc?

adding keywords to the post :)
jmullan, this is a g1 migrate / import test.

 
edriss
edriss's picture

Joined: 2004-07-19
Posts: 74
Posted: Sat, 2005-07-16 22:53

no, this is not a new install.

The layout of gallery is as follows:

Top level = 5 Albums (for each year, ie 2000, 2001, etc)
Each "Year" album has several sub albums for "events"
Each "Event" album has several pictures (all RGB jpg) contained within.

The entire gallery (as stated on top of "main" album) has "698 items total"

Almost all (i'd say 90%) of the items were imported from G1

The sort order used is newest album first (so 2005 is shown "on top" of 2004), "oldest" image (ie earliest taken picture) first.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-16 23:20

hmm, the sort order seems to have nothing to do with it. for me, it always passes the test.
i guess jmullan will have to debug this...

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2005-07-17 02:48

That is fairly insane -- it looks like the wrong albums are being imported, like album02 and album03 are switched.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2005-07-17 02:49

And the thumbnail thing. Do thumbnails and cropped thumbnails work correctly for you when you add an image and crop it?

 
edriss
edriss's picture

Joined: 2004-07-19
Posts: 74
Posted: Sun, 2005-07-17 03:49

Hi jmullan,

I'm sorry, I don't know about the "albums being switched" in the test, however, as for your second question, yes, the two items you state do work.

Most of my original pictures are of resolutions of greater than 1024 x 768. I have set my gallery to only store 1 copy of the image, at 800 x 600. So the image is resized to this size.

I have not seen any issues with thumbnails of any items.