Re: Integration testing a native script

2014-07-31 Thread Nick T
Thanks for the help. My working solution is: 1. Create the plugins/scripts directory created in /tmp for each test node 2. copy my script jar into it 3. Register script in settings: .put(script.native.NAME.type, NAME OF SCRIPT) I am super grateful for all your help. Btw, I wasn't creating it

Integration testing a native script

2014-07-30 Thread Nick T
Is there a way to have a native java script accessible in integration tests? In my integration tests I am creating a test node in the /tmp folder. I've tried copying the script to /tmp/plugins/scripts but that was quite hopeful and unfortunately does not work. Desperate for help. Thanks --

Re: Integration testing a native script

2014-07-30 Thread David Pilato
I might be wrong but I think that scripts should be located in config/scripts, right?  --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 30 juillet 2014 à 11:31:10, Nick T (nttod...@gmail.com) a écrit: Is there a way to have a native java script

Re: Integration testing a native script

2014-07-30 Thread Thomas
Hi, I have tried the same approach and it worked for me, meaning to copy the script I want to perform an integration test and run my IT. I do the following steps 1) Setup the required paths for elasticsearch final Settings settings = settingsBuilder()

Re: Integration testing a native script

2014-07-30 Thread Thomas
I have noticed that you mention native java script so you have implemented it as a plugin? if so try the following in your settings: final Settings settings = settingsBuilder() ... .put(plugin.types, YourPlugin.class.getName()) Thomas On Wednesday, 30