fail("The specified user: " + solrUserName + " shouldn't get update access!");
} catch (Exception exception) {
assertTrue("Expected " + SENTRY_ERROR_MSG + " in " + exception.toString(),
exception.toString().contains(SENTRY_ERROR_MSG));
} finally {
cloudSolrServer.shutdown();
}
SolrDocumentList solrRespDocs = getSolrDocs(collectionName, ALL_DOCS, true);
// Validate Solr content to check whether the update command didn't go through.
validateSolrDocCountAndContent(orginalSolrDocs, solrRespDocs);