Package com.openshift.client.utils

Examples of com.openshift.client.utils.ResourcePropertyAssert


    // verification
    mockDirector.verifyGetApplicationCartridges(1, "foobarz", "springeap6");
    CartridgeResourceProperties properties = switchyard.getProperties();
    // 1 property in embedded block in cartridges
    assertThat(properties.size()).isEqualTo(1);
    new ResourcePropertyAssert(properties.getAll().iterator().next())
        .hasName("module_path")
        .hasDescription("Module Path")
        .hasType("cart_data");
  }
View Full Code Here


    assertThat(cartridge.getType()).isEqualTo(CartridgeType.EMBEDDED);
    assertThat(cartridge.getUrl()).isNull();
    CartridgeResourceProperties properties = cartridge.getProperties();
    assertThat(properties).isNotNull();
    assertThat(properties.size()).isEqualTo(4);
    new ResourcePropertyAssert(properties.getAll().get(0))
        .hasName("username")
        .hasDescription("Root user on mysql database")
        .hasType("cart_data")
        .hasValue("adminnFC22YQ");
    new ResourcePropertyAssert(properties.getAll().get(1))
        .hasName("password")
        .hasDescription("Password for root user on mysql database")
        .hasType("cart_data")
        .hasValue("U1IX8AIlrEcl");
    new ResourcePropertyAssert(properties.getAll().get(2))
        .hasName("database_name")
        .hasDescription("MySQL DB name")
        .hasType("cart_data")
        .hasValue("springeap6");
    new ResourcePropertyAssert(properties.getAll().get(3))
        .hasName("connection_url")
        .hasDescription("MySQL DB connection URL")
        .hasType("cart_data")
        .hasValue("mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/");
    assertThat(cartridge.getLinks()).hasSize(7);
View Full Code Here

TOP

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

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.