Package com.openshift.client.utils

Examples of com.openshift.client.utils.EmbeddedCartridgeAssert


    assertThat(mysql.getUrl()).isNull();

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


    // operation
    IEmbeddedCartridge embeddedForeman = downloadablecartApp.getEmbeddedCartridge(foreman);
    // verifications
    // embedded cartridge should get updated with name, description and display name
    new EmbeddedCartridgeAssert(embeddedForeman)
        .hasUrl(CartridgeTestUtils.FOREMAN_URL)
        .hasName("andygoldstein-foreman-0.63.0")
        .hasDescription("Foreman TODO")
        .hasDisplayName("Foreman");
  }
View Full Code Here

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

    // operation
    IEmbeddedCartridge mysql = application.getEmbeddedCartridge(LatestVersionOf.mySQL().get(user));
   
    // verification
    new EmbeddedCartridgeAssert(mysql)
        .hasDescription()
        .hasDisplayName();
  }
View Full Code Here

    application.addEmbeddableCartridge(postgres);

    // verification
    assertThat(new ApplicationAssert(application))
        .hasEmbeddedCartridge(LatestVersionOf.postgreSQL());
    new EmbeddedCartridgeAssert(application.getEmbeddedCartridge(postgres))
        .hasUrlProperty();
  }
View Full Code Here

    // operation

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

    application.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user));

    // verification
    assertThat(new ApplicationAssert(application)
        .hasEmbeddedCartridge(LatestVersionOf.mongoDB()));
    new EmbeddedCartridgeAssert(application.getEmbeddedCartridge(mongo))
        .hasUrlProperty();
  }
View Full Code Here

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

    // verification
    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

    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());
    assertThat(new ApplicationAssert(user2Application)).hasEmbeddedCartridges(
        LatestVersionOf.mongoDB(), LatestVersionOf.rockMongo());
    new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(rockMongo))
        .hasUrlProperty();
  }
View Full Code Here

    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

TOP

Related Classes of com.openshift.client.utils.EmbeddedCartridgeAssert

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.