Skip to content

Commit

Permalink
Mention JIRA Id in test
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsanjay committed Feb 28, 2025
1 parent 02b4cd1 commit b470fec
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ public void testBasicAuth() throws Exception {
.process(cluster.getSolrClient());
cluster.waitForActiveCollection("c123", 3, 3);

// Configure placement plugin
// SOLR-17644
// Test Collection creation when replica placement plugin and basic auth are enabled
PluginMeta plugin = new PluginMeta();
plugin.name = PlacementPluginFactory.PLUGIN_NAME;
plugin.klass = MinimizeCoresPlacementFactory.class.getName();
Expand All @@ -395,12 +396,10 @@ public void testBasicAuth() throws Exception {
v2Request.setBasicAuthCredentials("harry", "HarryIsUberCool");
v2Request.process(cluster.getSolrClient());

// Now this will fail with a 401 !!
CollectionAdminRequest.createCollection("c456", "conf", 3, 1)
.setBasicAuthCredentials("harry", "HarryIsUberCool")
.process(cluster.getSolrClient());
cluster.waitForActiveCollection("c456", 3, 3);
/// /////////

executeCommand(
baseUrl + authcPrefix,
Expand Down

0 comments on commit b470fec

Please sign in to comment.