diff --git a/rbd/rbd_test.go b/rbd/rbd_test.go index 08c08ee..fb1932f 100644 --- a/rbd/rbd_test.go +++ b/rbd/rbd_test.go @@ -238,7 +238,7 @@ func TestGetImageNames(t *testing.T) { conn.Shutdown() } -func TestImageOpen(t *testing.T) { +func TestDeprecatedImageOpen(t *testing.T) { conn := radosConnect(t) poolname := GetUUID() @@ -256,6 +256,12 @@ func TestImageOpen(t *testing.T) { err = image.Open(123) assert.Error(t, err) + // open read-write + err = image.Open() + assert.NoError(t, err) + err = image.Close() + assert.NoError(t, err) + // open read-only err = image.Open(true) assert.NoError(t, err)