rbd: update test case for "old" deprecated open
Rename test case to mark the "old" deprecated open func as such.
This also adds a missing bit of coverage to the test.
@@ -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)
