Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | combox/crypto.py: corrected typo in docstring of decrypt_and_glue function. | Siddharth Ravikumar | 2015-02-19 | 1 | -1/+1 |
| | |||||
* | Defined new function in combox.file.cb_path | Siddharth Ravikumar | 2015-02-19 | 2 | -0/+20 |
| | | | | | | | | | | 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 | 2 | -7/+34 |
| | | | | | | | | | | 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 | ||||
* | updated .gitignore | Siddharth Ravikumar | 2015-02-18 | 1 | -5/+1 |
| | |||||
* | 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. | ||||
* | combox/config.py: added a new arg `write' (boolean) to cb_config function. | Siddharth Ravikumar | 2015-02-09 | 1 | -5/+8 |
| | | | | | | `write' is set to 'True' by default. If `write' is 'True' the generated config is written to the disk; otherwise it is returned. | ||||
* | [bugfix]: combox/config.py - when empty string is given for 'silo_dir'; it ↵ | Siddharth Ravikumar | 2015-02-08 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | sets the dir to PWD, this was not intended. This was fixed. When empty string is given for 'silo_dir', the intended default directory was the combox's config directory. The input to 'silo_dir' was directly given to path.abspath() The path.abspath() function, when an empty string is given returns the PWD. That's where the bug was! So, now the 'silo_dir' input is read to a local variable `silo_dir'. If the local variable `silo_dir' is empty, the combox config directory is assigned; else, the given directory is assigned. | ||||
* | setup.py: added 'console_scripts' under 'entry_points' | Siddharth Ravikumar | 2015-02-05 | 1 | -0/+3 |
| | | | | | | | | | | | Now, whenever combox is installed using 'python setup.py install' command, the setup script automatically puts an executed script in the respective bin/ directory in Unix like operating systems. According to the setuptools documentation[1], on Windows, it should create a respective .exe file. This is yet to be tested. [1]: https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation | ||||
* | combox/events.py: Under ComboxDIrMonitor, set logging's level to INFO. | Siddharth Ravikumar | 2015-02-05 | 1 | -0/+4 |
| | | | | | | Reason why this was done: Every time a file is renamed/deleted/modified/created in the combox directory, a message about this is puked out to stdout. | ||||
* | combox/cbox.py: put the code under __main__ into a new function called 'main()' | Siddharth Ravikumar | 2015-02-05 | 1 | -2/+8 |
| | | | | main() is called from __main__ now. | ||||
* | [bugfix] combox/cbox.py: Forgot to rename ComboxEventHandler -> ↵ | Siddharth Ravikumar | 2015-02-05 | 1 | -2/+2 |
| | | | | ComboxDirMonitor. Fixed it now. | ||||
* | combox/events.py: In ComboxDirMonitor class, housekeep() is called from the ↵ | Siddharth Ravikumar | 2015-01-28 | 1 | -0/+2 |
| | | | | __init__ method. | ||||
* | combox/events.py: ComboxDirMonitor now inherits LoggingEventHandler instead ↵ | Siddharth Ravikumar | 2015-01-28 | 1 | -19/+4 |
| | | | | of FileSystemEventHandler. | ||||
* | 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 | 2 | -1/+75 |
| | | | | | | | ComboxDirMonitor class. The test for this method at tests/events_test.py only tests a part of it. | ||||
* | [bug fix] combox/file.py: rm_shards function checks if a shard exists before ↵ | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+7 |
| | | | | os.remove()ing it. | ||||
* | tests/events_test.py: renamed test_CEH() -> test_CDM() | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+1 |
| | |||||
* | combox/silo.py: new method `keys()' in ComboxSilo class. | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+7 |
| | |||||
* | README.md: added `-s' option to nosetests command. | Siddharth Ravikumar | 2015-01-27 | 1 | -1/+1 |
| | |||||
* | README.md: updated combox description. | Siddharth Ravikumar | 2015-01-27 | 1 | -2/+2 |
| | |||||
* | combox/events.py: now when files are -- created, moved, removed, modified -- ↵ | Siddharth Ravikumar | 2015-01-21 | 2 | -11/+38 |
| | | | | | | | 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 |
| | |||||
* | updated README.md - modded license section | Siddharth Ravikumar | 2015-01-21 | 1 | -5/+5 |
| | |||||
* | new module: combox/silo.py | Siddharth Ravikumar | 2015-01-21 | 2 | -0/+186 |
| | | | | | | | - 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 | ||||
* | updated setup.py | Siddharth Ravikumar | 2015-01-21 | 1 | -2/+3 |
| | | | | | - relegated 'version' to 0.0.0 - added `pickledb' to install_requires | ||||
* | updated README.md | Siddharth Ravikumar | 2015-01-21 | 1 | -2/+7 |
| | | | | | | - Put package dependencies in a separate section. - Added `argparse' and `pickledb' to list of dependencies. - Rearranged the dependencies in alphabetically. | ||||
* | updated .gitignore | Siddharth Ravikumar | 2015-01-21 | 1 | -1/+2 |
| | |||||
* | deleted: etc/storage.yaml - Going to be using PickleDB for storing info ↵ | Siddharth Ravikumar | 2015-01-21 | 1 | -13/+0 |
| | | | | about files in the combox dir. | ||||
* | combox/file.py: defined hash_file function. | Siddharth Ravikumar | 2015-01-21 | 2 | -1/+26 |
| | | | | | | 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 | ||||
* | README.md: add license information for combox logo. | Siddharth Ravikumar | 2015-01-21 | 1 | -3/+8 |
| | |||||
* | Renamed ComboxEventHandler (class) -> ComboxDirMonitor | Siddharth Ravikumar | 2015-01-21 | 2 | -9/+9 |
| | | | | | modified: combox/events.py modified: tests/events_test.py |