Package com.openshift.client

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


    String alias = createAlias();
    application.addAlias(alias);
    assertThat(application.getAliases()).contains(alias);

    // operation
    application.removeAlias(alias);

    // verification
    assertThat(alias).isNotIn(application.getAliases());
  }
View Full Code Here


            "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_0ALIAS);
    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org");

    // operation
    app.removeAlias("jbosstools.org");

    // verifications
    mockDirector.verifyPostApplicationEvent("foobarz", "springeap6");
    assertThat(app.getAliases()).hasSize(0);
  }
View Full Code Here

    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app).isNotNull();
    assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org");
    // operation
    try {
      app.removeAlias("openshift-origin.org");
      fail("Expected an exception..");
    } 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.