Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FISH-7052 remote adapter config host #214

Merged

Conversation

poikilotherm
Copy link
Contributor

Closes payara/ecosystem-support#66

Hi there!

This pull request enables to override the HTTP host and HTTP port information for a remote instance via arquillian.xml:

<property name="httpHost">${tc.payara.host}</property>
<property name="httpPort">${tc.payara.http.port}</property>

This way, I can supply host and port information from @testcontainers to the Payara Arquillian Remote Adapter, enabling the usage of Testcontainers to provide a deploy target for Arquillian.

Thanks for reviewing (and merging)! ❤️

I tested this with Dataverse as part of IQSS/dataverse#7424 (the code is not yet pushed, as I need to use the snapshot builds of the connectors). Works flawless for me! 😄

Everything else is 2.6-SNAPSHOT, so probably some artifact from a release.
Was necessary to test properly.
…vice

By adding the RemoteInstanceConnectionProvider interface, a configuration
that implements this provider can override the host and port information
read from the servers configuration via the admin API of Payara.

Using this interface also avoids adding a direct dependency onto an underlying adapter.
Adding a special configuration (as already seen at the other adapter) for remote
instances allows us to make Arquillian inject the httpPort and httpHost properties.

As the config implements RemoteInstanceConfigurationProvider, the information
can be retrieved from the Payara client.
@JamesHillyard JamesHillyard changed the title 66 remote adapter config host FISH-7052 remote adapter config host Feb 3, 2023
@poikilotherm
Copy link
Contributor Author

Hello @JamesHillyard it's been a while... Could someone pretty please take a look at this? Thank you very much!

@jGauravGupta jGauravGupta self-requested a review April 13, 2023 13:26
@jGauravGupta jGauravGupta merged commit a20f2e7 into payara:master Apr 18, 2023
@poikilotherm
Copy link
Contributor Author

Thanks @jGauravGupta for looking into this and merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: make Arquillian Remote connector address and port configurable / FISH-7052
2 participants