mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 06:10:09 +00:00
530af708c9
Signed-off-by: Sven Anderson <sven@redhat.com>
26 lines
585 B
Go
26 lines
585 B
Go
//go:build nautilus || octopus || pacific || quincy || reef
|
|
|
|
package admin
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFSQuiesce(t *testing.T) {
|
|
fsa := getFSAdmin(t)
|
|
volume := "cephfs"
|
|
group := NoGroup
|
|
fsa.CreateSubVolume(volume, group, "quiesceMe", nil)
|
|
defer func() {
|
|
err := fsa.RemoveSubVolume(volume, group, "quiesceMe")
|
|
assert.NoError(t, err)
|
|
}()
|
|
ret, err := fsa.FSQuiesce(volume, group, []string{"quiesceMe"}, "", nil)
|
|
assert.Nil(t, ret)
|
|
var notImplemented NotImplementedError
|
|
assert.True(t, errors.As(err, ¬Implemented))
|
|
}
|