Changes between Initial Version and Version 1 of Ticket #1384, comment 3


Ignore:
Timestamp:
2011-07-19T03:40:58Z (13 years ago)
Author:
davidsarah
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1384, comment 3

    initial v1  
    1 We could, and probably should, test this by mocking {{{fileutil.get_disk_stats}}}, and checking that the server reports the correct space and accepts/refuses immutable shares correctly. ({{{fileutil.get_available_space}}} is implemented in terms of {{{file.get_disk_stats}}}, so it's only necessary to mock the latter.)
     1We could, and probably should, test this by mocking {{{fileutil.get_disk_stats}}}, and checking that the server reports the correct space and accepts/refuses immutable shares correctly. ({{{fileutil.get_available_space}}} is implemented in terms of {{{fileutil.get_disk_stats}}}, so it's only necessary to mock the latter.)