You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2026/04/10 16:41:18 UTC

(grails-core) 03/04: fix broken dbmigration tests

This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch 8.0.x-hibernate7-dev
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 1c505d5cf0ff150eb78eede7006d14ffb580bf83
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Fri Apr 10 11:32:46 2026 -0500

    fix broken dbmigration tests
---
 .../integration-test/resources/logback-test.xml    | 36 ++++++++++++++++++++++
 .../DbmGenerateGormChangelogCommandSpec.groovy     |  8 ++---
 .../command/DbmGormDiffCommandSpec.groovy          |  8 ++---
 3 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/grails-data-hibernate7/dbmigration/src/integration-test/resources/logback-test.xml b/grails-data-hibernate7/dbmigration/src/integration-test/resources/logback-test.xml
index e69de29bb2..1576e5585e 100644
--- a/grails-data-hibernate7/dbmigration/src/integration-test/resources/logback-test.xml
+++ b/grails-data-hibernate7/dbmigration/src/integration-test/resources/logback-test.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+     Licensed to the Apache Software Foundation (ASF) under one
+     or more contributor license agreements.  See the NOTICE file
+     distributed with this work for additional information
+     regarding copyright ownership.  The ASF licenses this file
+     to you under the Apache License, Version 2.0 (the
+     "License"); you may not use this file except in compliance
+     with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing,
+     software distributed under the License is distributed on an
+     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+     KIND, either express or implied.  See the License for the
+     specific language governing permissions and limitations
+     under the License.
+
+-->
+<configuration>
+
+    <conversionRule conversionWord="clr" class="org.springframework.boot.logging.logback.ColorConverter" />
+    <conversionRule conversionWord="wex" class="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
+
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <charset>UTF-8</charset>
+            <pattern>%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex</pattern>
+        </encoder>
+    </appender>
+
+    <root level="ERROR"><appender-ref ref="STDOUT"/></root>
+
+</configuration>
diff --git a/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGenerateGormChangelogCommandSpec.groovy b/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGenerateGormChangelogCommandSpec.groovy
index e7a075146d..34124ea6eb 100644
--- a/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGenerateGormChangelogCommandSpec.groovy
+++ b/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGenerateGormChangelogCommandSpec.groovy
@@ -62,11 +62,11 @@ databaseChangeLog = \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "author_id", type: "BIGINT"\\) \\{
+            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
+            column\\(name: "author_id", type: "BIGINT"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
         \\}
@@ -117,11 +117,11 @@ databaseChangeLog = \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "author_id", type: "BIGINT"\\) \\{
+            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
+            column\\(name: "author_id", type: "BIGINT"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
         \\}
diff --git a/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGormDiffCommandSpec.groovy b/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGormDiffCommandSpec.groovy
index 841996094a..c5354bbc2f 100644
--- a/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGormDiffCommandSpec.groovy
+++ b/grails-data-hibernate7/dbmigration/src/test/groovy/org/grails/plugins/databasemigration/command/DbmGormDiffCommandSpec.groovy
@@ -50,11 +50,11 @@ databaseChangeLog = \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "author_id", type: "BIGINT"\\) \\{
+            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
+            column\\(name: "author_id", type: "BIGINT"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
         \\}
@@ -89,11 +89,11 @@ databaseChangeLog = \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "author_id", type: "BIGINT"\\) \\{
+            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
 
-            column\\(name: "title", type: "VARCHAR\\(255\\)"\\) \\{
+            column\\(name: "author_id", type: "BIGINT"\\) \\{
                 constraints\\(nullable: "false"\\)
             \\}
         \\}