[
https://issues.apache.org/jira/browse/HADOOP-19257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878196#comment-17878196
]
ASF GitHub Bot commented on HADOOP-19257:
-----------------------------------------
steveloughran opened a new pull request, #7021:
URL: https://github.com/apache/hadoop/pull/7021
Remove the error string matched on so that no future message change from AWS
will trigger a regression
### How was this patch tested?
ran failing test against us-west-1 and verified it worked now
### For code changes:
- [X] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [X] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> S3A: ITestAssumeRole.testAssumeRoleBadInnerAuth failure
> -------------------------------------------------------
>
> Key: HADOOP-19257
> URL: https://issues.apache.org/jira/browse/HADOOP-19257
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3, test
> Affects Versions: 3.4.0, 3.4.1
> Reporter: Steve Loughran
> Priority: Minor
>
> Not sure when this changed, but I've only just noticed today while setting up
> a new test config.
> The test {{testAssumeRoleBadInnerAuth}} is failing because the error string
> coming back from STS is slightly different.
> {code}
> [ERROR]
> testAssumeRoleBadInnerAuth(org.apache.hadoop.fs.s3a.auth.ITestAssumeRole)
> Time elapsed: 4.182 s <<< FAILURE!
> java.lang.AssertionError:
> Expected to find 'not a valid key=value pair (missing equal-sign) in
> Authorization header' but got unexpected exception:
> org.apache.hadoop.fs.s3a.AWSBadRequestException: Instantiate
> org.apache.hadoop.fs.s3a.auth.AssumedRoleCredentialProvider on /:
> software.amazon.awssdk.services.sts.model.StsException: Invalid key=value
> pair (missing equal-sign)
> {code}
> Rather than change the string to look for, lets just remove the string so it
> it less brittle in future
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]