Examples of GearGroupsAssert


Examples of com.openshift.client.utils.GearGroupsAssert

    // operation
    Collection<IGearGroup> gearGroups = application.getGearGroups();

    // verification
    assertThat(gearGroups.size()).isGreaterThanOrEqualTo(1);
    assertThat(new GearGroupsAssert(gearGroups))
        .assertGroup(0).hasUUID().hasGears()
        .assertGear(0).hasId().hasState();
  }
View Full Code Here

Examples of com.openshift.client.utils.GearGroupsAssert

    // pre-conditions
    final IApplication app = domain.getApplicationByName("springeap6");
    // operation
    final Collection<IGearGroup> gearGroups = app.getGearGroups();
    // verifications
    assertThat(new GearGroupsAssert(gearGroups)).hasSize(2);
    assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514207b84382ec1fef0000ab")
        .hasUUID("514207b84382ec1fef0000ab")
        .hasAdditionalStorageSize(8)
        .assertGear("514207b84382ec1fef000098").inState(new GearState("idle"))
        .assertGear("514207b84382ec1fef000098").hasSshUrl("ssh://52380549e0b8cd1e0e000032@springeap6-foobarz.rhcloud.com")
        .assertGear("5146f047500446f12d00002e").inState(new GearState("building"))
        .hasCartridges("jbosseap-6", "mongodb-2.2");
    assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514212ce500446b64e0000c0")
        .hasUUID("514212ce500446b64e0000c0")
        .assertGear("514212ce500446b64e0000b4").hasSshUrl("ssh://523809b75973ca569600019b@523809b75973ca569600019b-foobarz.rhcloud.com")
        .assertGear("514212ce500446b64e0000b4").inState(new GearState("deploying"))
        .hasCartridges("mongodb-2.2");
  }
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.