git.iko.soy/typeable/bloodhound
on master help sign in
No verification in ES < 1.4
commit3db652beb878eb03d25cf54b66384dada770dd24 authorMichael Xavier <michael@michaelxavier.net> dateFri 29 Jul 2016, 14:46 (10 years ago) parent0164535
1 file changed+5−1
tests/tests.hs+5−1
tests/tests.hs+5−1
@@ -87,6 +87,9 @@ es12 = ServerVersion 1 2 0
8787es11 :: ServerVersion
8888es11 = ServerVersion 1 1 0
8989
90+es14 :: ServerVersion
91+es14 = ServerVersion 1 4 0
92+
9093es15 :: ServerVersion
9194es15 = ServerVersion 1 5 0
9295
@@ -1495,7 +1498,8 @@ main = hspec $ do
14951498 Right [roundtrippedNoCompression] <- getSnapshotRepos (SnapshotRepoList (ExactRepo r1n :| []))
14961499 liftIO (roundtrippedNoCompression `shouldBe` toGSnapshotRepo noCompression)
14971500
1498− it "can verify existing repos" $ when' canSnapshot $ withTestEnv $ do
1501+ -- verify came around in 1.4 it seems
1502+ it "can verify existing repos" $ when' canSnapshot $ when' (atleast es14) $ withTestEnv $ do
14991503 let r1n = SnapshotRepoName "bloodhound-repo1"
15001504 withSnapshotRepo r1n $ \_ -> do
15011505 res <- verifySnapshotRepo r1n