You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smithy-swift-codegen/src/test/kotlin/software/amazon/smithy/swift/codegen/requestandresponse/requestflow/AuthSchemeResolverGeneratorTests.kt
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ class AuthSchemeResolverGeneratorTests {
21
21
contents.shouldSyntacticSanityCheck()
22
22
val expected ="""
23
23
public struct ExampleAuthSchemeResolverParameters: SmithyHTTPAuthAPI.AuthSchemeResolverParameters {
24
+
public let authSchemePreference: [String]?
24
25
public let operation: Swift.String
25
26
// Region is used for SigV4 auth scheme
26
27
public let region: Swift.String?
@@ -34,12 +35,6 @@ public protocol ExampleAuthSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver
34
35
35
36
public struct DefaultExampleAuthSchemeResolver: ExampleAuthSchemeResolver {
36
37
37
-
public let authSchemePreference: [String]
38
-
39
-
public init(authSchemePreference: [String] = []) {
40
-
self.authSchemePreference = authSchemePreference
41
-
}
42
-
43
38
public func resolveAuthScheme(params: SmithyHTTPAuthAPI.AuthSchemeResolverParameters) throws -> [SmithyHTTPAuthAPI.AuthOption] {
44
39
var validAuthOptions = [SmithyHTTPAuthAPI.AuthOption]()
45
40
guard let serviceParams = params as? ExampleAuthSchemeResolverParameters else {
@@ -103,15 +98,16 @@ public struct DefaultExampleAuthSchemeResolver: ExampleAuthSchemeResolver {
0 commit comments