use of org.jboss.tools.openshift.reddeer.condition.ResourceIsUpdated in project jbosstools-openshift by jbosstools.
the class EditResourceLimitsTest method testViaContextMenuOfService.
public void testViaContextMenuOfService(int index, String defaultSuffix) {
Service service = project.getService(OpenShiftResources.NODEJS_SERVICE);
assertNotNull(service);
OpenShiftResource deploymentConfig = project.getOpenShiftResource(Resource.DEPLOYMENT_CONFIG, OpenShiftResources.NODEJS_APP_DEPLOYMENT_CONFIG);
assertNotNull(deploymentConfig);
String version = deploymentConfig.getPropertyValue("Basic", "Resource Version");
service.select();
incrementLimits(index, defaultSuffix);
new WaitUntil(new ResourceIsUpdated(project.getName(), Resource.DEPLOYMENT_CONFIG, OpenShiftResources.NODEJS_APP_DEPLOYMENT_CONFIG, new String[] { "Basic", "Resource Version" }, not(version), requiredConnection.getConnection()), TimePeriod.getCustom(800));
}
Aggregations