cephfs admin: add version check for reef

Reef is a valid target for testing fsadmin.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2023-07-31 16:31:43 -04:00 committed by mergify[bot]
parent 1257d817db
commit db97336f62
1 changed files with 3 additions and 2 deletions

View File

@ -22,12 +22,13 @@ const (
cephOctopus = "octopus" cephOctopus = "octopus"
cephPacfic = "pacific" cephPacfic = "pacific"
cephQuincy = "quincy" cephQuincy = "quincy"
cephReef = "reef"
cephMain = "main" cephMain = "main"
) )
func init() { func init() {
switch vname := os.Getenv("CEPH_VERSION"); vname { switch vname := os.Getenv("CEPH_VERSION"); vname {
case cephNautilus, cephOctopus, cephPacfic, cephQuincy, cephMain: case cephNautilus, cephOctopus, cephPacfic, cephQuincy, cephReef, cephMain:
serverVersion = vname serverVersion = vname
} }
} }
@ -43,7 +44,7 @@ func TestServerSentinel(t *testing.T) {
// server version it expects and force us to update the tests if a new // server version it expects and force us to update the tests if a new
// version of ceph is added. // version of ceph is added.
if serverVersion == "" { if serverVersion == "" {
t.Fatalf("server must be nautilus, octopus, pacific, or quincy (do the tests need updating?)") t.Fatalf("server must be nautilus, octopus, pacific, quincy, or reef (do the tests need updating?)")
} }
} }