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/02/02 18:18:50 UTC
(grails-core) 10/27: progress
This is an automated email from the ASF dual-hosted git repository.
borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 2bd15cf4958742809879bf875428b197fc81aac4
Author: Walter B Duque de Estrada <bo...@users.noreply.github.com>
AuthorDate: Thu Jan 29 11:49:01 2026 -0600
progress
---
.../test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
index af56ad8f84..c2026ed023 100644
--- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
+++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
@@ -19,6 +19,7 @@
package grails.gorm.specs
import org.testcontainers.oracle.OracleContainer
+import spock.lang.Requires
import grails.gorm.annotation.Entity
import org.testcontainers.containers.MariaDBContainer
@@ -29,6 +30,17 @@ import spock.lang.Shared
import spock.lang.Unroll
@Testcontainers
+import org.testcontainers.dockerclient.DockerClientProviderStrategy
+
+// In your Spock @Requires or @IgnoreIf closure:
+@Requires({
+ try {
+ DockerClientProviderStrategy.getFirstValidStrategy()
+ return true
+ } catch (Exception e) {
+ return false
+ }
+})
class RLikeHibernate7Spec extends HibernateGormDatastoreSpec {
@Shared postgres = new PostgreSQLContainer("postgres:16")