Java Arquillian测试在启用Websphere安全性后停止工作
Arquillian IT测试运行良好,直到我在Websphere管理控制台中启用安全性为止(为了构建登录功能)。因此,问题是如何使用Websphere security anabled运行测试。它的LDAP(Microsoft AD)。 谢谢 Arquillian.xmlJava Arquillian测试在启用Websphere安全性后停止工作,java,websphere,integration-testing,jboss-arquillian,Java,Websphere,Integration Testing,Jboss Arquillian,Arquillian IT测试运行良好,直到我在Websphere管理控制台中启用安全性为止(为了构建登录功能)。因此,问题是如何使用Websphere security anabled运行测试。它的LDAP(Microsoft AD)。 谢谢 Arquillian.xml <container qualifier="websphere" default="true"> <configuration> <property name="rem
<container qualifier="websphere" default="true">
<configuration>
<property name="remoteServerAddress">localhost</property>
<property name="remoteServerSoapPort">8880</property>
<property name="securityEnabled">true</property>
</configuration>
</container>
对于安全服务器,您需要添加用户名/密码和ssl配置,如下所示:
<container qualifier="websphere_IntegrationTest" default="true">
<configuration>
<property name="remoteServerAddress">localhost</property>
<property name="remoteServerSoapPort">8880</property>
<property name="securityEnabled">true</property>
<property name="username">admin</property>
<property name="password">admin</property>
<property name="sslTrustStore">PATH_TO\DummyClientTrustFile.jks</property>
<property name="sslTrustStorePassword">WebAS</property>
</configuration>
</container>
本地服务器
8880
真的
管理
管理
路径\u到\DummyClientTrustFile.jks
WebAS
<container qualifier="websphere_IntegrationTest" default="true">
<configuration>
<property name="remoteServerAddress">localhost</property>
<property name="remoteServerSoapPort">8880</property>
<property name="securityEnabled">true</property>
<property name="username">admin</property>
<property name="password">admin</property>
<property name="sslTrustStore">PATH_TO\DummyClientTrustFile.jks</property>
<property name="sslTrustStorePassword">WebAS</property>
</configuration>
</container>