System.out.println(" Mock agents are done.");
// wait for group update to get out of the INPROGRESS state (it will eventually get to SUCCESS), but don't wait indefinitely
// this shouldn't take too long - just have to wait for the all the DB commits to complete
System.out.print("Waiting for group resource config update to be finished...");
ConfigurationUpdateStatus status = getGroupResourceConfigurationStatus(env.compatibleGroup.getId());
boolean inprogress = (status == ConfigurationUpdateStatus.INPROGRESS);
for (int i = 0; i < 20 && inprogress; i++) {
Thread.sleep(3000);
status = getGroupResourceConfigurationStatus(env.compatibleGroup.getId());
inprogress = (status == ConfigurationUpdateStatus.INPROGRESS);
}
assert !inprogress : "group resource configuration update is still inprogress - this is taking too long";
System.out.println(" Done. Status=" + ((status != null) ? status.name() : "????null????"));
assert status == ConfigurationUpdateStatus.SUCCESS : "should have finished in the success status";
// now see if our group resource configuration update affected all of our resources by getting the group plugin config
System.out.println("Getting updated resource config for group [#members=" + memberCount + "]");
start = System.currentTimeMillis();