lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject lucene-solr:master: SOLR-8048: Stop using deprecated CollectionAdminRequest.Reload constructor
Date Tue, 05 Jul 2016 07:23:45 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 2d6b7ea96 -> 8653be9a5


SOLR-8048: Stop using deprecated CollectionAdminRequest.Reload constructor


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/8653be9a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/8653be9a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/8653be9a

Branch: refs/heads/master
Commit: 8653be9a5bb0eaa22d96fddf09dd507ad7a94cd4
Parents: 2d6b7ea
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Tue Jul 5 12:53:35 2016 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Tue Jul 5 12:53:35 2016 +0530

----------------------------------------------------------------------
 .../org/apache/solr/security/BasicAuthIntegrationTest.java  | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8653be9a/solr/core/src/test/org/apache/solr/security/BasicAuthIntegrationTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/security/BasicAuthIntegrationTest.java b/solr/core/src/test/org/apache/solr/security/BasicAuthIntegrationTest.java
index 28d5342..8a5483a 100644
--- a/solr/core/src/test/org/apache/solr/security/BasicAuthIntegrationTest.java
+++ b/solr/core/src/test/org/apache/solr/security/BasicAuthIntegrationTest.java
@@ -153,8 +153,7 @@ public class BasicAuthIntegrationTest extends TestMiniSolrCloudClusterBase
{
           ("name", "collection-admin-edit", "role", "admin"))), "harry", "HarryIsUberCool"
 );
       verifySecurityStatus(cl, baseUrl + authzPrefix, "authorization/permissions[2]/name",
"collection-admin-edit", 20);
 
-      CollectionAdminRequest.Reload reload = new CollectionAdminRequest.Reload();
-      reload.setCollectionName(defaultCollName);
+      CollectionAdminRequest.Reload reload = CollectionAdminRequest.reloadCollection(defaultCollName);
 
       try (HttpSolrClient solrClient = getHttpSolrClient(baseUrl)) {
         try {
@@ -171,13 +170,11 @@ public class BasicAuthIntegrationTest extends TestMiniSolrCloudClusterBase
{
 
         }
       }
-      cloudSolrClient.request(new CollectionAdminRequest.Reload()
-          .setCollectionName(defaultCollName)
+      cloudSolrClient.request(CollectionAdminRequest.reloadCollection(defaultCollName)
           .setBasicAuthCredentials("harry", "HarryIsUberCool"));
 
       try {
-        cloudSolrClient.request(new CollectionAdminRequest.Reload()
-            .setCollectionName(defaultCollName)
+        cloudSolrClient.request(CollectionAdminRequest.reloadCollection(defaultCollName)
             .setBasicAuthCredentials("harry", "Cool12345"));
         fail("This should not succeed");
       } catch (HttpSolrClient.RemoteSolrException e) {


Mime
View raw message