Examples of addEmbeddableCartridge()


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

    assertThat(new ApplicationAssert(jbossAs)
        .hasNotEmbeddableCartridges(LatestVersionOf.mySQL())
        .hasNotEmbeddableCartridges(LatestVersionOf.phpMyAdmin()));

    // operation
    jbossAs.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user));
    jbossAs.addEmbeddableCartridge(LatestVersionOf.phpMyAdmin().get(user));

    // verification
    IEmbeddableCartridge phpMyadmin = LatestVersionOf.phpMyAdmin().get(user);
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(phpMyadmin))
View Full Code Here

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

        .hasNotEmbeddableCartridges(LatestVersionOf.mySQL())
        .hasNotEmbeddableCartridges(LatestVersionOf.phpMyAdmin()));

    // operation
    jbossAs.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user));
    jbossAs.addEmbeddableCartridge(LatestVersionOf.phpMyAdmin().get(user));

    // verification
    IEmbeddableCartridge phpMyadmin = LatestVersionOf.phpMyAdmin().get(user);
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(phpMyadmin))
        .hasUrlProperty();
View Full Code Here

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

    EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application);
    ApplicationTestUtils.createApplication(
        LatestVersionOf.jenkins().get(user), domain);

    // operation
    application.addEmbeddableCartridge(LatestVersionOf.jenkinsClient().get(user));

    // verification
    assertThat(new ApplicationAssert(application)
        .hasEmbeddedCartridge(LatestVersionOf.jenkinsClient()));
  }
View Full Code Here

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

    EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application);
    assertThat(new ApplicationAssert(application))
      .hasNotEmbeddableCartridge(CartridgeTestUtils.foreman063());

    // operation
    application.addEmbeddableCartridge(CartridgeTestUtils.foreman063());

    // verification
    new ApplicationAssert(application)
        .hasEmbeddedCartridgeNames(CartridgeTestUtils.foreman063().getName());
  }
View Full Code Here

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

    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application);

    // operation
    application.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user));
  }

  @Test
  public void shouldRemoveEmbeddedCartridge() throws Exception {
    // pre-conditions
View Full Code Here

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

        POST_MYSQL_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES);
    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getEmbeddedCartridges()).hasSize(1);

    // operation
    app.addEmbeddableCartridge(CartridgeTestUtils.mysql51());

    // verifications
    mockDirector.verifyAddEmbeddableCartridge("foobarz", "springeap6");
    assertThat(app.getEmbeddedCartridges()).hasSize(2);
    IEmbeddedCartridge mySqlCartridge = app.getEmbeddedCartridge(MYSQL_51_NAME);
View Full Code Here

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

    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getEmbeddedCartridges()).hasSize(2);

    // operation
    try {
      app.addEmbeddableCartridge(new EmbeddableCartridge(CartridgeTestUtils.POSTGRESQL_84_NAME));
      fail("Expected an exception here...");
    } catch (OpenShiftTimeoutException e) {
      // ok
    }
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.