|
|
|
@ -89,7 +89,7 @@ public class ProfileTest extends ContextTest {
|
|
|
|
|
Profile profile = new Profile();
|
|
|
|
|
profile.create(PROFILE_NAME, String.format(PROFILE_XML, PROFILE_NAME));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5));
|
|
|
|
|
String list = profile.list();
|
|
|
|
|
logger.debug("Got Profiles {}\n", list);
|
|
|
|
|
|
|
|
|
@ -108,12 +108,18 @@ public class ProfileTest extends ContextTest {
|
|
|
|
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
|
|
|
|
|
++count;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list = profile.list();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
profile.read(PROFILE_NAME);
|
|
|
|
|
|
|
|
|
|
profile.delete(PROFILE_NAME);
|
|
|
|
|
|
|
|
|
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5));
|
|
|
|
|
list = profile.list();
|
|
|
|
|
|
|
|
|
|
while(found) {
|
|
|
|
|
List<String> profiles = mapper.readValue(list, arrayType);
|
|
|
|
|
if(!profiles.contains(PROFILE_NAME)) {
|
|
|
|
@ -126,6 +132,9 @@ public class ProfileTest extends ContextTest {
|
|
|
|
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
|
|
|
|
|
++count;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
list = profile.list();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|