Browse Source

fixed test

feature/22658
Luca Frosini 5 months ago
parent
commit
08e3e7acbe
  1. 11
      src/test/java/org/gcube/gcat/client/ProfileTest.java

11
src/test/java/org/gcube/gcat/client/ProfileTest.java

@ -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();
}
}

Loading…
Cancel
Save