Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10613 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: Fileset tests for Blitz Gateway

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4.7
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: python-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2013-04-09 (7))

Description

From Josh:

Any model changes don't show up as failing in ./build.py test-fs.
I've copied out the queries and put them in test/integration/repository.py for the moment to just be sure.
But things like: fs.copyImageLinks() don't show up.

Change History (7)

comment:1 Changed 11 years ago by wmoore

Running this gatewaytest when on branch develop (with server & DB built with scc develop/latest) I get

jrs-macbookpro-25107:test will$ python gatewaytest/get_objects.py DeleteObjectTest.testDeleteImage

...

    serverExceptionClass = ome.services.query.QueryException
    message = Illegal query:select count(fse.id) from FilesetEntry as fse join fse.fileset as fs left outer join fs.imageLinks as imageLink where imageLink.child.id=:imageId
could not resolve property: imageLinks of: ome.model.fs.Fileset [select count(fse.id) from ome.model.fs.FilesetEntry as fse join fse.fileset as fs left outer join fs.imageLinks as imageLink where imageLink.child.id=:imageId]
}

----------------------------------------------------------------------
Ran 1 test in 1.632s

FAILED (errors=1)

comment:2 Changed 11 years ago by wmoore

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 11 years ago by wmoore

After adding fs.py to gatewaytest/suite.py...

jrs-macbookpro-25107:test will$ python gatewaytest/suite.py
....
runTest (gatewaytest.z_db_cleanup.TDTest) ... **ok
testFileset (gatewaytest.fs.FilesetTest) ... 
...
ok
----------------------------------------------------------------------
Ran 69 tests in 265.681s

OK

comment:4 Changed 11 years ago by wmoore

After adding fs.py to integration/fs_suite.py...

jrs-macbookpro-25107:test will$ python integration/fs_suite.py 
Running tests...
----------------------------------------------------------------------
...
testFileset (gatewaytest.fs.FilesetTest) ... OK (1.646s)
...
======================================================================
FAIL [1.646s]: testDirPrivateGroup (integration.repository.TestManagedRepositoryMultiUser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/will/Desktop/OMERO/components/tools/OmeroPy/test/integration/repository.py", line 342, in testDirPrivateGroup
    f2.repo.listFiles, dirname)
AssertionError: SecurityViolation not raised

----------------------------------------------------------------------
Ran 48 tests in 22.922s

FAILED (failures=1, errors=4)

comment:5 Changed 11 years ago by jamoore

testDirPrivateGroup has been fixed in one of my other branches.

comment:6 Changed 11 years ago by Will Moore <will@…>

(In [fa5dba82ed030b559dd65050d272b2bfa532c90e/ome.git] on branch develop) Basic test of Blitz fileset methods. See #10613

comment:7 Changed 11 years ago by Josh Moore <josh@…>

(In [b7e91c605bf72bb1d97234fc6ab37496ab199f60/ome.git] on branch develop) Merge pull request #961 from will-moore/fileset_tests_10613

Basic test of Blitz fileset methods. See #10613

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67906 sec.)

We're Hiring!