Skip to content

Commit

Permalink
cephfs admin: add version check for reef
Browse files Browse the repository at this point in the history
Reef is a valid target for testing fsadmin.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn authored and mergify[bot] committed Aug 2, 2023
1 parent 1257d81 commit db97336
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cephfs/admin/fsadmin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ const (
cephOctopus = "octopus"
cephPacfic = "pacific"
cephQuincy = "quincy"
cephReef = "reef"
cephMain = "main"
)

func init() {
switch vname := os.Getenv("CEPH_VERSION"); vname {
case cephNautilus, cephOctopus, cephPacfic, cephQuincy, cephMain:
case cephNautilus, cephOctopus, cephPacfic, cephQuincy, cephReef, cephMain:
serverVersion = vname
}
}
Expand All @@ -43,7 +44,7 @@ func TestServerSentinel(t *testing.T) {
// server version it expects and force us to update the tests if a new
// version of ceph is added.
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?)")
}
}

Expand Down

0 comments on commit db97336

Please sign in to comment.