-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-18861 ABFS: Fix failing tests for CPK #5979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
:::: AGGREGATED TEST RESULT :::: HNS-OAuth[INFO] Results: HNS-SharedKey[INFO] Results: NonHNS-SharedKey[INFO] Results: AppendBlob-HNS-OAuth[INFO] Results: Time taken: 35 mins 24 secs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path()
usage in test was added as part of #3153.
Should we do:
path("/" + methodName.getMethodName()).toUri().getPath();
since, AbstractAbfsIntegerationTest.path()
already has heurisitc of having random string.
Taken |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking comment. Request for description addition in pr.
@@ -382,6 +382,7 @@ public void testConfigPropNotFound() throws Throwable { | |||
|
|||
for (String key : CONFIG_KEYS) { | |||
setAuthConfig(abfsConf, true, AuthType.OAuth); | |||
abfsConf.unset(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please share in description why we are unsetting it. Does this get ignored somehow in current tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fix for this test failure :- TestAccountConfiguration.testConfigPropNotFound:386->testMissingConfigKey:399 Expected a org.apache.hadoop.fs.azurebfs.contracts.exceptions.TokenAccessProviderException to be thrown, but got the result: : "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider"
Hi @steveloughran can you please help in check-in of this PR to resolve the existing test failures ? Thanks. |
🎊 +1 overall
This message was automatically generated. |
@@ -112,7 +112,7 @@ public ITestCustomerProvidedKey() throws Exception { | |||
@Test | |||
public void testReadWithCPK() throws Exception { | |||
final AzureBlobFileSystem fs = getAbfs(true); | |||
String fileName = path("/" + methodName.getMethodName()).toString(); | |||
String fileName = path("/" + methodName.getMethodName()).toUri().getPath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide a single method for this, use it everywhere
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
+1
merged to trunk; do a pr against branch-3.3 and retest and i'll merge that too |
Contributed by Anmol Asrani
In CPK tests, file name having absolute path results in Invalid URI error. The fix includes changing that to relative path.