Re: design integration tests with JenkinsRule in remote env

2015-12-21 Thread Kanstantsin Shautsou
Finally i got it working with standard CLI, but: 1) commit in master was related to my issue with absent Descriptor for plugin objects created from CLI callables. I defined slaveAgentP

Re: design integration tests with JenkinsRule in remote env

2015-12-21 Thread Kanstantsin Shautsou
I tried to use standard CLI connection from test and it works fine with Describables that comes from core. Custom (plugin) Describable initialised in Callable through channel missing Descriptor because this object doesn't match by java link (more specifically `type` from clazz) for Describable

Re: design integration tests with JenkinsRule in remote env

2015-09-15 Thread asotobueno
Maybe we can use Arquillian to deploy Jenkins to server side, and since Arquillian can be executed in-container (this means that test is executed within your application), it can be a possible solution to fix this. Of course I don't know deeply the details of what you want to test and maybe it

Re: design integration tests with JenkinsRule in remote env

2015-09-14 Thread Jesse Glick
On Sun, Sep 13, 2015 at 11:50 AM, Kanstantsin Shautsou wrote: > Seems that existed ATH code can be extended for creating channel, that can > support automatic classloading and tests execution on remote side. > The idea is to programmatically prepare complex environment (my test code) I guess you

Re: design integration tests with JenkinsRule in remote env

2015-09-13 Thread Kanstantsin Shautsou
Seems that existed ATH code can be extended for creating channel, that can support automatic classloading and tests execution on remote side. The idea is to programmatically prepare complex environment (my test code), run remote JenkinsController (existed ATH), get channel connection to it (add

Re: design integration tests with JenkinsRule in remote env

2015-09-10 Thread Kanstantsin Shautsou
Then i need install some junit jars to have ability execute asserts and matchers and produce somehow junit xml output that should be fetched back… I also thought putting files under JENKINS_HOME/groovy.d and run remote instance. > On Sep 10, 2015, at 20:16, Jesse Glick wrote: > > On Thu, Sep 10

Re: design integration tests with JenkinsRule in remote env

2015-09-10 Thread Jesse Glick
On Thu, Sep 10, 2015 at 9:55 AM, Kanstantsin Shautsou wrote: > Is there any ways to do such communication? `/script` (or the CLI equivalent) is your best bet. From an ATH test you can simply use `jenkins.runScript("…")`. -- You received this message because you are subscribed to the Google Grou

design integration tests with JenkinsRule in remote env

2015-09-10 Thread Kanstantsin Shautsou
I'm searching the way to programatically describe integration tests that will be possible to copy and run jenkins instance with test code to some remote environment. ATH JenkinsController do logically similar thing, but it uses UI/rest for interaction with remote jenkins instance while i need ha