Commit Graph

26 Commits

Author SHA1 Message Date
Antony Lesuisse 45ce223457 cleanup tests
bzr revid: al@openerp.com-20121217015651-qdw4iugzh9ghwv19
2012-12-17 02:56:51 +01:00
Olivier Dony 313897186c [IMP] document_ftp: improve/sanitize transaction management during tests
Now that spurious commits were removed in document module,
the test would not run properly anymore.
We do need special care with transactions when we test the
FTP layer because operations on the virtual FS are done
in their own transaction, and immediately committed.
In order for test code and FTP operations to be able
to see each other, the transactions need to be synchronized. 
The current test transaction needs to be rolled back
or committed after reach FTP operation so it can "see" the
latest changes in the database. Similarly, we must force
a commit of the test transaction whenever we want the
FTP layer to be able to see its effects.

bzr revid: odo@openerp.com-20111130120244-3m15sxdx1x5x1q1x
2011-11-30 13:02:44 +01:00
Vo Minh Thu 3aa47b7075 [FIX] document_ftp: tests: smash those tests with lots of commits.
(Otherwise changes happening on one cursor are not visible to the other one.)
Normally, as those yaml files commit(), they sould be inside demo data
instead of tests. But really we want to test a completely initialized
database, not being executed while the database is being initialized
(as the demo data are). This is just a matter of convention as the
tests are only executed when you also install demo data.

bzr revid: vmt@openerp.com-20111007091737-2dzocv2rgm2gfbi2
2011-10-07 11:17:37 +02:00
atp (Open ERP) 9a3416b95f [FIX]: Fix some problem in caldav and Minor Improvement.
bzr revid: atp@tinyerp.co.in-20101122104316-2veko2vubv3w9oml
2010-11-22 16:13:16 +05:30
atp (Open ERP) e2345c2cff [IMP]: Minor Improvement in document_ftp yaml.
bzr revid: atp@tinyerp.co.in-20101119051913-02kbtpc3862qh2zw
2010-11-19 10:49:13 +05:30
atp (Open ERP) 9d8d8110d7 [FIX]: Remove dir and File from yaml of document_ftp module.
bzr revid: atp@tinyerp.co.in-20101118152052-76bumjsycl9vk2o7
2010-11-18 20:50:52 +05:30
P. Christeas bc7871e2f9 doc ftp: some assertions, close ftp sessions at YML tests
bzr revid: p_christ@hol.gr-20101103112605-dq8jthkma78ccmcj
2010-11-03 13:26:05 +02:00
P. Christeas 9624ef2907 document: ACL setup, based on ir.rules
bzr revid: p_christ@hol.gr-20101027102428-pyanpwxzhta3zqy3
2010-10-27 13:24:28 +03:00
P. Christeas d1ee286bcb doc ftp: yaml tests for files/folders in wrong dirs.
bzr revid: p_christ@hol.gr-20101027102323-jtiwjjr52lht0dvr
2010-10-27 13:23:23 +03:00
P. Christeas 305b48abe3 Document, calendar: Patch code from trunk-xrg branch
several fixes that hadn't been backported or applied correctly.

bzr revid: p_christ@hol.gr-20101012112030-snnb4fjkya4ndqkm
2010-10-12 14:20:30 +03:00
P. Christeas 034a4166c9 doc ftp: unlink the YAML testing directories, too
bzr revid: p_christ@hol.gr-20101012103937-dtgq5tzthu9pdldz
2010-10-12 13:39:37 +03:00
P. Christeas 725bbee01d Doc ftp: Cleanup after yaml tests
bzr revid: p_christ@hol.gr-20101012103937-2jdkd7gkr1u86p48
2010-10-12 13:39:37 +03:00
Jay (OpenERP) 8234754761 [REF] Document_ftp
bzr revid: jvo@tinyerp.com-20100927170856-cm4lt3ykxdrldmzs
2010-09-27 22:38:56 +05:30
P. Christeas 8ed519b800 Doc ftp: Fix yaml test to follow expected behaviour
The document.directory has the "resource_find_all" flag, which now
defaults to True and means that a new doc in a resource folder will
have the *root* Documents as a parent. Fix the test to expect that
behaviour.

bzr revid: p_christ@hol.gr-20100828141852-pyvd24rh1rptqf5f
2010-08-28 17:18:52 +03:00
P. Christeas 6b70730393 Doc ftp: improve yaml tests, assert messages
bzr revid: p_christ@hol.gr-20100827073952-j8eg9p1dndviwknn
2010-08-27 10:39:52 +03:00
P. Christeas 10eea23109 Document tests: remove last, empty block
This just suppresses a warning.

bzr revid: p_christ@hol.gr-20100713205421-th0c0vuohsum3vj8
2010-07-13 23:54:21 +03:00
P. Christeas 0e8b07f490 Document ftp: have timeout at tests, skip if server is not available.
At trunk-xrg, the FTP daemon is only started *after* the db is loaded,
which means that it will not be available for tests on a server upgrade.
(still, tests can be performed through the base_module_record's importer)

Anyway, it is not wise to block the server startup if FTP doesn't
respond.

bzr revid: p_christ@hol.gr-20100713103016-33gu4o7yvkn7hmnd
2010-07-13 13:30:16 +03:00
P. Christeas 74b2dcfd80 Document ftp: Only test with 200 files, todo comment.
bzr revid: p_christ@hol.gr-20100709082356-p6xij5d22spqxrrx
2010-07-09 11:23:56 +03:00
P. Christeas 819eed88a2 Document FTP: tests for utf8 chars in document names.
bzr revid: p_christ@hol.gr-20100708225202-wbgmrf141j5g1501
2010-07-09 01:52:02 +03:00
P. Christeas 950058dae3 Document FTP: fix yaml tests.
bzr revid: p_christ@hol.gr-20100706121053-5a9z29ub8hrnpqo9
2010-07-06 15:10:53 +03:00
P. Christeas 45b7a3adc3 Document FTP: improve the tests
Now, a non-existing path will return 550, an exception.

bzr revid: p_christ@hol.gr-20100702215304-7l2pit3ceih3wvo9
2010-07-03 00:53:04 +03:00
P. Christeas 24fa87a6ae Document ftp: tests for dynamic folders.
We pass a few of them, but some functional issues are apparent.

bzr revid: p_christ@hol.gr-20100702081109-p6zl07eayj65rqs8
2010-07-02 11:11:09 +03:00
P. Christeas 35c932d76a Document FTP: write Yaml tests, have special helper module.
bzr revid: p_christ@hol.gr-20100701224249-fmble80t8nlg2azq
2010-07-02 01:42:49 +03:00
P. Christeas 0c0a6dcd7f Document FTP: one more test case, skeleton.
bzr revid: p_christ@hol.gr-20100629140134-38zbsp7pvw1svgfv
2010-06-29 17:01:34 +03:00
P. Christeas 4d99b09045 Document, FTP: text skeleton of trivial yaml tests.
bzr revid: p_christ@hol.gr-20100629140049-dowvybyjh6bncyrb
2010-06-29 17:00:49 +03:00
Ysa (Open ERP) bbf62704c4 [ADD] add yml file for document and document_ftp module.
bzr revid: ysa@tinyerp.co.in-20100423051445-pqs46sawemex2dda
2010-04-23 10:44:45 +05:30