]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/snap-schedule: fix meta uniqueness contraint
authorJan Fajerski <jfajerski@suse.com>
Wed, 27 May 2020 14:02:03 +0000 (16:02 +0200)
committerJan Fajerski <jfajerski@suse.com>
Thu, 27 Aug 2020 13:55:46 +0000 (15:55 +0200)
commit0af14495ff3aa05e2f99d029a0f8ae5eb26d4477
tree91d3d1444acfbb02ea7e691c6c77e5253b3b6d4e
parent5b9c924b653019e073e4e7a3e63e65040801636d
pybind/mgr/snap-schedule: fix meta uniqueness contraint

This adds a simple test for the Schedule.store_schedule. This test
exposed a bug (couldn't add schedule on different paths with the same
repeat and start time). Bug is also fixed.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/pybind/mgr/snap_schedule/fs/schedule.py
src/pybind/mgr/snap_schedule/tests/conftest.py
src/pybind/mgr/snap_schedule/tests/fs/test_schedule.py