Enabled tests for SEARCH-1476 and SEARCH-1455

This commit is contained in:
eliaporciani
2019-03-11 21:51:30 +01:00
parent 0f350c30de
commit c211776588
@@ -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