rbd: add simple test for Image.GetAccessTimestamp()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-06-17 16:27:07 +02:00 committed by John Mulligan
parent 0d9f802732
commit 048ed11e63
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,9 @@ func TestImagePropertiesNautilus(t *testing.T) {
_, err = img.GetCreateTimestamp()
assert.NoError(t, err)
_, err = img.GetAccessTimestamp()
assert.NoError(t, err)
}
func TestClosedImageNautilus(t *testing.T) {
@ -64,4 +67,7 @@ func TestClosedImageNautilus(t *testing.T) {
_, err = image.GetCreateTimestamp()
assert.Error(t, err)
_, err = image.GetAccessTimestamp()
assert.Error(t, err)
}