HHH-18296 skip two fragile and not-extremely-useful tests on Postgres

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-06-26 13:52:39 +02:00 committed by Yoann Rodière
parent ad55fd0010
commit 3708e56aa2
2 changed files with 8 additions and 0 deletions

View File

@ -21,9 +21,11 @@ import jakarta.persistence.Table;
import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Environment; import org.hibernate.cfg.Environment;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.jpa.boot.spi.Bootstrap; import org.hibernate.jpa.boot.spi.Bootstrap;
import org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder; import org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder;
import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.hibernate.tool.schema.spi.CommandAcceptanceException; import org.hibernate.tool.schema.spi.CommandAcceptanceException;
import org.hibernate.tool.schema.spi.SchemaManagementException; import org.hibernate.tool.schema.spi.SchemaManagementException;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@ -72,6 +74,8 @@ public class SchemaDatabaseFileGenerationFailureTest {
@Test @Test
@TestForIssue(jiraKey = "HHH-12192") @TestForIssue(jiraKey = "HHH-12192")
@SkipForDialect(dialectClass = PostgreSQLDialect.class, matchSubTypes = true,
reason = "on postgres we send 'set client_min_messages = WARNING'")
public void testErrorMessageContainsTheFailingDDLCommand() { public void testErrorMessageContainsTheFailingDDLCommand() {
try { try {
entityManagerFactoryBuilder.generateSchema(); entityManagerFactoryBuilder.generateSchema();

View File

@ -19,9 +19,11 @@ import jakarta.persistence.Table;
import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Environment; import org.hibernate.cfg.Environment;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.jpa.boot.spi.Bootstrap; import org.hibernate.jpa.boot.spi.Bootstrap;
import org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder; import org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder;
import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.hibernate.tool.schema.spi.CommandAcceptanceException; import org.hibernate.tool.schema.spi.CommandAcceptanceException;
import org.hibernate.tool.schema.spi.SchemaManagementException; import org.hibernate.tool.schema.spi.SchemaManagementException;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@ -63,6 +65,8 @@ public class SchemaScriptFileGenerationFailureTest {
@Test @Test
@TestForIssue(jiraKey = "HHH-12192") @TestForIssue(jiraKey = "HHH-12192")
@SkipForDialect(dialectClass = PostgreSQLDialect.class, matchSubTypes = true,
reason = "on postgres we send 'set client_min_messages = WARNING'")
public void testErrorMessageContainsTheFailingDDLCommand() { public void testErrorMessageContainsTheFailingDDLCommand() {
try { try {
entityManagerFactoryBuilder.generateSchema(); entityManagerFactoryBuilder.generateSchema();