From db6c8c6db6c693317da28601d9fdb8926c109b08 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Mon, 16 Oct 2017 14:55:38 +0300 Subject: [PATCH] [ugc] disable ugc for booking --- data/ugc_types.csv | 1 + indexer/indexer_tests/ugc_types_test.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/data/ugc_types.csv b/data/ugc_types.csv index b0b89a8cc8..1035ad42aa 100644 --- a/data/ugc_types.csv +++ b/data/ugc_types.csv @@ -146,6 +146,7 @@ shop tattoo,1,1,0,quality service value_for_money shop tyres,1,1,1,assortment service value_for_money shop variety_store,1,1,1,assortment service value_for_money shop wine,1,1,1,assortment service value_for_money +sponsored booking,0,0,0, sport basketball,1,1,0,equipment service value_for_money sport multi,1,1,0,equipment service value_for_money sport soccer,1,1,0,equipment service value_for_money diff --git a/indexer/indexer_tests/ugc_types_test.cpp b/indexer/indexer_tests/ugc_types_test.cpp index a1dfb13290..d1016631ec 100644 --- a/indexer/indexer_tests/ugc_types_test.cpp +++ b/indexer/indexer_tests/ugc_types_test.cpp @@ -43,4 +43,13 @@ UNIT_TEST(UgcTypes_Full) holder.Assign(c.GetTypeByPath({"traffic_calming", "bump"})); TEST(!UGC::IsUGCAvailable(holder), ()); } + { + holder.Assign(c.GetTypeByPath({"sponsored", "booking"})); + TEST(!UGC::IsUGCAvailable(holder), ()); + TEST(!UGC::IsRatingAvailable(holder), ()); + TEST(!UGC::IsReviewsAvailable(holder), ()); + TEST(!UGC::IsDetailsAvailable(holder), ()); + ftraits::UGCRatingCategories expected = {}; + TEST_EQUAL(UGC::GetCategories(holder), expected, ()); + } }