mirror of https://github.com/ceph/go-ceph
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. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
674d0e4041
commit
0239a8469d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue