From c211776588ddc93b80547248da481490095274ee Mon Sep 17 00:00:00 2001 From: eliaporciani Date: Mon, 11 Mar 2019 21:51:30 +0100 Subject: [PATCH] Enabled tests for SEARCH-1476 and SEARCH-1455 --- .../e2e/insightEngine/sql/SelectStarTest.java | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java b/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java index 353bedf54..14f79a2b1 100644 --- a/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java +++ b/e2e-test/src/test/java/org/alfresco/service/search/e2e/insightEngine/sql/SelectStarTest.java @@ -300,14 +300,13 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where `expense:id`< 12 and TYPE = 'expense:expenseReport'", 1); testSqlQuery("select * from alfresco where `expense:id` = 50", 1); - // TODO: Update on fix: Search-1476 - // testSqlQuery("select * from alfresco where `expense:id` in (10, 30, 0)", 2); - // testSqlQuery("select * from alfresco where `expense:id` not in (5, 10) and TYPE = 'expense:expenseReport'", 4); + testSqlQuery("select * from alfresco where `expense:id` in (10, 30, 0)", 2); + testSqlQuery("select * from alfresco where `expense:id` not in (5, 10) and TYPE = 'expense:expenseReport'", 4); testSqlQuery("select * from alfresco where expense_id = 50 and TYPE = 'expense:expenseReport'", 1); } - @Test(priority = 6, groups = { TestGroup.INSIGHT_11 }, enabled = false) + @Test(priority = 6, groups = { TestGroup.INSIGHT_11 }) public void testIntegerFieldNullValues() throws Exception { testSqlQuery("select * from alfresco where `expense:id` = '*' and TYPE = 'expense:expenseReport'", 3); @@ -329,14 +328,13 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where `expense:EmpNo` >= 50", 1); testSqlQuery("select * from alfresco where `expense:EmpNo` = 1", 2); - // TODO: Update on fix: Search-1476 - // testSqlQuery("select * from alfresco where `expense:EmpNo` in (00001, 1, 50)", 2); - // testSqlQuery("select * from alfresco where `expense:EmpNo` not in (1, 50)", 2); + testSqlQuery("select * from alfresco where `expense:EmpNo` in (00001, 1, 50)", 2); + testSqlQuery("select * from alfresco where `expense:EmpNo` not in (1, 50) and TYPE = 'expense:expenseReport'", 2); testSqlQuery("select * from alfresco where expense_EmpNo = 56", 1); } - @Test(priority = 8, groups = { TestGroup.INSIGHT_11 }, enabled=false) + @Test(priority = 8, groups = { TestGroup.INSIGHT_11 }) public void testLongFieldNullValues() throws Exception { testSqlQuery("select * from alfresco where `expense:EmpNo` = '*' and TYPE = 'expense:expenseReport'", 3); //4 @@ -357,14 +355,13 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where `expense:ExchangeRate` <= 12 and TYPE = 'expense:expenseReport'", 2); testSqlQuery("select * from alfresco where `expense:ExchangeRate` >= 12.5", 1); - // TODO: Update on fix: Search-1476 - // testSqlQuery("select * from alfresco where `expense:ExchangeRate` in (12, 10)", 2); - // testSqlQuery("select * from alfresco where `expense:ExchangeRate` not in (12.5, 100) and TYPE = 'expense:expenseReport'", 4); + testSqlQuery("select * from alfresco where `expense:ExchangeRate` in (12, 10)", 2); + testSqlQuery("select * from alfresco where `expense:ExchangeRate` not in (12.5, 100) and TYPE = 'expense:expenseReport'", 4); testSqlQuery("select * from alfresco where expense_ExchangeRate = 12.5", 1); } - @Test(priority = 10, groups = { TestGroup.INSIGHT_11 }, enabled = false) + @Test(priority = 10, groups = { TestGroup.INSIGHT_11 }) public void testDoubleFieldNullValues() throws Exception { testSqlQuery("select * from alfresco where `expense:ExchangeRate` = '*' and TYPE = 'expense:expenseReport'", 3); //4 @@ -377,8 +374,7 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where `expense:ExchangeRate` is not null and TYPE = 'expense:expenseReport'", 3); } - // TODO: Enable the test when fixed: Bug: Search-1455 - @Test(priority = 11, groups = { TestGroup.INSIGHT_11 }, enabled = false) + @Test(priority = 11, groups = { TestGroup.INSIGHT_11 }) public void testFloatField() throws Exception { testSqlQuery("select * from alfresco where `expense:amount` >= '60.50'", 2); @@ -392,7 +388,7 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where expense_amount = 60", 1); } - @Test(priority = 12, groups = { TestGroup.INSIGHT_11 }, enabled=false) + @Test(priority = 12, groups = { TestGroup.INSIGHT_11 }) public void testFloatFieldNullValues() throws Exception { testSqlQuery("select * from alfresco where `expense:amount` >= '60.50'", 2); @@ -416,7 +412,7 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where expense_Approved = 'true' and `expense:Location` = 'Paris'", 0); } - @Test(priority = 14, groups = { TestGroup.INSIGHT_11 }, enabled = false) + @Test(priority = 14, groups = { TestGroup.INSIGHT_11 }) public void testBooleanFieldNullValues() throws Exception { testSqlQuery("select * from alfresco where `expense:Approved` = '*' and TYPE = 'expense:expenseReport'", 3); //4 @@ -466,7 +462,7 @@ public class SelectStarTest extends AbstractSearchServiceE2E testSqlQuery("select * from alfresco where `expense:ExpenseDate` is null and TYPE = 'expense:expenseReport'", 2); //4 testSqlQuery("select * from alfresco where `expense:ExpenseDate` is not null and TYPE = 'expense:expenseReport'", 3); //0 - } + } @Test(priority = 17, groups = { TestGroup.INSIGHT_11 }) public void testDateTimeField() throws Exception