summaryrefslogtreecommitdiffstats
path: root/tests/silo_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Introduced `node_store_moved_info' method in combox.silo.ComboxSilo class.Siddharth Ravikumar2015-09-121-1/+13
| | | | | | | | This method allows us to track old path and new path of the file which is being renamed/moved. modified: combox/silo.py modified: tests/silo_test.py
* combox.silo.ComboxSilo.node_set: added an optional parameter called `num'.Siddharth Ravikumar2015-04-291-0/+15
| | | | | | | - Updated tests as usual. modified: combox/silo.py modified: tests/silo_test.py
* new method combox.silo.ComboxSilo.node_remSiddharth Ravikumar2015-04-081-0/+15
| | | | | | | | | | | The method removes information about a file in the category `type_' where `type_' can be 'file_created', 'file_modified', 'file_removed', 'file_moved'. Also wrote tests for it :~( modified: combox/silo.py modified: tests/silo_test.py
* renamed dict names in combox.silo.ComboxSilo from shard_* -> file_*Siddharth Ravikumar2015-04-011-51/+51
| | | | | | | | The main zarking reason for the name is that we might also want to track directories apart from shards in the node directories. modified: combox/silo.py modified: tests/silo_test.py
* refactored the way locks work in combox.siloComboxSilo.Siddharth Ravikumar2015-04-011-9/+11
| | | | | | | | modified: combox/cbox.py modified: combox/events.py modified: combox/silo.py modified: tests/events_test.py modified: tests/silo_test.py
* new methods in combox.silo.ComboxSilo -- node_get, node_set. noddicts.Siddharth Ravikumar2015-03-311-0/+110
| | | | | | | | These methods will be used to manage the dictionaries in the db related to the zarking shards. modified: combox/silo.py modified: tests/silo_test.py
* updated combox.silo.ComboxSilo.stale method - added new arg fhashSiddharth Ravikumar2015-02-261-1/+2
| | | | | | | | - the arg `fhash' is set to None by default. - if `fhash' is not None, it is considered as file's current hash. modified: combox/silo.py modified: tests/silo_test.py
* All the test classes now call rm_configdir() in their teardown method.Siddharth Ravikumar2015-02-181-1/+2
| | | | | | | | modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py modified: tests/silo_test.py
* All the tests now remove the node directories (tests/shard-dir-0 & ↵Siddharth Ravikumar2015-02-131-1/+2
| | | | | | | | | | | | | tests/shard-dir-1) in the teardown method. modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py modified: tests/silo_test.py deleted: tests/shard-dir-0/.foo deleted: tests/shard-dir-1/.foo
* tests/silo_test.py: re-wrote it.Siddharth Ravikumar2015-02-131-45/+58
| | | | Now the test is in a Test class with proper setup and teardown methods.
* new module: combox/silo.pySiddharth Ravikumar2015-01-211-0/+87
- Contains the ComboxSilo class which provides an interface to access the db that stores information about files in the combox directory. Tests for this module is at tests/silo_test.py