-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
Problems
- In SuppressSqlExceptionsTest shouldThrowExceptionOnInsert_ColumnSizeExceeded & shouldThrowExceptionOnUpdate fails on MariaDB 10.0
- SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded fails on HistoryLevel == NONE
- ManagementServiceTest fails on DB2
Root Causes
- Maria DB 10.0 does not throw an exception when the column size is exceeded; instead, the string is truncated at 255 characters
- The test is designed to be executed with a minimum history level of HISTORY_LEVEL_ACTIVITY
- The alias RES is missing when selecting columns
Solutions
- Add test annotation @RequiredDatabase(excludes = DbSqlSessionFactory.MARIADB)
- Add test annotation @RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_ACTIVITY)
- Add the RES alias when selecting columns
This is the controller panel for Smart Panels app
[CAM-12466] Failing tests due to suppressing sql errors
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Description |
Original:
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0
# {{ManagementServiceTest}} fails on DB2 |
New:
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on {{HistoryLevel == NONE}} # {{ManagementServiceTest}} fails on DB2 |
Mentioned Roles |
Mentioned Groups |
Description |
Original:
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on {{HistoryLevel == NONE}} # {{ManagementServiceTest}} fails on DB2 |
New:
h3. Problems
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0 # {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on {{HistoryLevel == NONE}} # {{ManagementServiceTest}} fails on DB2 h3. Root Causes # Maria DB 10.0 does not throw an exception when the column size is exceeded; instead, the string is truncated at 255 characters # The test is designed to be executed with a minimum history level of {{HISTORY_LEVEL_ACTIVITY}}; either, change the test case to work with runtime data or add {{}} # The alias {{RES}} is missing when selecting columns h3. Solutions # Add test annotation {{@RequiredDatabase(excludes = DbSqlSessionFactory.MARIADB)}} # Either change the test to work on runtime data or add test annotation {{@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_ACTIVITY)}} # Add the {{RES}} alias when selecting columns |
Mentioned Roles |
Mentioned Groups |
Description |
Original:
h3. Problems
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0 # {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on {{HistoryLevel == NONE}} # {{ManagementServiceTest}} fails on DB2 h3. Root Causes # Maria DB 10.0 does not throw an exception when the column size is exceeded; instead, the string is truncated at 255 characters # The test is designed to be executed with a minimum history level of {{HISTORY_LEVEL_ACTIVITY}}; either, change the test case to work with runtime data or add {{}} # The alias {{RES}} is missing when selecting columns h3. Solutions # Add test annotation {{@RequiredDatabase(excludes = DbSqlSessionFactory.MARIADB)}} # Either change the test to work on runtime data or add test annotation {{@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_ACTIVITY)}} # Add the {{RES}} alias when selecting columns |
New:
h3. Problems
# {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on MariaDB 10.0 # {{SuppressSqlExceptionsTest#shouldThrowExceptionOnInsert_ColumnSizeExceeded}} fails on {{HistoryLevel == NONE}} # {{ManagementServiceTest}} fails on DB2 h3. Root Causes # Maria DB 10.0 does not throw an exception when the column size is exceeded; instead, the string is truncated at 255 characters # The test is designed to be executed with a minimum history level of {{HISTORY_LEVEL_ACTIVITY}} # The alias {{RES}} is missing when selecting columns h3. Solutions # Add test annotation {{@RequiredDatabase(excludes = DbSqlSessionFactory.MARIADB)}} # Either change the test to work on runtime data or add test annotation {{@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_ACTIVITY)}} # Add the {{RES}} alias when selecting columns |
Mentioned Roles |
Mentioned Groups |