Skip to content
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

Remove emptyMap case that would miss additionalAuthSchemes #4364

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

gosar
Copy link
Contributor

@gosar gosar commented Aug 29, 2023

Motivation and Context

context: https://github.com/aws/aws-sdk-java-v2/pull/4358/files#r1308068350

Modifications

Remove emptyMap case that would miss additionalAuthSchemes

Testing

Was looking at add a test case for model with zero auth schemes (to showcase the case where concreteAuthSchemeClasses would have been empty before #4358), but the model doesn't seem to support it today.

The closest equivalent in the model is

        "signatureVersion": "none",
        "auth": [],

which would still not have triggered the emptyMap case, as it would be a list of ["none"]. But since I coded it up, adding that test case anyways. It may not be directly relevant to the current model format, but whenever codegen is moved to Smithy models, this test case may serve as reminder to convert that test case to Smithy, where zero auth types is supported.

@gosar gosar requested a review from a team as a code owner August 29, 2023 00:12
@gosar gosar requested a review from sugmanue August 29, 2023 00:12
@gosar
Copy link
Contributor Author

gosar commented Aug 29, 2023

CI failing pending #4363

@gosar gosar changed the base branch from feature/master/sra-identity-auth to haydenbaker/master/sra-identity-auth-fixes August 29, 2023 00:18
@gosar gosar changed the base branch from haydenbaker/master/sra-identity-auth-fixes to feature/master/sra-identity-auth August 29, 2023 06:43
@gosar gosar force-pushed the gosar/sra-ia-emptyAuthSchemes branch from b2f5561 to bcabc46 Compare August 29, 2023 06:44
@gosar gosar force-pushed the gosar/sra-ia-emptyAuthSchemes branch from 3d782f6 to 821f596 Compare August 29, 2023 15:27
@sonarcloud
Copy link

sonarcloud bot commented Aug 29, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 310 Code Smells

0.0% 0.0% Coverage
2.7% 2.7% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@gosar gosar merged commit bfa24e7 into feature/master/sra-identity-auth Aug 29, 2023
6 of 7 checks passed
@gosar gosar deleted the gosar/sra-ia-emptyAuthSchemes branch August 29, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants