Add a test for connecting with the cluster name and user name

This commit is contained in:
Travis Nielsen 2015-06-16 15:55:12 -07:00
parent 2835eeac35
commit c7214b5694
1 changed files with 5 additions and 0 deletions

View File

@ -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()