rbd: add simple test for Image.GetModifyTimestamp()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-17 16:35:05 +02:00 committed by John Mulligan
parent 491f7827a8
commit d4440eb8c2

View File

@ -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)
}