From c7214b5694d4aa238bcc05a0d3ac676840388b88 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Tue, 16 Jun 2015 15:55:12 -0700 Subject: [PATCH] Add a test for connecting with the cluster name and user name --- rados/rados_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rados/rados_test.go b/rados/rados_test.go index a31c187..2e9e652 100644 --- a/rados/rados_test.go +++ b/rados/rados_test.go @@ -466,6 +466,11 @@ func TestNewConnWithUser(t *testing.T) { assert.Equal(t, err, nil) } +func TestNewConnWithClusterAndUser(t *testing.T) { + _, err := rados.NewConnWithClusterAndUser("ceph", "admin") + assert.Equal(t, err, nil) +} + func TestReadWriteXattr(t *testing.T) { conn, _ := rados.NewConn() conn.ReadDefaultConfigFile()