| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
|
| |
This method now returns relative paths w. r. t all node directories. Before it used to return relative paths only w. r. t the first node directory.
Also updated the tests for it :~(
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
shards/directories in node directories.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
| |
a function.
modified: tests/events_test.py
modified: tests/file_test.py
modified: tests/utils.py
|
|
|
|
|
|
|
|
|
|
|
| |
It has a third argument (boolean) which tells whether `cb_path' (the
first argument) is a file or not.
Updated the test for node_path function + code wherever node_path was used.
modified: combox/events.py
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
| |
rm_path deletes a file or an empty directory.
updated the test for it too.
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
wrote test for it too.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
also wrote test for it.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
|
|
| |
- `file_content' is set to None by default
- If `file_content' is not None, hash of this is returned.
Updated the test for hash_file function.
modified: combox/file.py
modified: tests/file_test.py
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function takes the path to the file in the combox and returns the
path of its first shard in the node directory. If the the given
argument is a directory (inside the combox directory), the function
returns the corresponding path of the directory under the first node
directory.
Test for the function was also written.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Now the test is in a Test class with proper setup and teardown methods.
|
|
|
|
|
|
| |
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/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
|
|
|
|
| |
directories.
|
|
|
|
|
|
|
|
|
| |
Tests were accordingly modded and now use the test config.yaml to
split and write shards to dirs.
modified: combox/file.py
modified: tests/crypto_test.py
modified: tests/file_test.py
|
|
new file: tests/config_test.py
new file: tests/crypto_test.py
new file: tests/file_test.py
|