go-ceph/rbd/features_nautilus_test.go
Niels de Vos d6a88f65b7 rbd/features: add FeatureSet for mapping features between bits and names
Applications will mostly want to show names of features to their users,
and not just a few bits. With the FeatureSet functions it becomes simple
for applications to map the name of a feature to bits, and the other way
around

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-02-24 16:28:03 -05:00

16 lines
259 B
Go

// +build !luminous,!mimic
package rbd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetFeaturesInNautilus(t *testing.T) {
f, ok := featureNameToBit[FeatureNameMigrating]
assert.True(t, ok)
assert.Equal(t, f, FeatureMigrating)
}