cephfs admin: add quincy to valid server editions

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2022-03-18 16:17:41 -04:00 committed by mergify[bot]
parent 0f29fdd510
commit ac1401b4e2

View File

@ -21,11 +21,12 @@ const (
cephNautilus = "nautilus" cephNautilus = "nautilus"
cephOctopus = "octopus" cephOctopus = "octopus"
cephPacfic = "pacific" cephPacfic = "pacific"
cephQuincy = "quincy"
) )
func init() { func init() {
switch vname := os.Getenv("CEPH_VERSION"); vname { switch vname := os.Getenv("CEPH_VERSION"); vname {
case cephNautilus, cephOctopus, cephPacfic: case cephNautilus, cephOctopus, cephPacfic, cephQuincy:
serverVersion = vname serverVersion = vname
} }
} }
@ -41,7 +42,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, or pacific (do the tests need updating?)") t.Fatalf("server must be nautilus, octopus, pacific, or quincy (do the tests need updating?)")
} }
} }