mirror of https://github.com/ceph/go-ceph
rbd: add simple test for Image.GetAccessTimestamp()
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
0d9f802732
commit
048ed11e63
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue