| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
construct pathnames.
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
rm_configdir() will be used to remove the test-config/ directory and
will be called in all teardown methods of Test classes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
rm_nodedirs purges the node directories. This function will be used
later to remove the test node directories.
|
| |
|
| |
|
| |
|
|
|
|
| |
Now the test is in a Test class with proper setup and teardown methods.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- 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).
|
|
|
|
|
|
| |
module.
These utility functions will be deleted from tests/events_test.py
|
|
|
|
| |
Now the test is in a Test class with proper setup and teardown methods.
|
|
|
|
| |
Now the test is in a Test class with proper setup and teardown methods.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
modules.
|
|
|
|
|
|
| |
`write' is set to 'True' by default.
If `write' is 'True' the generated config is written to the disk; otherwise it is returned.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
main() is called from __main__ now.
|
|
|
|
| |
ComboxDirMonitor. Fixed it now.
|
|
|
|
| |
__init__ method.
|
|
|
|
| |
of FileSystemEventHandler.
|
|
|
|
| |
This, I guess, completes the tests for the new housekeep method in the ComboxDirMonitor class.
|
|
|
|
|
|
|
| |
ComboxDirMonitor class.
The test for this method at tests/events_test.py only tests a part of
it.
|
|
|
|
| |
os.remove()ing it.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
- relegated 'version' to 0.0.0
- added `pickledb' to install_requires
|
|
|
|
|
|
| |
- Put package dependencies in a separate section.
- Added `argparse' and `pickledb' to list of dependencies.
- Rearranged the dependencies in alphabetically.
|
| |
|
|
|
|
| |
about files in the combox dir.
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
| |
the combox.
modified: combox/config.py
modified: tests/config_test.py
modified: tests/test-config/config.yaml
|
|
|
|
|
|
|
|
|
| |
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
|