HADOOP-17535. ABFS: ITestAzureBlobFileSystemCheckAccess test failure if no oauth key. (#2920)
Contributed by Steve Loughran. Change-Id: I165f5ed3a8486404403827b5c0338cf7f80c2bb1
This commit is contained in:
parent
003deeeecf
commit
77fddcfcb1
|
@ -22,7 +22,6 @@ import java.io.IOException;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
|
|
||||||
import org.apache.hadoop.thirdparty.com.google.common.collect.Lists;
|
import org.apache.hadoop.thirdparty.com.google.common.collect.Lists;
|
||||||
import org.junit.Assume;
|
import org.junit.Assume;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -316,8 +315,8 @@ public class ITestAzureBlobFileSystemCheckAccess
|
||||||
private void checkIfConfigIsSet(String configKey){
|
private void checkIfConfigIsSet(String configKey){
|
||||||
AbfsConfiguration conf = getConfiguration();
|
AbfsConfiguration conf = getConfiguration();
|
||||||
String value = conf.get(configKey);
|
String value = conf.get(configKey);
|
||||||
Preconditions.checkArgument((value != null && value.trim().length() > 1),
|
Assume.assumeTrue(configKey + " config is mandatory for the test to run",
|
||||||
configKey + " config is mandatory for the test to run");
|
value != null && value.trim().length() > 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertAccessible(Path testFilePath, FsAction fsAction)
|
private void assertAccessible(Path testFilePath, FsAction fsAction)
|
||||||
|
|
Loading…
Reference in New Issue