Skip to content

Commit

Permalink
Fix integ spec and ordering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Aug 23, 2023
1 parent 350efa6 commit 8c6a1ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codegen/projections/white_label/lib/white_label/auth.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions codegen/projections/white_label/spec/auth_spec.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ module Auth
expect(resolved).to eq(identity)
resolved
end
# temporarily disabled because not implemented
expect_any_instance_of(Hearth::Signers::HTTPDigest).to receive(:sign)
client.http_digest_auth({})
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package software.amazon.smithy.ruby.codegen.generators;

import java.util.Comparator;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -103,9 +104,9 @@ private void renderAuthSchemesConstant(RubyCodeWriter writer) {
writer
.openBlock("SCHEMES = [")
.call(() -> {
authTraitsSet.stream().forEach(trait -> {
renderAuthScheme(writer, trait);
});
authTraitsSet.stream()
.sorted(Comparator.comparing(Trait::toShapeId))
.forEach(trait -> renderAuthScheme(writer, trait));
})
.unwrite(",\n")
.write("")
Expand Down

0 comments on commit 8c6a1ea

Please sign in to comment.