Skip to content

Commit

Permalink
t/kvs: Add coverage of missing put transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Jan 18, 2019
1 parent c5360bb commit 5b2df40
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions t/python/t0005-kvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,22 @@ def test_walk(self):
for r, ds, fs in walk_gen:
pass

def test_put_mkdir(self):
flux.kvs.put_mkdir(self.f, "txn_mkdir")
flux.kvs.commit(self.f)
self.assertTrue(flux.kvs.exists(self.f, "txn_mkdir"))

def test_put_unlink(self):
flux.kvs.put(self.f, "txn_unlink", 1)
flux.kvs.commit(self.f)
flux.kvs.put_unlink(self.f, "txn_unlink")
flux.kvs.commit(self.f)
self.assertFalse(flux.kvs.exists(self.f, "txn_unlink"))

def test_put_symlink(self):
flux.kvs.put_symlink(self.f, "txn_symlink", "txn_target")
flux.kvs.commit(self.f)
self.assertFalse(flux.kvs.exists(self.f, "txn_symlink"))

if __name__ == "__main__":
if rerun_under_flux(__flux_size()):
Expand Down

0 comments on commit 5b2df40

Please sign in to comment.