| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the the node monitor waits for all shards of the file,
which was modified on a remote computer, to arrive on this
computer, before it re-constructs the file into the respective
location in the combox directory.
- Tests for it is at
tests.events_test.TestEvents.test_NDM_onmodified method.
modified: combox/events.py
modified: tests/events_test.py
Part of this was done while listening to Avril's "Complicated" ; I
think this is the only modern Pop song which I like.
|
|
|
|
|
|
|
| |
this computer, its info is removed from the 'file_created' dictionary in the silo.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
| |
modified: tests/events_test.py
|
|
|
|
|
|
| |
tests.events_test.TestEvents.test_NDM_oncreated.
modified: tests/events_test.py
|
|
|
|
|
|
| |
tests.event_test.TestEvents.
modified: tests/events_test.py
|
|
|
|
|
|
| |
the silo is purged using the deldb method instead of doing a os.remove.
modfied: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the the node monitor waits for all shards of the file, which
was created on a remote computer, to arrive on this computer, before
it re-constructs the file into the respective location in the combox
directory.
- Tests for it is at tests.events_test.TestEvents.test_NDM_oncreate
method.
- The main test method, tests.events_test.TestEvents.test_NDM, was
disabled by renaming it to tests.events_test.TestEvents.test_NDM.
- Now the NodeDirMonitor requires passing the 'node monitor lock' when
creating an instance of it.
:~(
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
| |
`num_nodes' a value that represents the number of node directories.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
| |
modified: combox/cbox.py
modified: combox/events.py
modified: combox/silo.py
modified: tests/events_test.py
modified: tests/silo_test.py
|
|
|
|
|
|
|
| |
wrote tests for it too :~(
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
| |
a function.
modified: tests/events_test.py
modified: tests/file_test.py
modified: tests/utils.py
|
|
|
|
|
|
|
| |
As usual, wrote correponding tests for it; zarking TDD or whatever :~|
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
| |
test method.
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
| |
|
|
|
|
|
|
|
| |
As usual, wrote correponding tests for it :|
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
This method now checks if the `silo.db' exists before deleting it.
|
|
|
|
| |
EventsTest class.
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
|
| |
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.
- Utility functions were removed; these utility function were added to
tests/utils.py module (see previous commit).
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
| |
tests for it.
modified: combox/events.py
modified: tests/events_test.py
new file: tests/files/ipsum.txt
new file: tests/files/lorem.txt
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
directory.
|
|
|
|
| |
directory.
|
|
|
|
| |
directory properly are split properly to node dirs.
|
|
|