Examples of IEmbeddableCartridge


Examples of com.openshift.client.cartridge.IEmbeddableCartridge

        .hasEmbeddedCartridge(LatestVersionOf.mySQL());

    // operation

    // verification
    IEmbeddableCartridge mysql =
        LatestVersionOf.mySQL().get(user2);
    assertThat(mysql).isNotNull();   
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mysql))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  @Test
  public void shouldEmbedPostgreSQL() throws SocketTimeoutException, OpenShiftException, URISyntaxException {
    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application);
    IEmbeddableCartridge postgres = LatestVersionOf.postgreSQL().get(user);
    assertThat(new ApplicationAssert(application))
      .hasNotEmbeddableCartridge(postgres);

    // operation
    application.addEmbeddableCartridge(postgres);
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

        LatestVersionOf.postgreSQL());

    // operation

    // verification
    IEmbeddableCartridge postgres2 = LatestVersionOf.postgreSQL().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(postgres2))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  @Test
  public void shouldEmbedMongo() throws Exception {
    // pre-conditions
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application);
    IEmbeddableCartridge mongo = LatestVersionOf.mongoDB().get(user);
    assertThat(new ApplicationAssert(application))
      .hasNotEmbeddableCartridge(mongo);

    // operation
    application.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user));
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.mongoDB().get(user)))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge mongo = LatestVersionOf.mongoDB().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mongo))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    // operation
    jbossAs.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user));
    jbossAs.addEmbeddableCartridge(LatestVersionOf.rockMongo().get(user));

    // verification
    IEmbeddableCartridge rockMongo = LatestVersionOf.rockMongo().get(user);
    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(rockMongo))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    // 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();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge phpMyAdmin = LatestVersionOf.phpMyAdmin().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(phpMyAdmin))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.jenkinsClient().get(user)))
        .hasUrlProperty();
    // verify using user instance that's not the one used to create
    IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
    IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName());
    IEmbeddableCartridge jenkinsClient =
        LatestVersionOf.jenkinsClient().get(user2);
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(jenkinsClient))
        .hasUrlProperty();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    // operation
    application.removeEmbeddedCartridge(LatestVersionOf.mySQL().get(user));

    // verification
    IEmbeddableCartridge mySql = LatestVersionOf.mySQL().get(user);
    assertThat(new ApplicationAssert(application))
        .hasEmbeddableCartridges(numOfEmbeddedCartridges)
        .hasNotEmbeddableCartridge(mySql.getName());
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

  @Test
  public void shouldSeeCartridgeRemovedWithOtherUser() throws Exception {
    // pre-condition
    IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
    IEmbeddableCartridge mySqlEmbeddableCartridge =
        LatestVersionOf.mySQL().get(user);
    EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridge(mySqlEmbeddableCartridge, application);
    assertThat(new ApplicationAssert(application)
        .hasEmbeddedCartridge(LatestVersionOf.mySQL()));
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.