[wildfly-dev] Fwd: Running an Arquillian test with WildFly on OpenShift
Arun Gupta
arun.gupta at gmail.com
Thu Sep 25 13:24:09 EDT 2014
I'd like to run the tests from my machine against the remote WildFly
instance first and so would need the value for these variables.
How do I retrieve these values for a previously created WildFly
application on OpenShift ?
Arun
On Thu, Sep 25, 2014 at 10:10 AM, Farah Juma <fjuma at redhat.com> wrote:
> They can be specified as follows:
>
> <property name="username">someUser</property>
> <property name="password">somePassword</property>
>
> The username/password for the user created by the cartridge can be found via the $OPENSHIFT_WILDFLY_USERNAME and $OPENSHIFT_WILDFLY_PASSWORD environment variables.
>
> Farah
>
>
> ----- Original Message -----
>> From: "Arun Gupta" <arun.gupta at gmail.com>
>> To: "Farah Juma" <fjuma at redhat.com>
>> Cc: "WildFly Dev" <wildfly-dev at lists.jboss.org>
>> Sent: Thursday, September 25, 2014 1:04:36 PM
>> Subject: Re: [wildfly-dev] Fwd: Running an Arquillian test with WildFly on OpenShift
>>
>> Could be ...
>>
>> But seems like its not able to connect to the right host/port. How do
>> I specify username/password in arquillian.xml ?
>>
>> Arun
>>
>> On Thu, Sep 25, 2014 at 9:58 AM, Farah Juma <fjuma at redhat.com> wrote:
>> >
>> >> From: "Arun Gupta" <arun.gupta at gmail.com>
>> >> To: "Sebastian Łaskawiec" <slaskawi at redhat.com>
>> >> Cc: "WildFly Dev" <wildfly-dev at lists.jboss.org>
>> >> Sent: Thursday, September 25, 2014 8:55:32 AM
>> >> Subject: Re: [wildfly-dev] Fwd: Running an Arquillian test with WildFly on
>> >> OpenShift
>> >>
>> >> On Thu, Sep 25, 2014 at 12:46 AM, Sebastian Łaskawiec
>> >> <slaskawi at redhat.com> wrote:
>> >> > Hi Arun!
>> >> >
>> >> > I think I've seen somewhere that this port is not exposed to the outside
>> >> > world. I'm sorry, but I can't find exact link right now...
>> >> >
>> >> > However it should be easy to verify it by running:
>> >> > "telnet javaee7-milestogo.rhcloud.com 9990"
>> >> >
>> >> > According to this thread:
>> >> > https://www.openshift.com/forums/openshift/jboss-as7-management-in-openshift
>> >> > you should be able to forward ports to your local machine using " rhc
>> >> > port-forward app"
>> >> > After that you could use localhost:9990
>> >> Already tried port forwarding and getting:
>> >>
>> >> Caused by: java.lang.RuntimeException: java.net.ConnectException:
>> >> JBAS012174: Could not connect to http-remoting://127.0.0.1:9990. The
>> >> connection failed
>> >
>> > Could this be an authentication issue? Does it work with port forwarding if
>> > you include the username and password for the user that's created by the
>> > cartridge in your arquillian.xml file?
>> >
>> >
>> > Farah
>> >
>> >
>> >> I can telnet to localhost 9990 after forwarding the port.
>> >>
>> >> >
>> >> > The other way to solve it is to set up SSH port tunneling like that:
>> >> > "ssh -L 9990:localhost:9990 <login>@javaee7-milestogo.rhcloud.com"
>> >> > After that try using localhost:9990
>> >> >
>> >>
>> >> This opens up an ssh shell instead. Is this the right command ?
>> >>
>> >> Arun
>> >>
>> >> > Please let us know if any of those 2 solutions worked for you :)
>> >> >
>> >> > Best regards
>> >> > Sebastian
>> >> >
>> >> >
>> >> >
>> >> > On 09/25/2014 02:39 AM, Arun Gupta wrote:
>> >> >
>> >> > Forwarding to a broader alias in case somebody can help.
>> >> >
>> >> >
>> >> > ---------- Forwarded message ----------
>> >> > From: Arun Gupta <arun.gupta at gmail.com>
>> >> > Date: Wed, Sep 24, 2014 at 4:50 PM
>> >> > Subject: Running an Arquillian test with WildFly on OpenShift
>> >> > To: Farah Juma <fjuma at redhat.com>, Brian Stansberry
>> >> > <brian.stansberry at redhat.com>, Aslak Knutsen <aslak at 4fs.no>, Grant
>> >> > Shipley <gshipley at redhat.com>
>> >> >
>> >> >
>> >> > Trying to run a trivial Arquillian test from my local machine against
>> >> > a WildFly instance hosted on OpenShift. Tried using
>> >> >
>> >> > javaee7-milestogo.rhcloud.com
>> >> > 127.7.102.129
>> >> > ${env.OPENSHIFT_WILDFLY_IP}
>> >> >
>> >> > in arquillian.xml but keep getting:
>> >> >
>> >> > JBAS012144: Could not connect to
>> >> > http-remoting://javaee7-milestogo.rhcloud.com:9990. The connection
>> >> > timed out
>> >> >
>> >> > 127.7.102.129:8080 is timing out as well.
>> >> >
>> >> > Hostname to IP address mapping is giving: 107.21.74.39. Tried that and
>> >> > didn't work.
>> >> >
>> >> > Here is my arquillian.xml:
>> >> >
>> >> > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>> >> > <arquillian xmlns="http://jboss.org/schema/arquillian"
>> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >> > xsi:schemaLocation="http://jboss.org/schema/arquillian
>> >> > http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
>> >> > <container qualifier="arquillian-wildfly-managed" />
>> >> > <container qualifier="arquillian-wildfly-remote">
>> >> > <configuration>
>> >> > <!-- <property name="managementAddress">127.7.102.129</property> -->
>> >> > <!-- <property
>> >> > name="managementAddress">javaee7-milestogo.rhcloud.com</property>
>> >> > -->
>> >> > <property name="managementAddress">107.21.74.39</property>
>> >> > <property name="managementPort">9990</property>
>> >> > </configuration>
>> >> > </container>
>> >> > </arquillian>
>> >> >
>> >> > I can run the test fine against a local WildFly instance.
>> >> >
>> >> > Any suggestions ?
>> >> >
>> >> > Arun
>> >> >
>> >> > --
>> >> > http://blog.arungupta.me
>> >> > http://twitter.com/arungupta
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://blog.arungupta.me
>> >> http://twitter.com/arungupta
>> >>
>> >> _______________________________________________
>> >> wildfly-dev mailing list
>> >> wildfly-dev at lists.jboss.org
>> >> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>>
>>
>> --
>> http://blog.arungupta.me
>> http://twitter.com/arungupta
>>
--
http://blog.arungupta.me
http://twitter.com/arungupta
More information about the wildfly-dev
mailing list