Dzeri96 commented on code in PR #3599:
URL: https://github.com/apache/celeborn/pull/3599#discussion_r2811659440


##########
multipart-uploader/multipart-uploader-s3/src/test/java/org/apache/celeborn/S3MultipartUploadHandlerSuiteJ.java:
##########
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.celeborn;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.s3a.AWSCredentialProviderList;
+import org.apache.hadoop.fs.s3a.Constants;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class S3MultipartUploadHandlerSuiteJ {
+
+  @Test
+  public void 
testGetCredentialsProviderShouldGiveDefaultProvidersOnEmptyConfig() throws 
Exception {
+    Configuration conf = new Configuration();
+    AWSCredentialProviderList providers =
+        S3MultipartUploadHandler.getCredentialsProvider(null, conf);
+    Assert.assertTrue(providers.size() != 0);
+    System.out.println(providers.listProviderNames());

Review Comment:
   I missed the println. Now it has been removed.
   
   And yes, the defaults are the same as they used to be, and even if they 
weren't, the same classes we had are set in `CelebornHadoopUtils` by us.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to