Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests related to operation doc header
Browse files Browse the repository at this point in the history
jbelkins committed Nov 21, 2023
1 parent 268a4e2 commit 527af8d
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -193,6 +193,8 @@ extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshall
val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift")
var expected = """
extension EventStreamTestClient: EventStreamTestClientProtocol {
/// Performs the `TestStreamOp` operation on the `TestService` service.
///
/// This operation is cool.
///
/// - Parameter TestStreamOpInput : [no documentation found]
@@ -239,7 +241,7 @@ extension EventStreamTestClient: EventStreamTestClientProtocol {
}
}
""".trimIndent()
"""
contents.shouldContainOnlyOnce(expected)
}

Original file line number Diff line number Diff line change
@@ -19,9 +19,10 @@ class AWSQueryOperationStackTest {
val context = setupTests("awsquery/query-empty-input-output.smithy", "aws.protocoltests.query#AwsQuery")
val contents = getFileContents(context.manifest, "/Example/QueryProtocolClient.swift")
contents.shouldSyntacticSanityCheck()
val expectedContents =
"""
val expectedContents = """
extension QueryProtocolClient: QueryProtocolClientProtocol {
/// Performs the `NoInputAndOutput` operation on the `AwsQuery` service.
///
/// This is a very cool operation.
///
/// - Parameter NoInputAndOutputInput : [no documentation found]
@@ -57,7 +58,8 @@ extension QueryProtocolClient: QueryProtocolClientProtocol {
return result
}
}"""
}
"""
contents.shouldContainOnlyOnce(expectedContents)
}

0 comments on commit 527af8d

Please sign in to comment.