-
1. Re: Any way to pass Basic Auth headers?
stardestroyer Jul 30, 2012 5:17 PM (in response to stardestroyer)Doesn't look as though there is a way to do it in the current state. How can I submit a feature request?
-
2. Re: Any way to pass Basic Auth headers?
iapazmino Jul 31, 2012 8:43 PM (in response to stardestroyer)Maybe you could try the drone extension and set the headers with the addCustomRequestHeader?
http://arquillian.org/guides/functional_testing_using_drone
Regards,
IP
-
3. Re: Any way to pass Basic Auth headers?
stardestroyer Aug 8, 2012 1:23 PM (in response to iapazmino)Thanks, Ivan -- but I am not sure how to do it with Drone? I understand how Drone controls Selenium and such, but how can I integrate that code and header to make "regular" Arquillian tests invoke the same code in tests using Servlet 3.0 protocol?
- Oleg.
-
4. Re: Any way to pass Basic Auth headers?
stardestroyer Aug 8, 2012 1:36 PM (in response to stardestroyer)Aslak, I see the code in org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute() method that invokes the test servlet, and as I thought, there's no configuration that allows me to add a custom header to the POST. But, I can't find any way to either subclass ServletMethodExecutor and override execute(), or plug any sort of custom implementation of URLConnection. Is there anything I can do myself, or you can enable me to do, with perhaps a Service Locator (??) or any other approach, to add some of my own code to add custom headers?