This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local cache delete issue and add more unit tests
Signed-off-by: Sihan Wang <wsihan@vmware.com>
- Loading branch information
1 parent
ee8f0df
commit 477182f
Showing
5 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import testtools | ||
|
||
from column.api import backend | ||
|
||
|
||
class TestLocalMemoryCache(testtools.TestCase): | ||
|
||
def setUp(self): | ||
super(TestLocalMemoryCache, self).setUp() | ||
self.store = backend.get_store() | ||
|
||
def test_add_runs(self): | ||
self.assertTrue(self.store.create_run('key1', {'id': '1'})) | ||
self.assertEqual({'id': '1'}, self.store.get_run('key1')) | ||
|
||
def test_update_run(self): | ||
self.store.create_run('key5', {'id': '5'}) | ||
self.store.update_run('key5', {'id': '55'}) | ||
self.assertEqual({'id': '55'}, self.store.get_run('key5')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- shell: sleep 10 | ||
- hosts: all | ||
tasks: | ||
- shell: echo "hello world" |