cephfs/admin: Add 'main' to expected Ceph versions

When run against Ceph built out of 'main' development branch our
test-suite fails to find corresponding code name. Therefore we
include 'main' also to the expected list of versions.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2022-08-02 15:23:12 +05:30 committed by mergify[bot]
parent f6c3f5e2d9
commit 31b208ff55

View File

@ -22,11 +22,12 @@ const (
cephOctopus = "octopus" cephOctopus = "octopus"
cephPacfic = "pacific" cephPacfic = "pacific"
cephQuincy = "quincy" cephQuincy = "quincy"
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: case cephNautilus, cephOctopus, cephPacfic, cephQuincy, cephMain:
serverVersion = vname serverVersion = vname
} }
} }