mirror of
https://github.com/ceph/go-ceph
synced 2024-12-30 18:22:07 +00:00
rbd: add simple test for Image.GetModifyTimestamp()
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
491f7827a8
commit
d4440eb8c2
@ -36,6 +36,9 @@ func TestImagePropertiesNautilus(t *testing.T) {
|
||||
|
||||
_, err = img.GetAccessTimestamp()
|
||||
assert.NoError(t, err)
|
||||
|
||||
_, err = img.GetModifyTimestamp()
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestClosedImageNautilus(t *testing.T) {
|
||||
@ -70,4 +73,7 @@ func TestClosedImageNautilus(t *testing.T) {
|
||||
|
||||
_, err = image.GetAccessTimestamp()
|
||||
assert.Error(t, err)
|
||||
|
||||
_, err = image.GetModifyTimestamp()
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user