Grails测试应用程序-https

Grails测试应用程序-https,grails,testing,cucumber,geb,Grails,Testing,Cucumber,Geb,我刚刚将我的应用程序升级到Grails2.3.4,我正在实施Cucumber和Geb测试,以确保所有内容都得到覆盖 问题是,应用程序的一个要求应该只侦听安全连接(https),所以我在ConfigGroovy中添加了这个要求 grails.plugin.springsecurity.auth.forceHttps = "true" grails.plugin.springsecurity.secureChannel.definition = [ '/**':'REQUIRES_SECUR

我刚刚将我的应用程序升级到Grails2.3.4,我正在实施Cucumber和Geb测试,以确保所有内容都得到覆盖

问题是,应用程序的一个要求应该只侦听安全连接(https),所以我在ConfigGroovy中添加了这个要求

grails.plugin.springsecurity.auth.forceHttps = "true"
grails.plugin.springsecurity.secureChannel.definition = [
    '/**':'REQUIRES_SECURE_CHANNEL'
]
现在,问题是当我运行grails测试应用程序-https时,没有使用param-https,只在非安全通道中启动应用程序

用https运行测试应用程序有什么想法吗


提前感谢

似乎是Grails的一个bug。我已经提交了一份报告,并对这个问题添加了一条评论。

您是否也尝试过将
-httpBaseUrl
-https
一起使用?是的,我两个都用过,但grails的旧版本不需要使用httpBaseUrl。我认为是2.3.4的问题还有其他想法吗?我也有同样的问题。在深入研究Grails(2.3.7)的源代码后,发现这是因为完全忽略了包含
-https
开关的
testOptions