Package com.openshift.client

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


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

    // operation
    application.scaleDown();

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


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

    // operation
    application.scaleDown();

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

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

    // operation
    try {
      app.scaleDown();
      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.