[tahoe-lafs-trac-stream] [tahoe-lafs] #1688: ftpd returns 0 for all timestamps
tahoe-lafs
trac at tahoe-lafs.org
Fri Mar 30 22:10:50 UTC 2012
#1688: ftpd returns 0 for all timestamps
-------------------------------+-----------------------
Reporter: zooko | Owner: lebek
Type: defect | Status: new
Priority: minor | Milestone: undecided
Component: code-frontend | Version: 1.9.1
Resolution: | Keywords: ftpd
Launchpad Bug: |
-------------------------------+-----------------------
Changes (by davidsarah):
* keywords: ftpd review-needed => ftpd
* owner: davidsarah => lebek
* status: assigned => new
Comment:
These look excellent, thanks. Comments:
* Instead of the constant 626644800 in {{{expected_root}}}, use a class
attribute, e.g. {{{self.FALL_OF_THE_BERLIN_WALL}}}.
* "{{{if name not in children: raise NoSuchChildError(name)}}}" in
{{{_modifier}}} is not covered, and not needed (it's ok to let it raise a
{{{KeyError}}} on {{{children[name]}}}).
* The case where {{{"linkmotime"}}} is in the metadata is not tested. (I
saw this by looking at the test coverage [*] and seeing that the relevant
line "{{{value = metadata["tahoe"]["linkmotime"]}}}" of
[source:src/allmydata/frontends/ftpd.py] was not run. Of course many other
lines of {{{ftpd.py}}} are also not tested yet, but this is a line added
by the fix.)
* It is not tested that a file added via FTP (rather than by the internal
Python API) is created with the right timestamp. This ticket can be closed
without that test as long as it is documented on #512 that it is needed.
* Add a comment above the relevant line in {{{expected_root}}} saying that
the timestamp is expected to be 0 if no timestamp metadata is present.
[*] wiki:HowToWriteTests , which is currently being written, will describe
how to generate test coverage reports.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1688#comment:8>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list