.assertContentType("text/html");
/* List of expected referencedSites could also be made
* configurable via system properties, but we don't expect it
* to change often.
*/
RequestExecutor re = executor.execute(
builder.buildGetRequest("/entityhub/sites/referenced")
.withHeader("Accept", "application/json"));
re.assertStatus(200);
re.assertContentType("application/json");
//check if all the required referenced sites are available
for(String referencedSite : referencedSites){
if(referencedSite != null && !referencedSite.isEmpty()){
re.assertContentRegexp(String.format(
"http:\\\\/\\\\/.*\\\\/entityhub\\\\/site\\\\/%s\\\\/",
referencedSite));
}
}
//this ensures that all sites are initialized