go-ceph/cephfs/admin/fs_quiesce_unsupported_test.go
Sven Anderson 530af708c9 go-ceph: promote mature APIs to stable
Signed-off-by: Sven Anderson <sven@redhat.com>
2024-08-13 09:00:47 +00:00

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, &notImplemented))
}