Search in sources :

Example 1 with ResourceIsUpdated

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));
}
Also used : ResourceIsUpdated(org.jboss.tools.openshift.reddeer.condition.ResourceIsUpdated) RequiredService(org.jboss.tools.openshift.reddeer.requirement.OpenShiftServiceRequirement.RequiredService) Service(org.jboss.tools.openshift.reddeer.view.resources.Service) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) OpenShiftResource(org.jboss.tools.openshift.reddeer.view.resources.OpenShiftResource)

Aggregations

WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 ResourceIsUpdated (org.jboss.tools.openshift.reddeer.condition.ResourceIsUpdated)1 RequiredService (org.jboss.tools.openshift.reddeer.requirement.OpenShiftServiceRequirement.RequiredService)1 OpenShiftResource (org.jboss.tools.openshift.reddeer.view.resources.OpenShiftResource)1 Service (org.jboss.tools.openshift.reddeer.view.resources.Service)1