Changeset 509

Show
Ignore:
Timestamp:
05/29/08 16:15:43 (7 months ago)
Author:
jmowery
Message:

initial addition of storage test list (expected result and some casses still not fully enumerated)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/test/storage.tests

    r506 r509  
     1Store Commands 
     2 
     3* add 
     4        - add a file 
     5        - add a directory 
     6        - add a directory recursively 
     7* remove 
     8        - remove a file 
     9        - remove a directory (always recursive) 
     10* check-in 
     11        - no-op if no modified files 
     12        - adds each modified file 
     13        - if directory is locked should raise an exception 
     14* lock 
     15        - lock a file 
     16        - lock a directory 
     17        - lock a directory recursively 
     18        - no-op to lock a locked file or directory 
     19        - raise an exception if attempting to lock a file in a locked directory 
     20* unlock 
     21        - unlock a file 
     22        - unlock a directory 
     23        - unlock a directory recursively 
     24        - no-op to unlock a file or directory that is not locked 
     25        - raise an exception if attempting to unlock a file in a locked directory 
     26* rollback 
     27        - rollback a file (default now) 
     28        - rollback a file to previous date 
     29        - rollback a directory (default now) 
     30        - rollback a directory to previous date 
     31        - rollback a directory recursively (default now) 
     32        - rollback a directory recursively to previous date 
     33* revisions 
     34        - list revisions of a file 
     35        - list revisions of a directory 
     36        - list revisions of a directory recursively 
     37        - list revisions of an uncontrolled file 
     38        - list revisions of an uncontrolled directory (recursive makes no differece here) 
     39* status 
     40        - list status of a file 
     41        - list status of a directory 
     42        - list status of a directory recursively 
     43        - list status of an uncontrolled file 
     44        - list status of an uncontrolled directory (recursive makes no differece here) 
     45* export 
     46        - export a directory 
     47        - raise an exception if destination exists 
     48        - raise an exception if source is not controlled 
     49 
     50Layer Class 
     51 
     52* creation 
     53        - create with a legitimate path 
     54        - create with a path to uncontrolled directory 
     55        - raise an exception if path is not a directory 
     56        - raise an exception if path does not exist 
     57* deletion 
     58        - asserts that the deleted layer is unmodified since last sync to disk 
     59* update 
     60        - no-op if unmodified or uncontrolled 
     61        - updates on disk data with all changes made 
     62        - the modified flag should be cleared after all calls 
     63* write 
     64        - no-op if uncontrolled 
     65        - write the current status to disk 
     66        - the modified flag should be cleared after all calls 
     67* rollback 
     68        - no-op if current directory is not controlled 
     69        - default: current directory, now, non-recursive 
     70        - rollback a file to now 
     71        - rollback a sub-directory to now 
     72        - rollback a sub-directory to now recursively 
     73* export 
     74        - no-op if current directory is not controlled 
     75        - raise an exception if destination does not exist 
     76        - export current directory (recursively) to destination directory 
     77* get_current 
     78        - get path of current applied version of a file 
     79        - get empty string for a directory or uncontrolled file 
     80* get_latest 
     81        - get path of latest checked-in version of a file 
     82        - get empty string for a directory or uncontrolled file 
     83* is_modified 
     84        - unconditionally false for a directory 
     85        - true for a file if its mtime is greater than its latest time 
     86* checkin 
     87        - recursively add new version for every file modified under the current directory or any of its sub-directories 
     88        - raise an exception if current directory is uncontrolled 
     89* add 
     90        - add a file 
     91        - add a directory 
     92        - add a file recursively when the current directory is uncontrolled 
     93        - add a directory recursively 
     94        - raise an exception if file does not exist 
     95        - raise an exception if file is locked 
     96        - raise an exception if current directory is locked 
     97* remove 
     98        - no-op if current directory is uncontrolled or file is uncontrolled 
     99        - remove a file 
     100        - remove a directory recursively 
     101        - raise an exception if file is locked 
     102        - raise an exception if current directory is locked 
     103* control 
     104        - no-op if current is already controlled 
     105        - create all control files for current directory 
     106* clean 
     107        - raise an exception if file is not controlled 
     108        - clean a file 
     109        - clean a directory 
     110        - clean a directory recursively 
     111        - no-op if file is applied at latest time 
     112* status_prefix 
     113        - return status prefix for a file 
     114* version_suffix 
     115        - return version time(s) for a controlled file or current directory 
     116        - return empty string for an uncontrolled file or a sub-directory 
     117* status 
     118* revisions 
     119* list_controlled_files 
     120* list_local_newer 
     121* list_controlled_dirs 
     122* list_controlled 
     123* lock 
     124* unlock 
     125* is_locked 
     126* add_node 
     127* list_nodes 
     128* get_node 
     129* append_log_messages 
     130* get_log_messages 
     131* clear_log 
     132* get_entry 
     133 
     134Node Class 
     135 
     136* creation 
     137* deletion 
     138* list_layers 
     139* check_updates 
     140* write 
     141* set_file_status 
     142* set_bool_status 
     143* update 
     144* classify