Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
TemplateProcessor - IndexOutOfBoundsException #998
I am unable to execute test using Arquillian, OpenShift with a particular setup.
When executing my tests I obtain this exception
Arquillian should setup to OpenShift a test environment and run my tests.
Steps To Reproduce
The code throwing the exception is located on the class openshift/openshift/src/main/java/org/arquillian/cube/openshift/impl/resources/TemplateProcessor.java
and concerns this method:
It failed at this line:
because processedResources is empty and resources contains a list of the unique DeploymentConfig so Collections.copy throw an IndexOutOfBoundsException.
I guess you should replace this code by processedResources.addAll(resources)
Set syncInstantiation defined to false