summaryrefslogtreecommitdiff
path: root/taskflow/tests/unit/persistence/test_dir_persistence.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated things for 2.0 releaseJoshua Harlow2016-05-101-2/+2
| | | | Change-Id: Id9adbc50bd51adc77ce88f698ad0ea2ee63fc5e2
* Use a lru cache to limit the size of the internal file cacheJoshua Harlow2015-06-101-9/+52
| | | | | | | | | | | | Instead of having an unbounded internal file cache which will eventually absorb all memory of the running/containing python process have the size of that cache be limited by an optionally provided size (and have eviction be based on how recent a cached entry was used). Fixes bug 1458248 Change-Id: I5e59efc4edd51b05cfb1e67d3e7014e378e352aa
* Allow connection string to be just backend nameIvan A. Melnikov2014-03-051-14/+11
| | | | | | | | | | Having to specify backend connection as URI is somewhat confusing when other parts of uri (like host or path) are not used. This commit allows to specify just backend name as connection string. Partially implements blueprint persistence-uris Change-Id: Ic38d41d4f24dcd596cbdff33de78d1a137fb2e8f
* Remove extraneous vim configuration commentsyangxurong2014-02-141-2/+0
| | | | | | | | | Remove line containing comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4 Change-Id: I7581cc88b8de433d5609ed06c6570b0b45c13573 Closes-Bug:#1229324
* Test fetching backends via entry pointsIvan A. Melnikov2014-01-291-0/+19
| | | | | | | | Default way of getting backend is expected to be via directly or indirectly using taskflow.persistence.backend.fetch(), so we should test that all our backends can be fetched correctly. Change-Id: I5ce41510c86598d449ee15da8d1279d3d35c9524
* Add a directory/filesystem based persistence layerJoshua Harlow2013-09-211-0/+47
Add a nice non-memory-based but also non-db based persistence layer which is another good example of how a persistence layer can be created (and used). Example directory structure: /books /books/247c5311-d4ec-461b-9e76-51830d6a75b2 /books/247c5311-d4ec-461b-9e76-51830d6a75b2/metadata /books/247c5311-d4ec-461b-9e76-51830d6a75b2/flows /books/247c5311-d4ec-461b-9e76-51830d6a75b2/flows/25f18828-a067-411e-9035-8217536f925d /flows /flows/25f18828-a067-411e-9035-8217536f925d /flows/25f18828-a067-411e-9035-8217536f925d/metadata /flows/25f18828-a067-411e-9035-8217536f925d/tasks /flows/25f18828-a067-411e-9035-8217536f925d/tasks/a352fa2e-82cf-4c37-89ae-3aa10dbf1437 /tasks /tasks/a352fa2e-82cf-4c37-89ae-3aa10dbf1437 Change-Id: I63aaf56497187e21469bc500a49dd02de0c67f29