Skip to content

Commit 40332d6

Browse files
PR comments
1 parent 95868fc commit 40332d6

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

gems/smithy/spec/fixtures/auth/no_auth/model.smithy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ service ServiceWithNoAuth {
1111
}
1212

1313
// This operation does not have the @auth trait and is bound to a service
14-
// without the @auth trait. This operation does not support any authentication schemes.
14+
// without auth. This operation does not support any authentication schemes.
1515
operation OperationH {}
1616

1717
// This operation has the @optionalAuth trait and is bound to a service
18-
// without the @auth trait. This operation does not support any authentication schemes.
18+
// without auth. This operation does not support any authentication schemes.
1919
@optionalAuth
2020
operation OperationI {}

gems/smithy/spec/interfaces/client/auth_resolver_spec.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@
2828
it 'returns the auth options for the operation with the optionalAuth trait' do
2929
params = NoAuthTrait::AuthParameters.new(operation_name: :operation_g)
3030
auth_options = subject.resolve(params)
31-
expect(auth_options).to eq(%w[smithy.api#httpBasicAuth smithy.api#httpBearerAuth smithy.api#httpDigestAuth
32-
smithy.api#noAuth])
31+
expect(auth_options).to eq(
32+
%w[
33+
smithy.api#httpBasicAuth
34+
smithy.api#httpBearerAuth
35+
smithy.api#httpDigestAuth
36+
smithy.api#noAuth
37+
]
38+
)
3339
end
3440
end
3541
end

0 commit comments

Comments
 (0)