Replies: 7 comments 20 replies
-
Hello @uvula. What you have looks correct to me. For the tests did you migrate them to use For the stack traces, I think I need to know a bit more how |
Beta Was this translation helpful? Give feedback.
-
Hello jamezp, thanks for reply. About @Inject. Sure, from Jakarta.
About |
Beta Was this translation helpful? Give feedback.
-
Server: keystore/truststore loaded with *.p12 used by junit test. `
` The junit test is using: `
` Web.xml: `
` With Java11 I see in server logging the mapping to the "RESTAccess" role. |
Beta Was this translation helpful? Give feedback.
-
I don't seem to be able to reproduce this. One thing to check might be setting the <?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://jboss.org/schema/arquillian
https://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<defaultProtocol type="Servlet 6.0" />
<container qualifier="wildfly-managed" default="true">
<configuration>
<property name="allowConnectingToRunningServer">false</property>
<property name="jbossHome">${jboss.home}</property>
<property name="socketBindingName">https</property>
</configuration>
<protocol type="Servlet 6.0">
<property name="scheme">https</property>
<property name="host">127.0.0.1</property>
<property name="port">8443</property>
</protocol>
</container>
</arquillian> One thing to note, It looks like WildFly Arquillian overrides the URL injection which would normally be crated by the servlet protocol. The |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello jamezp, could you please be so kind and assist me once more? The following statement still applies: When I run EAP and Gradle tests with Java 11, all of my Arquillian tests pass. I have also set up the appropriate security domain in EAP so that only (test-) clients with the correct certificates I have found something new in the meantime. I.) I had a PC change, so my old server certificate from JBOSS EAP no longer matched (SAN = Subject Alternative Names). I have now changed this and observed the following improvement: Gradle+ Java17 with @RunAsClient exception:
When I run Gradle with --debug and compare it with Java 11, I see the following major difference in the log; from this point on, it behaves quite differently under Java 17. Gradle + Java11 with @RunAsClient - no exception:
With my limited knowledge and some research, I suspect that Thanks in advance for the help. |
Beta Was this translation helpful? Give feedback.
-
BTW: when I pull wildfly-arquillian-* source code from Github and I want to run all the tests against a wildfly (e.g: WF33). Idea is: I make wildfly-arquillian-* running with WF33 running in my environment, and than I bring my tests here for my testings |
Beta Was this translation helpful? Give feedback.
-
I'm migrating from Java11/EAP7.4/JEE8/Gradle8.0.2 to Java11 &17 /EAP8/Jakarta EE 10.
The application (UI and REST API) itself is running within EAP8.
But I got some problems with my UnitTest and Arquillian.
I'm just a Arquillian user, I'm not so deep in the internals, maybe I use it the wrong way?
1.) all UnitTest wasn't running until I switched from wildfly-arquillian-container-managed:4.0.1 to
Before 5.1.0.Beta4, all the
@Inject
objects are still NULL. Executed within Arquillian an@Test
methods was called, but the@Inject
object are been null.With 5.1.0.Beta4 the injection is working now.
The test class is annotated with @ExtendWith(CertificateArquillianExtension.class). CertificateArquillianExtension is loading some certificate to SSLContext.
The JUnitTest uses RunAsClient
2.) the point 1.) was done with Java11, and all my tests are running now -> 5.1.0.Beta4.
I switched from Java11 to Java17 and the tests are failing again, I get a "jakarta.ws.rs.ForbiddenException: HTTP 403 Forbidden" exception.
But when I look to gradle with --debug I see a lot of:
There are a lot of excecption and it looks like a searching for other object like:
The actual dependencies, running with Java11 are:
Switching to Java17 will produce the above exceptions.
How do I run the tests?
a.) I have a shell, here the EAP8 is started, without any deployments
b.) From another shell, I launch "gradlew cleanTest test --tests "
Arquillian.xml
Any idea? Do I miss some dependencies?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions