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

Enhancement: make Arquillian Remote connector address and port configurable / FISH-7052 #66

Closed
poikilotherm opened this issue Jan 31, 2023 · 4 comments · Fixed by payara/ecosystem-arquillian-connectors#214
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Enhancement Label issue as an enhancement request

Comments

@poikilotherm
Copy link

poikilotherm commented Jan 31, 2023

Brief Summary

When using Testcontainers to create a Payara deployment, I need to map port 8080 and 4848 to some random number assigned by Testcontainers. This is non-changeable in Testcontainers. Instead of hardwiring to read address and port from remote server, make it also overrideable via Arquillian configuration.

Expected Outcome

Enable configuration in arquillian.xml:

    <container qualifier="payara" default="true">
        <configuration>
            <property name="host">${tc.payara.host}</property>
            <property name="port">${tc.payara.http.port}</property>
            <property name="adminHost">${tc.payara.host}</property>
            <property name="adminPort">${tc.payara.admin.port}</property>
            <property name="adminUser">${tc.payara.admin.user}</property>
            <property name="adminPassword">${tc.payara.admin.pass}</property>
            <property name="adminHttps">true</property>
            <property name="ignoreCertificates">true</property>
            <property name="authorisation">true</property>
        </configuration>
    </container>

Either enable CommonPayaraConfiguration to save the additional infos, being used in PayaraClientService to built the URLs or create an extended configuration, following the schema of PayaraMicroRemoteContainerConfiguration and PayaraMicroRemoteDeployableContainer.

Current Outcome

Within PayaraClientService#L337 the address and port are hardcoded to be retrieved from the remote end.

Arquillian cannot reach the servlet as a result - the random port 32790 is not transfered:

WARNING: Configuration contain properties not supported by the backing object fish.payara.arquillian.container.payara.CommonPayaraConfiguration
Unused property entries: {port=32790, host=localhost}
Supported property names: [debug, adminHttps, ignoreCertificates, libraries, type, target, adminUser, domain, authorisation, adminPort, properties, adminHost, adminPassword]
Caused by: java.lang.IllegalStateException: Error launching request at http://localhost:8080/ArquillianServletRunner?outputMode=serializedObject&className=edu.harvard.iq.dataverse.arquillian.mail.MailSessionProducerIT&methodName=run. No result returned

Context

This works with Wildfly. Used this in a related experiment.

Ecosystem Tool

Arquillian Connectors

@poikilotherm poikilotherm added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Enhancement Label issue as an enhancement request labels Jan 31, 2023
@poikilotherm
Copy link
Author

I am willing and able to create a pull request for this. Please let me know what you think. If you are interested, what would be an ETA for reviewing and accepting the PR as well as cutting a new release?

@kiview this might be of interest for you 😄

@JamesHillyard
Copy link
Member

Hi @poikilotherm,

I would strongly recommend making a PR for this enhancement as you said you are willing and able to, we would much appreciate your contribution and will greatly speed up the time to get this enhancement available for you. While we can't provide an exact ETA, after a PR has been created a member of our engineering team will aim to have this reviewed and released shortly after.

Thanks,
James

@poikilotherm
Copy link
Author

Hi @JamesHillyard,

thanks for coming back to me. I just created payara/ecosystem-arquillian-connectors#214.

Crossing fingers this gets merged and released soon! 🤞

@JamesHillyard JamesHillyard changed the title Enhancement: make Arquillian Remote connector address and port configurable Enhancement: make Arquillian Remote connector address and port configurable / FISH-7052 Feb 3, 2023
@JamesHillyard
Copy link
Member

Hi @poikilotherm,

Thank you very much for creating a PR to address this, I have raised the internal issue FISH-7052 to test, review, merge and release these changes which should be picked up shortly, your continued patience until then is much appreciated.

Best Regards,
James

@JamesHillyard JamesHillyard added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Enhancement Label issue as an enhancement request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants