Package com.openshift.client

Examples of com.openshift.client.IApplication.scaleUp()


    ApplicationTestUtils.silentlyDestroyAllApplications(domain);
    IApplication application = domain.createApplication(
            ApplicationTestUtils.createRandomApplicationName(), LatestVersionOf.php().get(user), ApplicationScale.SCALE);

    // operation
    application.scaleUp();

    // verification
    // there's currently no API to verify the application state
  }
View Full Code Here


  public void shouldScaleDownApplication() throws Throwable {
    // pre-condition
    ApplicationTestUtils.silentlyDestroyAllApplications(domain);
    IApplication application = domain.createApplication(
            ApplicationTestUtils.createRandomApplicationName(), LatestVersionOf.php().get(user), ApplicationScale.SCALE);
    application.scaleUp();

    // operation
    application.scaleDown();

    // verification
View Full Code Here

    ApplicationTestUtils.silentlyDestroyAllApplications(domain);
    IApplication application = domain.createApplication(
            ApplicationTestUtils.createRandomApplicationName(), LatestVersionOf.php().get(user), ApplicationScale.NO_SCALE);

    // operation
    application.scaleUp();

    // verification
    // there's currently no API to verify the application state
  }
View Full Code Here

                "Failed to add event scale-up to application springeap6 due to: Cannot scale a non-scalable application"));
    final IApplication app = domain.getApplicationByName("springeap6");

    // operation
    try {
      app.scaleUp();
      fail("Expected an exception here..");
    } catch (OpenShiftEndpointException e) {

      // verifications
      assertThat(e.getCause()).isInstanceOf(InternalServerErrorException.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.