Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | New combox.events.NodeDirMonitor class defined. | Siddharth Ravikumar | 2015-02-20 | 1 | -6/+58 |
| | | | | | | | | | | At the moment only the on_created method of this class is kinda fleshed out. The tests for this class is at tests.events_test.TestEvents.test_NDM modified: combox/events.py modified: tests/events_test.py | ||||
* | modded tests/events_test.TestEvents.teardown method | Siddharth Ravikumar | 2015-02-20 | 1 | -1/+3 |
| | | | | This method now checks if the `silo.db' exists before deleting it. | ||||
* | Refactored combox.file.cb_path to accept a file or a directory under a node ↵ | Siddharth Ravikumar | 2015-02-20 | 1 | -1/+8 |
| | | | | | | | | | | | directory. It returns the path of the respective file or directory in the combox directory. Also updated the test for this function at tests.file_test.TestFile.test_cbpath modified: combox/file.py modified: tests/file_test.py | ||||
* | combox/events.py: now the silo.db is purged after every test method in ↵ | Siddharth Ravikumar | 2015-02-19 | 1 | -7/+2 |
| | | | | EventsTest class. | ||||
* | tests/events_test.py: defined teardown method in TestEvents class. | Siddharth Ravikumar | 2015-02-19 | 1 | -1/+7 |
| | | | | | - The teardown method is invoked after the end of each test in the TestEvents class. - At the moment the teardown method just purges the node directories. | ||||
* | tests/utils.py: modded `rm_nodedirs' and defined new function 'purge_nodedirs' | Siddharth Ravikumar | 2015-02-19 | 1 | -2/+10 |
| | | | | | - rm_nodedirs now calls purge_nodedirs and then deletes the node directories. - purge_nodedirs function just purges the contents of the node directories. | ||||
* | Defined new function in combox.file.cb_path | Siddharth Ravikumar | 2015-02-19 | 1 | -0/+10 |
| | | | | | | | | | | This function, given the path of a file shard, returns the corresponding path of the file in the combox directory. The test for this function is at tests.file_test.TestFile.test_cbpath modified: combox/file.py modified: tests/file_test.py | ||||
* | tests/file_test.py: in test_relativepath method path.join is used to ↵ | Siddharth Ravikumar | 2015-02-19 | 1 | -3/+2 |
| | | | | construct pathnames. | ||||
* | modded combox.file.relative_path function. | Siddharth Ravikumar | 2015-02-19 | 1 | -3/+21 |
| | | | | | | | | | | Now the function is rigged up to return path relative to both combox directory and node directory. Corresponding test for this function is at tests.file_test module. modified: combox/file.py modified: tests/file_test.py | ||||
* | All the test classes now call rm_configdir() in their teardown method. | Siddharth Ravikumar | 2015-02-18 | 5 | -5/+11 |
| | | | | | | | | 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 | ||||
* | tests/utils.py: added rm_configdir function | Siddharth Ravikumar | 2015-02-18 | 1 | -0/+10 |
| | | | | | rm_configdir() will be used to remove the test-config/ directory and will be called in all teardown methods of Test classes. | ||||
* | All the tests now remove the node directories (tests/shard-dir-0 & ↵ | Siddharth Ravikumar | 2015-02-13 | 7 | -5/+12 |
| | | | | | | | | | | | | | 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/utils.py: added new function rm_nodedirs. | Siddharth Ravikumar | 2015-02-13 | 1 | -1/+12 |
| | | | | | rm_nodedirs purges the node directories. This function will be used later to remove the test node directories. | ||||
* | tests/crypto_test.py & tests/file_test.py - corrected typos in doctstrings. | Siddharth Ravikumar | 2015-02-13 | 2 | -2/+2 |
| | |||||
* | tests/config_test.py: config.yaml file is purged after all the tests. | Siddharth Ravikumar | 2015-02-13 | 1 | -5/+3 |
| | |||||
* | removed tests/test-config/config.yaml - no longer needed. | Siddharth Ravikumar | 2015-02-13 | 1 | -13/+0 |
| | |||||
* | tests/silo_test.py: re-wrote it. | Siddharth Ravikumar | 2015-02-13 | 1 | -45/+58 |
| | | | | Now the test is in a Test class with proper setup and teardown methods. | ||||
* | tests/events_test.py: now teardown purges the shards of TEST_FILE | Siddharth Ravikumar | 2015-02-13 | 1 | -0/+2 |
| | |||||
* | tests/events_test.py: corrected typo in docstring. | Siddharth Ravikumar | 2015-02-13 | 1 | -1/+1 |
| | |||||
* | tests/events_test.py: re-wrote it | Siddharth Ravikumar | 2015-02-12 | 1 | -237/+187 |
| | | | | | | | - Now the test is in a Test class with proper setup and teardown methods. - Utility functions were removed; these utility function were added to tests/utils.py module (see previous commit). | ||||
* | tests/utils.py: copied the utility functions in tests/events_test.py to this ↵ | Siddharth Ravikumar | 2015-02-12 | 1 | -2/+81 |
| | | | | | | module. These utility functions will be deleted from tests/events_test.py | ||||
* | tests/crypto_test.py: re-wrote it. | Siddharth Ravikumar | 2015-02-12 | 1 | -56/+68 |
| | | | | Now the test is in a Test class with proper setup and teardown methods. | ||||
* | tests/file_test.py: re-wrote it. | Siddharth Ravikumar | 2015-02-11 | 1 | -48/+54 |
| | | | | Now the test is in a Test class with proper setup and teardown methods. | ||||
* | tests/utils.py: removed extraneous import thingies. | Siddharth Ravikumar | 2015-02-09 | 1 | -1/+1 |
| | |||||
* | tests/config_test.py: re-wrote it. | Siddharth Ravikumar | 2015-02-09 | 1 | -24/+27 |
| | | | | | | | Now the test is in a Test class with proper setup and teardown methods. The teardown method has been purposely not fleshed out. It will be fleshed out after all the test modules have been re-written. | ||||
* | tests/utils.py: contains utility functions, etc that will be used in test ↵ | Siddharth Ravikumar | 2015-02-09 | 1 | -0/+57 |
| | | | | modules. | ||||
* | tests/events_test.py: wrote test for 'file modification' under test_housekeep() | Siddharth Ravikumar | 2015-01-28 | 1 | -0/+28 |
| | | | | This, I guess, completes the tests for the new housekeep method in the ComboxDirMonitor class. | ||||
* | combox/events.py - Wrote first version of housingkeep() method for ↵ | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+23 |
| | | | | | | | ComboxDirMonitor class. The test for this method at tests/events_test.py only tests a part of it. | ||||
* | tests/events_test.py: renamed test_CEH() -> test_CDM() | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+1 |
| | |||||
* | combox/events.py: now when files are -- created, moved, removed, modified -- ↵ | Siddharth Ravikumar | 2015-01-21 | 1 | -5/+27 |
| | | | | | | | their info is kept track in simple db file (using PickleDB). also updated tests/events_test.py to test if the newly added code to that updates the db works properly. | ||||
* | tests/events_test.py: re-arranged the import statements. | Siddharth Ravikumar | 2015-01-21 | 1 | -3/+5 |
| | |||||
* | new module: combox/silo.py | Siddharth Ravikumar | 2015-01-21 | 1 | -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 | ||||
* | combox/file.py: defined hash_file function. | Siddharth Ravikumar | 2015-01-21 | 1 | -1/+13 |
| | | | | | | hash_file function returns the SHA512 hash of the file's content. The test for the hash_file function is at tests/file_test.py | ||||
* | Renamed ComboxEventHandler (class) -> ComboxDirMonitor | Siddharth Ravikumar | 2015-01-21 | 1 | -4/+4 |
| | | | | | modified: combox/events.py modified: tests/events_test.py | ||||
* | combox config now contains a `combox_name` field which contains the name of ↵ | Siddharth Ravikumar | 2015-01-21 | 2 | -1/+2 |
| | | | | | | | | the combox. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml | ||||
* | now the config file also makes note of the 'silo' directory. | Siddharth Ravikumar | 2015-01-21 | 2 | -1/+2 |
| | | | | | | | | | silo directory is the location where the silo (silo.db) containing information about files in the combox directory is stored. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml | ||||
* | fleshed out the on_modified function in the ComboxEventHandler class + wrote ↵ | Siddharth Ravikumar | 2015-01-20 | 3 | -1/+90 |
| | | | | | | | | | tests for it. modified: combox/events.py modified: tests/events_test.py new file: tests/files/ipsum.txt new file: tests/files/lorem.txt | ||||
* | tests/events_test.py: fixed the path_deletedp function. | Siddharth Ravikumar | 2015-01-20 | 1 | -5/+4 |
| | |||||
* | updated copright year. | Siddharth Ravikumar | 2015-01-20 | 4 | -4/+4 |
| | | | | | | | | | | | | modified: combox/cbox.py modified: combox/config.py modified: combox/crypto.py modified: combox/events.py modified: combox/file.py modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py | ||||
* | tests/events_test.py: wrote test for file/directory rename under combox ↵ | Siddharth Ravikumar | 2015-01-16 | 1 | -0/+37 |
| | | | | directory. | ||||
* | tests/events_test.py: wrote test for file/directory deletion in combox ↵ | Siddharth Ravikumar | 2015-01-15 | 1 | -4/+35 |
| | | | | directory. | ||||
* | tests/events_test.py: wrote code to test whether files created in a nested ↵ | Siddharth Ravikumar | 2015-01-15 | 1 | -5/+17 |
| | | | | directory properly are split properly to node dirs. | ||||
* | added tests/events_test.py: tests the ComboxEventHandler thing. | Siddharth Ravikumar | 2015-01-14 | 1 | -0/+103 |
| | |||||
* | updated tests/test-config/config.yaml | Siddharth Ravikumar | 2015-01-14 | 1 | -3/+3 |
| | |||||
* | tests/crypto_test.py: added new test function to test split_and_encrypt and ↵ | Siddharth Ravikumar | 2015-01-13 | 1 | -0/+21 |
| | | | | decrypt_and_glue functions. | ||||
* | tests/crypto_test.py: uses new test file. | Siddharth Ravikumar | 2015-01-13 | 2 | -1/+1 |
| | |||||
* | tests/crypto_test.py: uses get_nodedirs function to fetch list of node ↵ | Siddharth Ravikumar | 2015-01-13 | 1 | -3/+5 |
| | | | | directories. | ||||
* | tests/file_test.py: uses get_nodedirs function to fetch list of node ↵ | Siddharth Ravikumar | 2015-01-13 | 1 | -1/+2 |
| | | | | directories. | ||||
* | tests/config_test.py: modified test config info. | Siddharth Ravikumar | 2015-01-13 | 1 | -8/+8 |
| | |||||
* | updated tests/test-config/config.yaml | Siddharth Ravikumar | 2015-01-13 | 1 | -4/+4 |
| |