Examples of IEmbeddableCartridge


Examples of com.openshift.client.cartridge.IEmbeddableCartridge

      return true;
    if (obj == null)
      return false;
    if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass())))
      return false;
    IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
    if (name == null) {
      if (other.getName() != null)
        return false;
    } else if (!name.equals(other.getName()))
      return false;
    return true;
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

      return true;
    if (obj == null)
      return false;
    if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass())))
      return false;
    IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
    if (name == null) {
      if (other.getName() != null)
        return false;
    } else if (!name.equals(other.getName()))
      return false;
    return true;
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

      return true;
    if (obj == null)
      return false;
    if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass())))
      return false;
    IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
    if (name == null) {
      if (other.getName() != null)
        return false;
    } else if (!name.equals(other.getName()))
      return false;
    return true;
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  }

  @Test
  public void shouldNotHaveUrlInNonDownloadableCartridge() throws Throwable {
    // pre-conditions
    IEmbeddableCartridge mysql = new EmbeddableCartridge(CartridgeTestUtils.MYSQL_51_NAME);
    assertThat(mysql.getUrl()).isNull();

    // operation
    IEmbeddedCartridge embeddedMysql = application.getEmbeddedCartridge(mysql);
    // verifications
    new EmbeddedCartridgeAssert(embeddedMysql)
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

   
    IDomain domain = mockDirector.getDomain("foobarz");
    IApplication downloadablecartApp = domain.getApplicationByName("downloadablecart");
    assertThat(downloadablecartApp).isNotNull();

    IEmbeddableCartridge foreman = new EmbeddableCartridge(new URL(FOREMAN_URL));
    new CartridgeAssert<IEmbeddableCartridge>(foreman)
        .hasUrl(CartridgeTestUtils.FOREMAN_URL)
        .hasName(null)
        .hasDescription(null)
        .hasDisplayName(null);
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  }

  @Test
  public void shouldHaveNameDisplaynameDescription() throws Throwable {
    // pre-condition
    IEmbeddableCartridge mongoDb = connection.getEmbeddableCartridges().get(0);
    CartridgeAssert<IEmbeddableCartridge> cartridgeAssert = new CartridgeAssert<IEmbeddableCartridge>(mongoDb);

    // operation
    // verifcation
    cartridgeAssert
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  public static void silentlyDestroyAllEmbeddedCartridges(IApplication application) {
    if (application == null) {
      return;
    }

    IEmbeddableCartridge haProxy = LatestVersionOf.haProxy().get(application);
    for (IEmbeddedCartridge cartridge : application.getEmbeddedCartridges()) {
      // ha proxy can't get removed
      if (cartridge.equals(haProxy)) {
        continue;
      }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    if (constraint == null
        || application == null) {
      return;
    }

    IEmbeddableCartridge embeddedCartridge = constraint.get(application);
    ensureHasEmbeddedCartridge(embeddedCartridge, application);
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  @Test
  public void shouldMatchEmbeddableCartridge() {
    // pre-conditions
    LatestVersionQuery redhatSelector = new LatestVersionQuery("redhat");
    LatestVersionQuery jbossSelector = new LatestVersionQuery("jboss");
    IEmbeddableCartridge redhat10 = new EmbeddableCartridge("redhat-1.0");
    IEmbeddableCartridge redhat30 = new EmbeddableCartridge("redhat-3.0");
    IEmbeddableCartridge jboss10 = new EmbeddableCartridge("jboss-1.0");
    LatestVersionQuery closedSourceSelector = new LatestVersionQuery("closedsource");
    // operation
    // verification
    assertTrue(redhatSelector.matches(redhat10));
    assertTrue(redhatSelector.matches(redhat30));
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  @Test
  public void shouldEmbedMySQL() throws SocketTimeoutException, OpenShiftException, URISyntaxException {
    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application);
    IEmbeddableCartridge mysql = LatestVersionOf.mySQL().get(user);
    assertThat(mysql).isNotNull();
    assertThat(new ApplicationAssert(application)).hasNotEmbeddableCartridge(mysql);
    int numOfEmbeddedCartridges = application.getEmbeddedCartridges().size();

    // operation
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.