@@ -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