Package com.openshift.internal.client.httpclient

Examples of com.openshift.internal.client.httpclient.InternalServerErrorException


    // pre-conditions
    mockDirector
        .mockPostApplicationEvent(
            "foobarz",
            "springeap6",
            new InternalServerErrorException(
                "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 {
View Full Code Here


        .mockPostApplicationEvent(
            "foobarz", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT)
        .mockPostApplicationEvent(
            "foobarz",
            "springeap6",
            new InternalServerErrorException(
                "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 {
View Full Code Here

    // pre-conditions
    mockDirector
        .mockPostApplicationEvent(
            "foobarz",
            "springeap6",
            new InternalServerErrorException(
                "Failed to add event add-alias to application springeap6 due to: Alias 'jbosstools.org' already exists for 'springeap6'"));
    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org");

    // operation
View Full Code Here

    // pre-conditions
    mockDirector
        .mockPostApplicationEvent(
            "foobarz",
            "springeap6",
            new InternalServerErrorException(
                "Failed to add event remove-alias to application springeap6 due to: Alias 'openshift-origin.org' does not exist for 'springeap6'"));
    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app).isNotNull();
    assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org");
    // operation
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.httpclient.InternalServerErrorException

Copyright © 2018 www.massapicom. 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.