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
OpenShiftAssistant : add a scale method with applicationName #1052
In my test I need to scale down (0) some pods (like postgresql or other) to test the behavior of my application when infrastructure is in failure.
Currently, the scale method use the applicationName used to deploy an application in the OpenShiftAssistant.
So I have tried to inject multiple OpenShiftAssistant in my test (using @ArquillianResource) and deploy for each OpenShiftAssistant the application and next call on the desired one the scale method. However it doesn't worked because the same object is injected. So the applicationName used by the scale method refer to the last application launched.
A workaround is to define this method in test:
So I guess, the better way would be to add in OpenShiftAssistant and KubernetesAssistant this kind of method: