git.iko.soy/typeable/bloodhound
on master help sign in
add test for setting mapping fields limit
commitf5129507d9621a7538d5e3f0becef4804363f90e authorAndrew Martin <andrew.thaddeus@gmail.com> dateWed 23 Aug 2017, 14:58 (9 years ago) parenta7deed6
1 file changed+13
tests/V5/tests.hs+13
tests/V5/tests.hs+13
@@ -1591,6 +1591,19 @@ main = hspec $ do
15911591 (IndexSettings (ShardCount 1) (ReplicaCount 0))
15921592 (NE.toList updates))
15931593
1594+ it "allows total fields to be set" $ when' (atleast es50) $ withTestEnv $ do
1595+ _ <- deleteExampleIndex
1596+ _ <- createExampleIndex
1597+ let updates = MappingTotalFieldsLimit 2500 :| []
1598+ updateResp <- updateIndexSettings updates testIndex
1599+ liftIO $ validateStatus updateResp 200
1600+ getResp <- getIndexSettings testIndex
1601+ liftIO $
1602+ getResp `shouldBe` Right (IndexSettingsSummary
1603+ testIndex
1604+ (IndexSettings (ShardCount 1) (ReplicaCount 0))
1605+ (NE.toList updates))
1606+
15941607 describe "Index Optimization" $ do
15951608 it "returns a successful response upon completion" $ withTestEnv $ do
15961609 _ <- createExampleIndex